8316929: Shenandoah: Shenandoah degenerated GC and full GC need to cleanup old OopMapCache entries

Reviewed-by: shade
This commit is contained in:
Zhengyu Gu 2023-10-02 20:21:58 +00:00
parent 5c8366eea4
commit e25121d1d9

@ -32,6 +32,7 @@
#include "gc/shenandoah/shenandoahOopClosures.inline.hpp"
#include "gc/shenandoah/shenandoahUtils.hpp"
#include "gc/shenandoah/shenandoahVMOperations.hpp"
#include "interpreter/oopMapCache.hpp"
#include "memory/universe.hpp"
bool VM_ShenandoahReferenceOperation::doit_prologue() {
@ -40,6 +41,7 @@ bool VM_ShenandoahReferenceOperation::doit_prologue() {
}
void VM_ShenandoahReferenceOperation::doit_epilogue() {
OopMapCache::cleanup_old_entries();
if (Universe::has_reference_pending_list()) {
Heap_lock->notify_all();
}