[jdk17u-dev] Integrated: 8286490: JvmtiEventControllerPrivate::set_event_callbacks CLEARING_MASK computation is incorrect

Roman Marchenko rmarchenko at openjdk.org
Mon May 13 17:03:19 UTC 2024


On Fri, 8 Mar 2024 06:47:16 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:

> This is a backport of JDK-8286490: JvmtiEventControllerPrivate::set_event_callbacks CLEARING_MASK computation is incorrect.
> 
> Backporting this because this issue can be reproduced in JDK17 as well.
> 
> The backport isn't clean:
> 1. Resolved a conflict in `src/hotspot/share/prims/jvmtiEventController.cpp` with an empty line.
> 2. Removed files as VThreads are not implemented in jdk17:
>       - `test/hotspot/jtreg/serviceability/jvmti/vthread/VThreadTest/libVThreadTest.cpp` 
>       - `test/hotspot/jtreg/serviceability/jvmti/vthread/VThreadTest/VThreadTest.java`
> 3. Added new test:
>       - `test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/extcallback/Test.java`
>       - `test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/extcallback/libextcallback.c`
>       - `test/hotspot/jtreg/vmTestbase/nsk/jvmti/unit/extcallback/loadClass/Test2.java`
> 
> Actually, backporting the fix only.
> The new test fails without the fix, and successfully passes with the fix.

This pull request has now been integrated.

Changeset: e2791f33
Author:    Roman Marchenko <rmarchenko at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/e2791f3304768729fbc665886f9c406fb3d1bf39
Stats:     166 lines in 4 files changed: 164 ins; 0 del; 2 mod

8286490: JvmtiEventControllerPrivate::set_event_callbacks CLEARING_MASK computation is incorrect

Reviewed-by: phh
Backport-of: a0cccb54791d954bf08da5aac9b9794e370617c8

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

PR: https://git.openjdk.org/jdk17u-dev/pull/2276


More information about the jdk-updates-dev mailing list