Skip to content

Commit

Permalink
Add method waitForReferenceProcessing() in Reference.java
Browse files Browse the repository at this point in the history
	- Add private static method waitForReferenceProcessing() in
	java.lang.ref.Reference.java to adapt for openjdk TLS 1.3 
	regression tests. 
	
	
Signed-off-by: Lin Hu <linhu@ca.ibm.com>
  • Loading branch information
LinHu2016 committed Sep 18, 2018
1 parent d01f5df commit f1a874a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jcl/src/java.base/share/classes/java/lang/ref/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ static class ClearBeforeEnqueue {
}
});
}

/* The method waitForReferenceProcessing() is not used directly, just adapt for openjdk regression tests for TLS 1.3 */
private static boolean waitForReferenceProcessing() throws InterruptedException {
return waitForReferenceProcessingImpl();
}

/*[ELSE]
static {
SharedSecrets.setJavaLangRefAccess(new JavaLangRefAccess() {
Expand Down

0 comments on commit f1a874a

Please sign in to comment.