Skip to content

Commit 35ab136

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 489cfdb + facee2b commit 35ab136

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/runtime/collect.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ void migrate_collection_node(void **node_ptr);
4040
void set_kore_memory_functions_for_gmp(void);
4141
void kore_collect(void **, uint8_t, layoutitem *, bool force = false);
4242
void free_all_kore_mem();
43+
void reset_munmap_all_arenas();
4344
}
4445

4546
#ifdef GC_DBG

runtime/collect/collect.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ void kore_collect(
346346
void free_all_kore_mem() {
347347
kore_collect(nullptr, 0, nullptr, true);
348348
kore_clear();
349+
}
350+
351+
void reset_munmap_all_arenas() {
349352
youngspace.munmap_arena_and_reset();
350353
oldspace.munmap_arena_and_reset();
351354
alwaysgcspace.munmap_arena_and_reset();

0 commit comments

Comments
 (0)