8277865: G1: Change integer division to floating point division

Reviewed-by: ayang, tschatzl
This commit is contained in:
Leo Korinth 2021-11-29 09:06:13 +00:00
parent aed53eea5e
commit 9a3a9b1391

View File

@ -770,7 +770,7 @@ public:
double worker_cost() const override {
// The work done per region is very small, therefore we choose this magic number to cap the number
// of threads used when there are few regions.
const uint regions_per_thread = 1000;
const double regions_per_thread = 1000;
return _claimer.n_regions() / regions_per_thread;
}