--- old/src/java.base/share/classes/java/lang/Thread.java 2018-04-20 00:47:26.000000000 +0100 +++ new/src/java.base/share/classes/java/lang/Thread.java 2018-04-20 00:47:26.000000000 +0100 @@ -200,6 +200,11 @@ */ private final long tid; + /* + * Current inner-most continuation + */ + private Continuation cont; + /* For generating thread ID */ private static long threadSeqNumber; @@ -1532,6 +1537,20 @@ } /** + * TBD + */ + Continuation getContinuation() { + return cont; + } + + /** + * TBD + */ + void setContinuation(Continuation cont) { + this.cont = cont; + } + + /** * Sets the context ClassLoader for this Thread. The context * ClassLoader can be set when a thread is created, and allows * the creator of the thread to provide the appropriate class loader,