]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/mpagealloc.go
runtime: call enableMetadataHugePages and its callees on the systemstack
[gostls13.git] / src / runtime / mpagealloc.go
index f87565417f7195110cbf30fa416856dfefa7b13d..d533f84180fb73b541794b9886b2991a0ad4e092 100644 (file)
@@ -437,6 +437,10 @@ func (p *pageAlloc) grow(base, size uintptr) {
 //
 // 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 (p *pageAlloc) enableChunkHugePages() {
        // Grab the heap lock to turn on huge pages for new chunks and clone the current
        // heap address space ranges.