LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Garbage collector (GC) | 5 // Garbage collector (GC) |
6 | 6 |
7 enum { | 7 enum { |
8 ScanStackByFrames = 1, | 8 ScanStackByFrames = 1, |
9 | 9 |
10 // TODO(rsc): Half the code in the garbage collector | 10 // TODO(rsc): Half the code in the garbage collector |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // The bitmap starts at mheap.arena_start and extends *backward* from | 76 // The bitmap starts at mheap.arena_start and extends *backward* from |
77 // there. On a 64-bit system the off'th word in the arena is tracked by | 77 // there. On a 64-bit system the off'th word in the arena is tracked by |
78 // the off/16+1'th word before mheap.arena_start. (On a 32-bit system, | 78 // the off/16+1'th word before mheap.arena_start. (On a 32-bit system, |
79 // the only difference is that the divisor is 8.) | 79 // the only difference is that the divisor is 8.) |
80 | 80 |
81 #define bitBoundary ((uintptr)1) // boundary of an object | 81 #define bitBoundary ((uintptr)1) // boundary of an object |
82 #define bitMarked ((uintptr)2) // marked object | 82 #define bitMarked ((uintptr)2) // marked object |
83 | 83 |
84 #define bitMask ((uintptr)bitBoundary|bitMarked) | 84 #define bitMask ((uintptr)bitBoundary|bitMarked) |
85 #define bitPtrMask ((uintptr)BitsMask<<2) | 85 #define bitPtrMask ((uintptr)BitsMask<<2) |
LEFT | RIGHT |