Mercurial > hg > truffle
diff src/share/vm/memory/iterator.cpp @ 935:05f89f00a864
6798898: CMS: bugs related to class unloading
Summary: Override should_remember_klasses() and remember_klass() as needed.
Reviewed-by: ysr, jcoomes
author | jmasa |
---|---|
date | Mon, 24 Aug 2009 10:36:31 -0700 |
parents | a61af66fc99e |
children | 89e0543e1737 54b3b351d6f9 |
line wrap: on
line diff
--- a/src/share/vm/memory/iterator.cpp Fri Aug 14 13:44:15 2009 -0700 +++ b/src/share/vm/memory/iterator.cpp Mon Aug 24 10:36:31 2009 -0700 @@ -25,6 +25,10 @@ # include "incls/_precompiled.incl" # include "incls/_iterator.cpp.incl" +#ifdef ASSERT +bool OopClosure::_must_remember_klasses = false; +#endif + void ObjectToOopClosure::do_object(oop obj) { obj->oop_iterate(_cl); } @@ -32,3 +36,13 @@ void VoidClosure::do_void() { ShouldNotCallThis(); } + +#ifdef ASSERT +bool OopClosure::must_remember_klasses() { + return _must_remember_klasses; +} +void OopClosure::set_must_remember_klasses(bool v) { + _must_remember_klasses = v; +} +#endif +