diff options
Diffstat (limited to 'runtime/gc/space/malloc_space.h')
| -rw-r--r-- | runtime/gc/space/malloc_space.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/gc/space/malloc_space.h b/runtime/gc/space/malloc_space.h index d25f9cb347..7681b6d459 100644 --- a/runtime/gc/space/malloc_space.h +++ b/runtime/gc/space/malloc_space.h @@ -148,6 +148,9 @@ class MallocSpace : public ContinuousMemMapAllocSpace { // don't do this we may get heap corruption instead of a segfault at null. virtual void InvalidateAllocator() = 0; + // Sweep the references in the malloc space. + void Sweep(bool swap_bitmaps, size_t* freed_objects, size_t* freed_bytes); + protected: MallocSpace(const std::string& name, MemMap* mem_map, byte* begin, byte* end, byte* limit, size_t growth_limit); |