RFR: 8349689: Several virtual thread tests missing /native keyword [v2]
SendaoYan
syan at openjdk.org
Tue Feb 11 07:43:47 UTC 2025
On Tue, 11 Feb 2025 07:26:04 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> add --enable-native-access=ALL-UNNAMED for test/jdk/java/lang/management/ThreadMXBean/VirtualThreads.java#default
>
> test/jdk/java/lang/management/ThreadMXBean/VirtualThreads.java line 30:
>
>> 28: * @modules java.base/java.lang:+open java.management
>> 29: * @library /test/lib
>> 30: * @run junit/othervm/native VirtualThreads
>
> Can you add `--enable-native-access=ALL-UNNAMED` to this test while you are editing this line? It makes it more obvious that it invokes native code and also removes the warning at runtime.
Thanks. Argument `--enable-native-access=ALL-UNNAMED` has been added.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23550#discussion_r1950365978
More information about the core-libs-dev
mailing list