commit | 0f66d785cf37c16f1c26905f29750a13a5e3f44e | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@golang.org> | Mon Oct 27 15:57:07 2014 -0400 |
committer | Russ Cox <rsc@golang.org> | Mon Oct 27 15:57:07 2014 -0400 |
tree | b5a391d52831c98ceb1a5c81b59a71d02edd6d07 | |
parent | 9efe7e819d500b4a7027811ff5e86be5007099f4 [diff] |
[dev.garbage] runtime: fix TestLFStack on 386 LGTM=rlh R=rlh, dvyukov CC=golang-codereviews https://golang.org/cl/157430044
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index be35255..65e918e 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go
@@ -26,7 +26,7 @@ var LockedOSThread = lockedOSThread type LFNode struct { - Next *LFNode + Next uint64 Pushcnt uintptr }
diff --git a/src/runtime/lfstack_test.go b/src/runtime/lfstack_test.go index e518777..68f221d 100644 --- a/src/runtime/lfstack_test.go +++ b/src/runtime/lfstack_test.go
@@ -121,7 +121,7 @@ } cnt++ sum2 += node.data - node.Next = nil + node.Next = 0 } } if cnt != K {
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index cbbf6b3..c1bba42 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h
@@ -571,6 +571,7 @@ #endif // Lock-free stack node. +// Also known to export_test.go. struct LFNode { uint64 next;