]> Cypherpunks repositories - gostls13.git/commit
runtime: replace mlookup and findObject with heapBitsForObject
authorAustin Clements <austin@google.com>
Mon, 4 Dec 2017 15:43:11 +0000 (10:43 -0500)
committerAustin Clements <austin@google.com>
Thu, 15 Feb 2018 21:12:12 +0000 (21:12 +0000)
commit41e6abdc61dd23ede4d3509aebf7b5a638f53712
tree1b3d2b040bc1a97f159af33faf14d410dcbcbb42
parentb1d94c118fd163381537a22be4913742103baece
runtime: replace mlookup and findObject with heapBitsForObject

These functions all serve essentially the same purpose. mlookup is
used in only one place and findObject in only three. Use
heapBitsForObject instead, which is the most optimized implementation.

(This may seem slightly silly because none of these uses care about
the heap bits, but we're about to split up the functionality of
heapBitsForObject anyway. At that point, findObject will rise from the
ashes.)

Change-Id: I906468c972be095dd23cf2404a7d4434e802f250
Reviewed-on: https://go-review.googlesource.com/85877
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc_test.go
src/runtime/mbitmap.go
src/runtime/mcache.go
src/runtime/mfinal.go
src/runtime/mheap.go
src/runtime/mstats.go
src/runtime/race.go