]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/malloc.go
runtime: call enableMetadataHugePages and its callees on the systemstack
[gostls13.git] / src / runtime / malloc.go
index d9b4112ded24ca95e31bd45375bf70006ee6984e..398eaf5d52e22cd077bb0252276440faaf8cadb1 100644 (file)
@@ -872,6 +872,10 @@ retry:
 //
 // The heap lock must not be held over this operation, since it will briefly acquire
 // the heap lock.
+//
+// Must be called on the system stack because it acquires the heap lock.
+//
+//go:systemstack
 func (h *mheap) enableMetadataHugePages() {
        // Enable huge pages for page structure.
        h.pages.enableChunkHugePages()