Mercurial > hg > truffle
diff src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 993:54b3b351d6f9
Merge
author | jrose |
---|---|
date | Wed, 23 Sep 2009 23:56:15 -0700 |
parents | 2c79770d1f6e |
children | 39b01ab7035a |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Fri Sep 18 09:57:47 2009 -0700 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Wed Sep 23 23:56:15 2009 -0700 @@ -167,16 +167,11 @@ friend class G1MarkSweep; private: - enum SomePrivateConstants { - VeryLargeInBytes = HeapRegion::GrainBytes/2, - VeryLargeInWords = VeryLargeInBytes/HeapWordSize, - MinHeapDeltaBytes = 10 * HeapRegion::GrainBytes, // FIXME - NumAPIs = HeapRegion::MaxAge - }; - // The one and only G1CollectedHeap, so static functions can find it. static G1CollectedHeap* _g1h; + static size_t _humongous_object_threshold_in_words; + // Storage for the G1 heap (excludes the permanent generation). VirtualSpace _g1_storage; MemRegion _g1_reserved; @@ -859,7 +854,7 @@ return _g1_committed; } - NOT_PRODUCT( bool is_in_closed_subset(const void* p) const; ) + NOT_PRODUCT(bool is_in_closed_subset(const void* p) const;) // Dirty card table entries covering a list of young regions. void dirtyCardsForYoungRegions(CardTableModRefBS* ct_bs, HeapRegion* list); @@ -1021,7 +1016,7 @@ // Returns "true" iff the given word_size is "very large". static bool isHumongous(size_t word_size) { - return word_size >= VeryLargeInWords; + return word_size >= _humongous_object_threshold_in_words; } // Update mod union table with the set of dirty cards.