aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/export_test.go
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-04-12 11:49:25 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-04-12 11:49:25 +0400
commita5dc7793c0fba8d6c81098248a4fc2e8b0ddad34 (patch)
tree9b2d1479d8c9ec3e79c9effceadf9bbef152a216 /src/pkg/runtime/export_test.go
parent2d0d3d8f9efadcad71537b046e31f45a4b0a7844 (diff)
downloadgo-a5dc7793c0fba8d6c81098248a4fc2e8b0ddad34.tar.xz
runtime: add lock-free stack
This is factored out part of the: https://golang.org/cl/5279048/ (parallel GC) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5993043
Diffstat (limited to 'src/pkg/runtime/export_test.go')
-rw-r--r--src/pkg/runtime/export_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pkg/runtime/export_test.go b/src/pkg/runtime/export_test.go
index 51921135be..d50040adcf 100644
--- a/src/pkg/runtime/export_test.go
+++ b/src/pkg/runtime/export_test.go
@@ -25,3 +25,14 @@ var Entersyscall = entersyscall
var Exitsyscall = exitsyscall
var LockedOSThread = golockedOSThread
var Stackguard = stackguard
+
+type LFNode struct {
+ Next *LFNode
+ Pushcnt uintptr
+}
+
+func lfstackpush(head *uint64, node *LFNode)
+func lfstackpop2(head *uint64) *LFNode
+
+var LFStackPush = lfstackpush
+var LFStackPop = lfstackpop2