-
Enhancement
-
Resolution: Fixed
-
P4
-
9, 10
-
b34
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8260806 | openjdk8u292 | Andrew Hughes | P4 | Resolved | Fixed | b01 |
JDK-8196309 | 8u201 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8196542 | 8u192 | David Buck | P4 | Resolved | Fixed | b01 |
JDK-8216692 | emb-8u201 | David Buck | P4 | Resolved | Fixed | master |
Non-Java language runtimes sometimes interoperate with the JVM via JNI, starting the JVM via JNI_CreateJavaVM. R is one such language runtime (with its rJava package). This leads to issues when both language runtimes attempt to do stack overflow checking on the same (initial) thread. It would be nice to have an option to disable stack overflow checking (not insert guard pages) to the stack of the initial thread of the JVM
JUSTIFICATION :
In a way the initial thread is owned by the runtime that calls CreateJavaVM, the thread might have been created by it, and so the JVM should not take space from that thread's stack, not even space to insert guard pages. On Linux in Java 9 and older, the situation now is particularly bad as Java caps the stack size at 2M (inserts guard pages) no matter what the stack size established by rlimit is. The cap was a workaround for a bug in old Linux systems (
- backported by
-
JDK-8196309 Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
- Resolved
-
JDK-8196542 Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
- Resolved
-
JDK-8216692 Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
- Resolved
-
JDK-8260806 Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
- Resolved
- csr for
-
JDK-8189423 Add option to disable stack overflow checking in primordial thread for use with JNI_CreateJavaJVM
- Closed
- relates to
-
JDK-8257192 Integrate AArch64 JIT port into 8u
- Resolved
-
JDK-8242552 Use system stack size with primordial thread
- Closed