[K/N] Manually compact mimalloc heap with stms ^KT-53182
Merge-request: KT-MR-7222 Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
This commit is contained in:
committed by
Space
parent
eb1f81b404
commit
c561b1a861
@@ -173,6 +173,8 @@ bool gc::SameThreadMarkAndSweep::PerformFullGC() noexcept {
|
|||||||
auto timeSweepUs = konan::getTimeMicros();
|
auto timeSweepUs = konan::getTimeMicros();
|
||||||
RuntimeLogDebug({kTagGC}, "Sweeped in %" PRIu64 " microseconds", timeSweepUs - timeSweepExtraObjectsUs);
|
RuntimeLogDebug({kTagGC}, "Sweeped in %" PRIu64 " microseconds", timeSweepUs - timeSweepExtraObjectsUs);
|
||||||
|
|
||||||
|
kotlin::compactObjectPoolInMainThread();
|
||||||
|
|
||||||
// Can be unsafe, because we've stopped the world.
|
// Can be unsafe, because we've stopped the world.
|
||||||
auto objectsCountAfter = objectFactory_.GetSizeUnsafe();
|
auto objectsCountAfter = objectFactory_.GetSizeUnsafe();
|
||||||
auto extraObjectsCountAfter = mm::GlobalData::Instance().extraObjectDataFactory().GetSizeUnsafe();
|
auto extraObjectsCountAfter = mm::GlobalData::Instance().extraObjectDataFactory().GetSizeUnsafe();
|
||||||
|
|||||||
Reference in New Issue
Block a user