diff options
| author | Russ Cox <rsc@golang.org> | 2015-06-08 13:22:01 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-06-08 20:24:00 +0000 |
| commit | 433c0bc76949fb01bed4747f1d83038ea242a90e (patch) | |
| tree | 731b27905a220f0f69d00f43ff7ddaf6bbb893f2 /src/runtime/mbitmap.go | |
| parent | a58e731287d28e25eae0fdfed9090f62222923cf (diff) | |
| download | go-433c0bc76949fb01bed4747f1d83038ea242a90e.tar.xz | |
runtime: avoid fault in heapBitsBulkBarrier
Change-Id: I0512e461de1f25cb2a1cb7f23e7a77d00700667c
Reviewed-on: https://go-review.googlesource.com/10803
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/mbitmap.go')
| -rw-r--r-- | src/runtime/mbitmap.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index 11bfcd1b27..a4090b9a08 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -388,7 +388,7 @@ func heapBitsBulkBarrier(p, size uintptr) { // unwinding the stack barriers between the current SP // and p's frame. 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 // stack space. systemstack(func() { |
