Skip to content

Commit 84b9ec3

Browse files
committed
runtime: bump markStackSize
Every time we overflow the stack, we have to do a full rescan of the heap. Making this larger means fewer overflows and thus fewer secondary+ heap scans.
1 parent 6e6507b commit 84b9ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/gc_blocks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const (
4545
bytesPerBlock = wordsPerBlock * unsafe.Sizeof(heapStart)
4646
stateBits = 2 // how many bits a block state takes (see blockState type)
4747
blocksPerStateByte = 8 / stateBits
48-
markStackSize = 4 * unsafe.Sizeof((*int)(nil)) // number of to-be-marked blocks to queue before forcing a rescan
48+
markStackSize = 8 * unsafe.Sizeof((*int)(nil)) // number of to-be-marked blocks to queue before forcing a rescan
4949
)
5050

5151
var (

0 commit comments

Comments
 (0)