Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 8139) |
+++ src/heap.h (working copy) |
@@ -1053,7 +1053,10 @@ |
enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; |
inline HeapState gc_state() { return gc_state_; } |
+ |
+ inline int gc_post_process_count() { return gc_post_process_count_; } |
Vyacheslav Egorov (Chromium)
2011/06/01 11:12:35
Better make it a:
bool IsInGCPostProcessing() { r
sandholm
2011/06/01 11:39:34
Done.
|
+ |
#ifdef DEBUG |
bool IsAllocationAllowed() { return allocation_allowed_; } |
inline bool allow_allocation(bool enable); |
@@ -1277,6 +1280,7 @@ |
CellSpace* cell_space_; |
LargeObjectSpace* lo_space_; |
HeapState gc_state_; |
+ int gc_post_process_count_; |
Vyacheslav Egorov (Chromium)
2011/06/01 11:12:35
Name is a bit confusing. Consider naming it:
gc_p
sandholm
2011/06/01 11:39:34
Done.
|
// Returns the size of object residing in non new spaces. |
intptr_t PromotedSpaceSize(); |