aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index 83cf301be4..9a4611e26e 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -1917,3 +1917,13 @@ const (
BubbleAssocCurrentBubble = bubbleAssocCurrentBubble
BubbleAssocOtherBubble = bubbleAssocOtherBubble
)
+
+type TraceStackTable traceStackTable
+
+func (t *TraceStackTable) Reset() {
+ t.tab.reset()
+}
+
+func TraceStack(gp *G, tab *TraceStackTable) {
+ traceStack(0, gp, (*traceStackTable)(tab))
+}