mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.garbage] runtime: fix TestLFStack on 386
LGTM=rlh R=rlh, dvyukov CC=golang-codereviews https://golang.org/cl/157430044
This commit is contained in:
parent
9efe7e819d
commit
0f66d785cf
3 changed files with 3 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ var Exitsyscall = exitsyscall
|
|||
var LockedOSThread = lockedOSThread
|
||||
|
||||
type LFNode struct {
|
||||
Next *LFNode
|
||||
Next uint64
|
||||
Pushcnt uintptr
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ func TestLFStackStress(t *testing.T) {
|
|||
}
|
||||
cnt++
|
||||
sum2 += node.data
|
||||
node.Next = nil
|
||||
node.Next = 0
|
||||
}
|
||||
}
|
||||
if cnt != K {
|
||||
|
|
|
|||
|
|
@ -571,6 +571,7 @@ enum {
|
|||
#endif
|
||||
|
||||
// Lock-free stack node.
|
||||
// Also known to export_test.go.
|
||||
struct LFNode
|
||||
{
|
||||
uint64 next;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue