X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fruntime%2Fmgc.go;h=c8a58de969f3edabd90e0e927c6edde63752084a;hb=5f08b4479930af266d4a84c1533b320ed75edba7;hp=b791acd163d67dfb11b9fd783bef96f12840f12b;hpb=8da6405e0db80fa0a4136fb816c7ca2db716c2b2;p=gostls13.git diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index b791acd163..c8a58de969 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -1190,7 +1190,9 @@ func gcMarkTermination() { // Enable huge pages on some metadata if we cross a heap threshold. if gcController.heapGoal() > minHeapForMetadataHugePages { - mheap_.enableMetadataHugePages() + systemstack(func() { + mheap_.enableMetadataHugePages() + }) } semrelease(&worldsema)