Integrated: 8274632: Possible pointer overflow in PretouchTask chunk claiming

Kim Barrett kbarrett at openjdk.java.net
Tue Oct 5 08:11:09 UTC 2021


On Fri, 1 Oct 2021 19:38:58 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to PretouchTask, fixing the mechanism used to
> claim chunks for parallel touching.  The old mechanism unconditionally added
> a potentially large value to the current pointer and then checked the result
> for overflow.  But since pointer arithmetic overflow is UB, that's not a
> reliable approach.
> 
> Testing:
> mach5 tier1

This pull request has now been integrated.

Changeset: a914ee72
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a914ee72167f642b76b1c1cdddd7ff0698d061cc
Stats:     11 lines in 2 files changed: 1 ins; 4 del; 6 mod

8274632: Possible pointer overflow in PretouchTask chunk claiming

Reviewed-by: tschatzl, ayang

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

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



More information about the hotspot-gc-dev mailing list