8227695: assert(pss->trim_ticks().seconds() == 0.0) failed: Unexpected partial trimming during evacuation

Change FP comparison to integer comparison.

Reviewed-by: kbarrett, iwalulya, eosterlund
This commit is contained in:
Thomas Schatzl 2021-01-21 18:21:07 +00:00
parent 62eab50582
commit ede1beaef7

View File

@ -3712,7 +3712,9 @@ protected:
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) { }