aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgc_boring.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mgc_boring.go')
-rw-r--r--src/runtime/mgc_boring.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/runtime/mgc_boring.go b/src/runtime/mgc_boring.go
new file mode 100644
index 00000000000..149ba51dd7e
--- /dev/null
+++ b/src/runtime/mgc_boring.go
@@ -0,0 +1,14 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build boringcrypto
+
+package runtime
+
+import "unsafe"
+
+//go:linkname boring_registerCache crypto/internal/boring.registerCache
+func boring_registerCache(p unsafe.Pointer) {
+ boringCaches = append(boringCaches, p)
+}