comparison src/share/vm/services/g1MemoryPool.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 db0d5eba9d20
children afc30fccf324
comparison
equal deleted inserted replaced
1091:6aa7255741f3 1092:ed52bcc32739
135 return g1h->capacity(); 135 return g1h->capacity();
136 } 136 }
137 static size_t overall_used(G1CollectedHeap* g1h) { 137 static size_t overall_used(G1CollectedHeap* g1h) {
138 return g1h->used_unlocked(); 138 return g1h->used_unlocked();
139 } 139 }
140 static size_t overall_max(G1CollectedHeap* g1h) {
141 return g1h->g1_reserved_obj_bytes();
142 }
140 143
141 static size_t eden_space_committed(G1CollectedHeap* g1h); 144 static size_t eden_space_committed(G1CollectedHeap* g1h);
142 static size_t eden_space_used(G1CollectedHeap* g1h); 145 static size_t eden_space_used(G1CollectedHeap* g1h);
143 static size_t eden_space_max(G1CollectedHeap* g1h); 146 static size_t eden_space_max(G1CollectedHeap* g1h);
144 147