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

8268779: ZGC: runtime/InternalApi/ThreadCpuTimesDeadlock.java#id1 failed with "OutOfMemoryError: Java heap space"

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -438,11 +438,11 @@ class ZDriverGCScope : public StackObj {
do { \
concurrent_##f(); \
if (should_terminate()) { \
return; \
return false; \
} \
} while (false)

void ZDriver::gc(const ZDriverRequest& request) {
bool ZDriver::gc(const ZDriverRequest& request) {
ZDriverGCScope scope(request);

// Phase 1: Pause Mark Start
@@ -477,6 +477,8 @@ void ZDriver::gc(const ZDriverRequest& request) {

// Phase 10: Concurrent Relocate
concurrent(relocate);

return true;
}

void ZDriver::run_service() {
@@ -491,7 +493,9 @@ void ZDriver::run_service() {
ZBreakpoint::at_before_gc();

// Run GC
gc(request);
if (!gc(request)) {
break;
}

// Notify GC completed
_gc_cycle_port.ack();
@@ -67,7 +67,7 @@ class ZDriver : public ConcurrentGCThread {

void check_out_of_memory();

void gc(const ZDriverRequest& request);
bool gc(const ZDriverRequest& request);

protected:
virtual void run_service();