comparison src/share/vm/memory/genCollectedHeap.cpp @ 517:e9be0e04635a

6689653: JMapPerm fails with UseConcMarkSweepIncGC and compressed oops off Summary: Added safe_object_iterate() for use by JMapPerm. Reviewed-by: tonyp
author jmasa
date Tue, 06 Jan 2009 07:05:05 -0800
parents 27a80744a83b
children 05c6d52fa7a9
comparison
equal deleted inserted replaced
500:ca7d48236048 517:e9be0e04635a
908 _gens[i]->object_iterate(cl); 908 _gens[i]->object_iterate(cl);
909 } 909 }
910 perm_gen()->object_iterate(cl); 910 perm_gen()->object_iterate(cl);
911 } 911 }
912 912
913 void GenCollectedHeap::safe_object_iterate(ObjectClosure* cl) {
914 for (int i = 0; i < _n_gens; i++) {
915 _gens[i]->safe_object_iterate(cl);
916 }
917 perm_gen()->safe_object_iterate(cl);
918 }
919
913 void GenCollectedHeap::object_iterate_since_last_GC(ObjectClosure* cl) { 920 void GenCollectedHeap::object_iterate_since_last_GC(ObjectClosure* cl) {
914 for (int i = 0; i < _n_gens; i++) { 921 for (int i = 0; i < _n_gens; i++) {
915 _gens[i]->object_iterate_since_last_GC(cl); 922 _gens[i]->object_iterate_since_last_GC(cl);
916 } 923 }
917 } 924 }