Commit 0f66d785 authored by Russ Cox's avatar Russ Cox

[dev.garbage] runtime: fix TestLFStack on 386

LGTM=rlh
R=rlh, dvyukov
CC=golang-codereviews
https://golang.org/cl/157430044
parent 9efe7e81
...@@ -26,7 +26,7 @@ var Exitsyscall = exitsyscall ...@@ -26,7 +26,7 @@ var Exitsyscall = exitsyscall
var LockedOSThread = lockedOSThread var LockedOSThread = lockedOSThread
type LFNode struct { type LFNode struct {
Next *LFNode Next uint64
Pushcnt uintptr Pushcnt uintptr
} }
......
...@@ -121,7 +121,7 @@ func TestLFStackStress(t *testing.T) { ...@@ -121,7 +121,7 @@ func TestLFStackStress(t *testing.T) {
} }
cnt++ cnt++
sum2 += node.data sum2 += node.data
node.Next = nil node.Next = 0
} }
} }
if cnt != K { if cnt != K {
......
...@@ -571,6 +571,7 @@ enum { ...@@ -571,6 +571,7 @@ enum {
#endif #endif
// Lock-free stack node. // Lock-free stack node.
// Also known to export_test.go.
struct LFNode struct LFNode
{ {
uint64 next; uint64 next;
......
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