diff options
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index e41c2736b1..5fe0b160e6 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -817,8 +817,8 @@ func persistentalloc(size, align uintptr, stat *uint64) unsafe.Pointer { mp := acquirem() var persistent *persistentAlloc - if mp != nil && mp.p != nil { - persistent = &mp.p.palloc + if mp != nil && mp.p != 0 { + persistent = &mp.p.ptr().palloc } else { lock(&globalAlloc.mutex) persistent = &globalAlloc.persistentAlloc |
