Commit 433c0bc7 authored by Russ Cox's avatar Russ Cox

runtime: avoid fault in heapBitsBulkBarrier

Change-Id: I0512e461de1f25cb2a1cb7f23e7a77d00700667c
Reviewed-on: https://go-review.googlesource.com/10803Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent a58e7312
...@@ -388,7 +388,7 @@ func heapBitsBulkBarrier(p, size uintptr) { ...@@ -388,7 +388,7 @@ func heapBitsBulkBarrier(p, size uintptr) {
// unwinding the stack barriers between the current SP // unwinding the stack barriers between the current SP
// and p's frame. // and p's frame.
gp := getg().m.curg gp := getg().m.curg
if gp.stack.lo <= p && p < gp.stack.hi { if gp != nil && gp.stack.lo <= p && p < gp.stack.hi {
// Run on the system stack to give it more // Run on the system stack to give it more
// stack space. // stack space.
systemstack(func() { systemstack(func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment