Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a VMLangAccess method to create threads #5778

Merged
merged 1 commit into from
May 16, 2019

Conversation

JasonFengJ9
Copy link
Member

Add a VMLangAccess method to create threads

Added a package access method java.lang.Thread:Thread(Runnable runnable, String threadName, boolean isSystemThreadGroup, boolean inheritThreadLocals, boolean isDaemon, ClassLoader contextClassLoader) which allows callers outside of java.lang package to create threads with such options via VMLangAccess interface.
Specifically this supports java.io.ClassCache to create a thread that belongs to the system thread group, and not inherit ThreadLocals.

Related to ibmruntimes/openj9-openjdk-jdk11#170

Reviewer: @pshipton
FYI: @DanHeidinga

Signed-off-by: Jason Feng [email protected]

Added a package access method java.lang.Thread:Thread(Runnable runnable,
String threadName, boolean isSystemThreadGroup, boolean
inheritThreadLocals, boolean isDaemon, ClassLoader contextClassLoader)
which allows callers outside of java.lang package to create threads with
such options via VMLangAccess interface.
Specifically this supports java.io.ClassCache to create a thread that
belongs to the system thread group, and not inherit ThreadLocals.

Signed-off-by: Jason Feng <[email protected]>
@pshipton
Copy link
Member

jenkins test sanity plinux jdk11 depends ibmruntimes/openj9-openjdk-jdk11#170

@pshipton pshipton merged commit bf1ab69 into eclipse-openj9:master May 16, 2019
@pshipton
Copy link
Member

Please create a PR against the v0.14.2-release branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants