8235324: Dying objects are published from users of CollectedHeap::object_iterate

Reviewed-by: pliden, eosterlund, sjohanss, rkennke
This commit is contained in:
Stefan Karlsson 2019-12-04 11:30:32 +01:00
parent dc0cc5520c
commit 5b155f05e7
14 changed files with 53 additions and 8 deletions

View file

@ -387,6 +387,9 @@ class CollectedHeap : public CHeapObj<mtInternal> {
// Iterate over all objects, calling "cl.do_object" on each.
virtual void object_iterate(ObjectClosure* cl) = 0;
// Keep alive an object that was loaded with AS_NO_KEEPALIVE.
virtual void keep_alive(oop obj) {}
// Returns the longest time (in ms) that has elapsed since the last
// time that any part of the heap was examined by a garbage collection.
virtual jlong millis_since_last_gc() = 0;