Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8227695: assert(pss->trim_ticks().seconds() == 0.0) failed: Unexpecte…
…d partial trimming during evacuation

Change FP comparison to integer comparison.

Reviewed-by: kbarrett, iwalulya, eosterlund
  • Loading branch information
Thomas Schatzl committed Jan 21, 2021
1 parent 62eab50 commit ede1beaef729a39528841654adf436555802cbcf
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/hotspot/share/gc/g1/g1CollectedHeap.cpp
@@ -3712,7 +3712,9 @@ class G1EvacuateRegionsBaseTask : public AbstractGangTask {
p->record_or_add_time_secs(termination_phase, worker_id, cl.term_time());
p->record_or_add_thread_work_item(termination_phase, worker_id, cl.term_attempts());
}
assert(pss->trim_ticks().seconds() == 0.0, "Unexpected partial trimming during evacuation");
assert(pss->trim_ticks().value() == 0,
"Unexpected partial trimming during evacuation value " JLONG_FORMAT,
pss->trim_ticks().value());
}

virtual void start_work(uint worker_id) { }

1 comment on commit ede1bea

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on ede1bea Jan 21, 2021

Please sign in to comment.