mirror of
https://github.com/golang/go
synced 2024-11-23 21:50:08 -07:00
runtime: fix some out of date comments in bitmap code
Change-Id: I4613aa6d62baba01686bbab10738a7de23daae30 Reviewed-on: https://go-review.googlesource.com/22971 Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
parent
7ba54d4573
commit
256a9670cc
@ -498,7 +498,6 @@ func (h heapBits) morePointers() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// isPointer reports whether the heap bits describe a pointer word.
|
// isPointer reports whether the heap bits describe a pointer word.
|
||||||
// h must describe the initial word of the object.
|
|
||||||
//
|
//
|
||||||
// nosplit because it is used during write barriers and must not be preempted.
|
// nosplit because it is used during write barriers and must not be preempted.
|
||||||
//go:nosplit
|
//go:nosplit
|
||||||
@ -507,8 +506,7 @@ func (h heapBits) isPointer() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// hasPointers reports whether the given object has any pointers.
|
// hasPointers reports whether the given object has any pointers.
|
||||||
// It must be told how large the object at h is, so that it does not read too
|
// It must be told how large the object at h is for efficiency.
|
||||||
// far into the bitmap.
|
|
||||||
// h must describe the initial word of the object.
|
// h must describe the initial word of the object.
|
||||||
func (h heapBits) hasPointers(size uintptr) bool {
|
func (h heapBits) hasPointers(size uintptr) bool {
|
||||||
if size == sys.PtrSize { // 1-word objects are always pointers
|
if size == sys.PtrSize { // 1-word objects are always pointers
|
||||||
|
Loading…
Reference in New Issue
Block a user