comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 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 39b01ab7035a
children 7b0e9cba0307
comparison
equal deleted inserted replaced
1091:6aa7255741f3 1092:ed52bcc32739
690 // Reference Processing accessor 690 // Reference Processing accessor
691 ReferenceProcessor* ref_processor() { return _ref_processor; } 691 ReferenceProcessor* ref_processor() { return _ref_processor; }
692 692
693 // Reserved (g1 only; super method includes perm), capacity and the used 693 // Reserved (g1 only; super method includes perm), capacity and the used
694 // portion in bytes. 694 // portion in bytes.
695 size_t g1_reserved_obj_bytes() { return _g1_reserved.byte_size(); } 695 size_t g1_reserved_obj_bytes() const { return _g1_reserved.byte_size(); }
696 virtual size_t capacity() const; 696 virtual size_t capacity() const;
697 virtual size_t used() const; 697 virtual size_t used() const;
698 // This should be called when we're not holding the heap lock. The 698 // This should be called when we're not holding the heap lock. The
699 // result might be a bit inaccurate. 699 // result might be a bit inaccurate.
700 size_t used_unlocked() const; 700 size_t used_unlocked() const;