mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
7013718: G1: small fixes for two assert/guarantee failures
Two small fixes to deal with a guarantee failure (the marking thread should join the SuspendibleThreadSet before calling a method that does pause prediction work so that said method is never called during a pause) and an assert failure (an assert is too strong). Reviewed-by: iveresov, johnc
This commit is contained in:
parent
d31ff8a886
commit
14f4450d25
2 changed files with 5 additions and 3 deletions
|
@ -251,7 +251,9 @@ void ConcurrentMarkThread::run() {
|
|||
|
||||
// Now do the remainder of the cleanup operation.
|
||||
_cm->completeCleanup();
|
||||
_sts.join();
|
||||
g1_policy->record_concurrent_mark_cleanup_completed();
|
||||
_sts.leave();
|
||||
|
||||
double cleanup_end_sec = os::elapsedTime();
|
||||
if (PrintGC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue