• Austin Clements's avatar
    runtime: replace mlookup and findObject with heapBitsForObject · 41e6abdc
    Austin Clements authored
    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: 's avatarRick Hudson <rlh@golang.org>
    41e6abdc
mcache.go 4 KB