RFR: 8277865: G1: Change integer division to floating point division
Albert Mingkun Yang
ayang at openjdk.java.net
Fri Nov 26 14:55:08 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 ayang (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/6577
More information about the hotspot-gc-dev
mailing list