Skip to content

Commit

Permalink
Merge pull request #19925 from keithc-ca/executeOnCarrierThread
Browse files Browse the repository at this point in the history
JDK24 removes JavaLangAccess.executeOnCarrierThread()
  • Loading branch information
tajila authored Jul 29, 2024
2 parents c5b3b09 + e4bf5c1 commit 48f557e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jcl/src/java.base/share/classes/java/lang/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ public Thread currentCarrierThread() {
return Thread.currentCarrierThread();
}

/*[IF JAVA_SPEC_VERSION < 24]*/
public <V> V executeOnCarrierThread(Callable<V> task) throws Exception {
V result;
Thread currentThread = Thread.currentThread();
Expand All @@ -611,6 +612,7 @@ public <V> V executeOnCarrierThread(Callable<V> task) throws Exception {
}
return result;
}
/*[ENDIF] JAVA_SPEC_VERSION < 24 */

public Continuation getContinuation(Thread thread) {
return thread.getContinuation();
Expand Down

0 comments on commit 48f557e

Please sign in to comment.