RFR (S): 6516521: Doc: should document about the primordial thread attaching to the VM (original) (raw)
Thomas Stüfe thomas.stuefe at gmail.com
Thu Oct 11 08:09:40 UTC 2018
- Previous message: RFR (S): 6516521: Doc: should document about the primordial thread attaching to the VM
- Next message: RFR (S): 6516521: Doc: should document about the primordial thread attaching to the VM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi David,
On Thu, Oct 11, 2018 at 11:45 AM David Holmes <david.holmes at oracle.com> wrote:
Although the JNI spec itself is not an open document I see no reason not to get feedback on this simple update. Bug: https://bugs.openjdk.java.net/browse/JDK-6516521 --- Chapter 5: The Invocation API Creating the VM The JNICreateJavaVM() function loads and initializes a Java VM and returns a pointer to the JNI interface pointer. The thread that called JNICreateJavaVM() is considered to be the main thread. --- Proposed additional text: Note: Depending on the operating system, the primordial process thread may be subject to special handling that impacts its ability to function properly as a normal Java thread (such as having a limited stack size and being able to throw
StackOverflowError
). It is strongly recommended that the primordial thread is not used to load the Java VM, but that a new thread is created just for that purpose.
I agree. Good wording. As mentioned before, on AIX we won't even come up on the primordial thread.
..Thomas
Thanks, David
- Previous message: RFR (S): 6516521: Doc: should document about the primordial thread attaching to the VM
- Next message: RFR (S): 6516521: Doc: should document about the primordial thread attaching to the VM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]