Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 1092:ed52bcc32739
6880903: G1: G1 reports incorrect Runtime.maxMemory()
Summary: G1 reports committed memory instead of reserved memory from the Runtime.maxMemory() method
Reviewed-by: ysr, jmasa
author | tonyp |
---|---|
date | Fri, 04 Dec 2009 07:44:35 -0500 |
parents | db0d5eba9d20 |
children | 44f61c24ddab |
comparison
equal
deleted
inserted
replaced
1091:6aa7255741f3 | 1092:ed52bcc32739 |
---|---|
2128 // FIXME | 2128 // FIXME |
2129 return HeapRegion::GrainBytes/HeapWordSize; | 2129 return HeapRegion::GrainBytes/HeapWordSize; |
2130 } | 2130 } |
2131 | 2131 |
2132 size_t G1CollectedHeap::max_capacity() const { | 2132 size_t G1CollectedHeap::max_capacity() const { |
2133 return _g1_committed.byte_size(); | 2133 return g1_reserved_obj_bytes(); |
2134 } | 2134 } |
2135 | 2135 |
2136 jlong G1CollectedHeap::millis_since_last_gc() { | 2136 jlong G1CollectedHeap::millis_since_last_gc() { |
2137 // assert(false, "NYI"); | 2137 // assert(false, "NYI"); |
2138 return 0; | 2138 return 0; |