equal
deleted
inserted
replaced
42 |
42 |
43 class Collector { |
43 class Collector { |
44 public: |
44 public: |
45 static void* allocate(size_t s); |
45 static void* allocate(size_t s); |
46 IMPORT static bool collect(); |
46 IMPORT static bool collect(); |
|
47 IMPORT static void startedExit(bool status); |
|
48 IMPORT static bool isExitInProgress(); |
47 static bool isBusy(); // true if an allocation or collection is in progress |
49 static bool isBusy(); // true if an allocation or collection is in progress |
48 |
50 |
49 static const size_t minExtraCostSize = 256; |
51 static const size_t minExtraCostSize = 256; |
50 |
52 |
51 static void reportExtraMemoryCost(size_t cost); |
53 static void reportExtraMemoryCost(size_t cost); |
96 |
98 |
97 static void markRecursivelyOrphanedCells(); |
99 static void markRecursivelyOrphanedCells(); |
98 |
100 |
99 static size_t mainThreadOnlyObjectCount; |
101 static size_t mainThreadOnlyObjectCount; |
100 static bool memoryFull; |
102 static bool memoryFull; |
|
103 static bool m_exitInProgress; |
101 }; |
104 }; |
102 |
105 |
103 // tunable parameters |
106 // tunable parameters |
104 template<size_t bytesPerWord> struct CellSize; |
107 template<size_t bytesPerWord> struct CellSize; |
105 |
108 |