RFR: 8277865: G1: Change integer division to floating point division
tschatzl at openjdk.java.net
Fri Nov 26 15:20:04 UTC 2021
On Fri, 26 Nov 2021 14:35:08 GMT, Leo Korinth <lkorinth at openjdk.org> wrote:
> In the class G1PreConcurrentStartTask::NoteStartOfMarkTask the method `worker_cost` returns a cost of type double, unfortunately the return value is calculated using an integer division:
> `return _claimer.n_regions() / regions_per_thread;`
Marked as reviewed by tschatzl (Reviewer).
More information about the hotspot-gc-dev