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

Leo Korinth lkorinth at openjdk.java.net
Mon Nov 29 09:10:09 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;`

This pull request has now been integrated.

Changeset: 9a3a9b13
Author:    Leo Korinth <lkorinth at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9a3a9b139178f2645d51a0f12d95a8b424cd5b9d
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8277865: G1: Change integer division to floating point division

Reviewed-by: ayang, tschatzl

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

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



More information about the hotspot-gc-dev mailing list