diff options
| author | Keith Randall <khr@golang.org> | 2013-08-23 17:28:47 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-08-23 17:28:47 -0700 |
| commit | d0dd420a245763494ec564d8163724a2a6d374f4 (patch) | |
| tree | 447288f9744304f91c298f0d80e4ba4f8265f89c /src/pkg/runtime/malloc.h | |
| parent | b15a64e35de8bee777564a6553853238605d2556 (diff) | |
| download | go-d0dd420a245763494ec564d8163724a2a6d374f4.tar.xz | |
runtime: rename FlagNoPointers to FlagNoScan. Better represents
the use of the flag, especially for objects which actually do have
pointers but we don't want the GC to scan them.
R=golang-dev, cshapiro
CC=golang-dev
https://golang.org/cl/13181045
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 7efe071855..c0f5a8fa6a 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -467,7 +467,7 @@ uintptr runtime·gettype(void*); enum { // flags to malloc - FlagNoPointers = 1<<0, // no pointers here + FlagNoScan = 1<<0, // GC doesn't have to scan object FlagNoProfiling = 1<<1, // must not profile FlagNoGC = 1<<2, // must not free or scan for pointers FlagNoZero = 1<<3, // don't zero memory |
