diff options
author | Russ Cox <rsc@golang.org> | 2014-11-05 11:09:08 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-05 11:09:08 -0500 |
commit | 494d936b2c70f1f8a1fa51efe419619c05f624e5 (patch) | |
tree | d17f7381089a86e57b21db2568b148d23baa28ba /src | |
parent | 9155768e48e7de0fd0d6297eaa932d4c489e3f38 (diff) | |
download | go-494d936b2c70f1f8a1fa51efe419619c05f624e5.tar.gz |
[dev.garbage] runtime: fix 32-bit build
TBR=crawshaw
R=crawshaw
CC=golang-codereviews
https://codereview.appspot.com/168860046
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/mgc0.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mgc0.go b/src/runtime/mgc0.go index 75678c522..22e88494a 100644 --- a/src/runtime/mgc0.go +++ b/src/runtime/mgc0.go @@ -84,8 +84,8 @@ func bgsweep() { } const ( - _PoisonGC = 0xf969696969696969 & ^uintptr(0) - _PoisonStack = 0x6868686868686868 & ^uintptr(0) + _PoisonGC = 0xf969696969696969 & (1<<(8*ptrSize) - 1) + _PoisonStack = 0x6868686868686868 & (1<<(8*ptrSize) - 1) ) // NOTE: Really dst *unsafe.Pointer, src unsafe.Pointer, |