Skip to content

JDK20 deprecates java.lang.Thread.stop() - #15963

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:threadconflict
Sep 27, 2022
Merged

JDK20 deprecates java.lang.Thread.stop()#15963
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:threadconflict

Conversation

@JasonFengJ9

Copy link
Copy Markdown
Member

Remove j.l.Thread.stopImpl(), and Thread.stopCalled for Java 20+.

Depends ibmruntimes/openj9-openjdk-jdk#497

Signed-off-by: Jason Feng fengj@ca.ibm.com

Comment thread runtime/vm/vmthread.cpp Outdated

@keithc-ca keithc-ca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also remove JVM_StopThread() for jdk20 (it's no longer used).

@JasonFengJ9

Copy link
Copy Markdown
Member Author

We should also remove JVM_StopThread() for jdk20 (it's no longer used).

It never was used by OpenJ9

assert(!"JVM_StopThread() stubbed!");

However, RI hasn't removed it yet [1], OpenJ9 should keep it for now.

[1] https://github.com/openjdk/jdk/blob/1f521a12041b33b3458f952627d535fad6e928c7/src/hotspot/share/prims/jvm.cpp#L2988

@keithc-ca

Copy link
Copy Markdown
Contributor

The reference in the RI is removed in ibmruntimes/openj9-openjdk-jdk#497; see the change to Thread.c.

Comment thread runtime/oti/jclprots.h Outdated
Comment thread runtime/j9vm/exports.cmake Outdated
Removed j.l.Thread.stopImpl(), JVM_StopThread() and Thread.stopCalled
for Java 20+.

Signed-off-by: Jason Feng <fengj@ca.ibm.com>

@keithc-ca keithc-ca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keithc-ca
keithc-ca merged commit 9f8fd74 into eclipse-openj9:master Sep 27, 2022
@JasonFengJ9
JasonFengJ9 deleted the threadconflict branch September 27, 2022 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants