6689653: JMapPerm fails with UseConcMarkSweepIncGC and compressed oops off

Added safe_object_iterate() for use by JMapPerm.

Reviewed-by: tonyp
This commit is contained in:
Jon Masamitsu 2009-01-06 07:05:05 -08:00
parent 34c4172bfe
commit 3474623106
16 changed files with 100 additions and 2 deletions

View file

@ -466,6 +466,10 @@ class CollectedHeap : public CHeapObj {
// This includes objects in permanent memory.
virtual void object_iterate(ObjectClosure* cl) = 0;
// Similar to object_iterate() except iterates only
// over live objects.
virtual void safe_object_iterate(ObjectClosure* cl) = 0;
// Behaves the same as oop_iterate, except only traverses
// interior pointers contained in permanent memory. If there
// is no permanent memory, does nothing.