summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stubs.goc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/stubs.goc')
-rw-r--r--src/pkg/runtime/stubs.goc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pkg/runtime/stubs.goc b/src/pkg/runtime/stubs.goc
index 42a4bf143..8a043c63b 100644
--- a/src/pkg/runtime/stubs.goc
+++ b/src/pkg/runtime/stubs.goc
@@ -89,3 +89,17 @@ func GCMask(x Eface) (mask Slice) {
runtime·getgcmask(x.data, x.type, &mask.array, &mask.len);
mask.cap = mask.len;
}
+
+#pragma textflag NOSPLIT
+func gopersistentalloc(size uintptr) (x *void) {
+ // TODO: used only for itabs for now. Need to make &mstats.other_sys arg parameterized.
+ x = runtime·persistentalloc(size, 0, &mstats.other_sys);
+}
+
+#pragma textflag NOSPLIT
+func reflect·typelinks() (ret Slice) {
+ extern Type *typelink[], *etypelink[];
+ ret.array = (byte*)typelink;
+ ret.len = etypelink - typelink;
+ ret.cap = ret.len;
+}