comparison src/share/vm/prims/jvmtiTagMap.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 1ee8caae33af
children 0fbdb4381b99
comparison
equal deleted inserted replaced
500:ca7d48236048 517:e9be0e04635a
1318 if (VerifyBeforeIteration) { 1318 if (VerifyBeforeIteration) {
1319 Universe::verify(); 1319 Universe::verify();
1320 } 1320 }
1321 1321
1322 // do the iteration 1322 // do the iteration
1323 // If this operation encounters a bad object when using CMS,
1324 // consider using safe_object_iterate() which avoids perm gen
1325 // objects that may contain bad references.
1323 Universe::heap()->object_iterate(_blk); 1326 Universe::heap()->object_iterate(_blk);
1324 1327
1325 // when sharing is enabled we must iterate over the shared spaces 1328 // when sharing is enabled we must iterate over the shared spaces
1326 if (UseSharedSpaces) { 1329 if (UseSharedSpaces) {
1327 GenCollectedHeap* gch = GenCollectedHeap::heap(); 1330 GenCollectedHeap* gch = GenCollectedHeap::heap();