File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1623,15 +1623,9 @@ func scanobject(b uintptr, gcw *gcWork) {
1623
1623
1624
1624
// At this point we have extracted the next potential pointer.
1625
1625
// Quickly filter out nil and pointers back to the current object.
1626
- if obj != 0 && obj - b >= n {
1627
- if goexperiment .DeadlockGC {
1628
- // The GC will skip masked addresses if DeadlockGC is enabled.
1629
- if (uintptr (unsafe .Pointer (obj )) & gcBitMask ) == gcBitMask {
1630
- // Skip masked pointers.
1631
- continue
1632
- }
1633
- }
1634
-
1626
+ // The GC will skip masked addresses if DeadlockGC is enabled.
1627
+ if obj != 0 && obj - b >= n &&
1628
+ (! goexperiment .DeadlockGC || obj <= gcUndoBitMask ) {
1635
1629
// Test if obj points into the Go heap and, if so,
1636
1630
// mark the object.
1637
1631
//
You can’t perform that action at this time.
0 commit comments