Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8317466: Enable interpreter oopMapCache for concurrent GCs #16074

Closed
wants to merge 12 commits into from
6 changes: 5 additions & 1 deletion src/hotspot/share/gc/shenandoah/shenandoahVMOperations.cpp
Original file line number Diff line number Diff line change
@@ -35,13 +35,17 @@
#include "interpreter/oopMapCache.hpp"
#include "memory/universe.hpp"

void VM_ShenandoahOperation::doit_epilogue() {
OopMapCache::cleanup_old_entries();
}

bool VM_ShenandoahReferenceOperation::doit_prologue() {
Heap_lock->lock();
return true;
}

void VM_ShenandoahReferenceOperation::doit_epilogue() {
OopMapCache::cleanup_old_entries();
VM_ShenandoahOperation::doit_epilogue();
if (Universe::has_reference_pending_list()) {
Heap_lock->notify_all();
}
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shenandoah/shenandoahVMOperations.hpp
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ class VM_ShenandoahOperation : public VM_Operation {
public:
VM_ShenandoahOperation() : _gc_id(GCId::current()) {};
virtual bool skip_thread_oop_barriers() const { return true; }
virtual void doit_epilogue();
};

class VM_ShenandoahReferenceOperation : public VM_ShenandoahOperation {