diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/arena.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/arena.go b/src/runtime/arena.go index e807995810..0aa3876aaa 100644 --- a/src/runtime/arena.go +++ b/src/runtime/arena.go @@ -745,7 +745,9 @@ func newUserArenaChunk() (unsafe.Pointer, *mspan) { // does represent additional work for the GC, but we also have no idea // what that looks like until we actually allocate things into the // arena). - deductAssistCredit(userArenaChunkBytes) + if gcBlackenEnabled != 0 { + deductAssistCredit(userArenaChunkBytes) + } // Set mp.mallocing to keep from being preempted by GC. mp := acquirem() |
