RFR: 8300139 : [AIX] Use pthreads to avoid JNI_createVM call from primordial thread
David Holmes
dholmes at openjdk.org
Wed Feb 8 11:06:44 UTC 2023
On Tue, 31 Jan 2023 05:24:35 GMT, Varada M <duke at openjdk.org> wrote:
> 1. test/jdk/jni/nullCaller/NullCallerTest.java
> 2. test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java
> 3. test/hotspot/jtreg/runtime/jni/CalleeSavedRegisters/FPRegs.java
>
> The above tests were blocked on AIX [@require os.family != "aix"] because these tests are failing to call JNI_CreateJavaVM. This is solved by implementing JNI_CreateJavaVM call via POSIX threads.
> Similarly there are tests which are not blocked and still failing to call JNI_CreateJavaVM on AIX :
>
> 4. test/hotspot/jtreg/runtime/jni/daemonDestroy/TestDaemonDestroy.java { PR : [12006](https://github.com/openjdk/jdk/pull/12006) }
> 5. test/lib-test/jdk/test/lib/process/TestNativeProcessBuilder.java
>
> The reported issue : [8300139](https://bugs.openjdk.org/browse/JDK-8300139l)
I hate to see the code duplication, but we don't have a sharing mechanism for the native parts of tests so that can't be helped.
Changes look good.
Please update the Oracle copyright lines so that the second year is 2023 if needed. Thanks.
-------------
Marked as reviewed by dholmes (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12302
More information about the core-libs-dev
mailing list