aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/fjl/memsize/runtimefunc.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/fjl/memsize/runtimefunc.go')
-rw-r--r--vendor/github.com/fjl/memsize/runtimefunc.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/fjl/memsize/runtimefunc.go b/vendor/github.com/fjl/memsize/runtimefunc.go
new file mode 100644
index 000000000..912a3e768
--- /dev/null
+++ b/vendor/github.com/fjl/memsize/runtimefunc.go
@@ -0,0 +1,14 @@
+package memsize
+
+import "unsafe"
+
+var _ = unsafe.Pointer(nil)
+
+//go:linkname stopTheWorld runtime.stopTheWorld
+func stopTheWorld(reason string)
+
+//go:linkname startTheWorld runtime.startTheWorld
+func startTheWorld()
+
+//go:linkname chanbuf runtime.chanbuf
+func chanbuf(ch unsafe.Pointer, i uint) unsafe.Pointer