RFR: 8277865: G1: Change integer division to floating point division

Thomas Schatzl 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;`

Lgtm.

-------------

Marked as reviewed by tschatzl (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6577


More information about the hotspot-gc-dev mailing list