Integrated: 8287686: Add assertion to ensure that disarm value offset < 128

Zhengyu Gu zgu at openjdk.java.net
Fri Jun 3 12:21:54 UTC 2022


On Wed, 1 Jun 2022 18:06:52 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Please review this trivial patch to ensure disarm value offset is less than 128.
> 
> At least on x86_64, nmethod entry barrier encodes disarmed value offset as disp8 immed, overflowing the value can result crashes, see [JDK-8244420](https://bugs.openjdk.java.net/browse/JDK-8244420) for details.
> 
> Test:
> 
> - [x] jdk_loom and hotspot_loom on Linux x86_64

This pull request has now been integrated.

Changeset: a75299c3
Author:    Zhengyu Gu <zgu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/a75299c3ab95f1e43d5628b14e6e5deaa1ed5f70
Stats:     5 lines in 1 file changed: 4 ins; 0 del; 1 mod

8287686: Add assertion to ensure that disarm value offset < 128

Reviewed-by: tschatzl, shade

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

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



More information about the hotspot-gc-dev mailing list