diff -r 2f33b03bd915 -r 9afee0b9fc1d src/share/vm/prims/jvmtiImpl.hpp --- a/src/share/vm/prims/jvmtiImpl.hpp Wed Jan 19 08:16:45 2011 -0800 +++ b/src/share/vm/prims/jvmtiImpl.hpp Wed Jan 19 13:51:53 2011 -0800 @@ -117,6 +117,8 @@ void clear(); // apply f to every element and update the cache void oops_do(OopClosure* f); + // update the cache after a full gc + void gc_epilogue(); }; @@ -148,6 +150,7 @@ void remove (int index) { _cache.remove(index); } void clear() { _cache.clear(); } void oops_do(OopClosure* f) { _cache.oops_do(f); } + void gc_epilogue() { _cache.gc_epilogue(); } }; @@ -282,6 +285,7 @@ int clear(JvmtiBreakpoint& bp); void clearall_in_class_at_safepoint(klassOop klass); void clearall(); + void gc_epilogue(); }; @@ -325,6 +329,7 @@ static inline bool is_breakpoint(address bcp); static void oops_do(OopClosure* f); + static void gc_epilogue(); }; // quickly test whether the bcp matches a cached breakpoint in the list