-
Notifications
You must be signed in to change notification settings - Fork 733
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
Support JEP491 (Part 1) #20566
Support JEP491 (Part 1) #20566
Conversation
Signed-off-by: Jack Lu <[email protected]>
Removed: Blocker class PinnedThreadPrinter class NativeReferenceQueue class Signed-off-by: Jack Lu <[email protected]>
FYI @JasonFengJ9 |
@tajila can you please take a look at this |
jcl/src/java.base/share/classes/java/lang/ref/ReferenceQueue.java
Outdated
Show resolved
Hide resolved
@@ -294,6 +294,21 @@ public final void wait(long time, int frac) throws InterruptedException { | |||
Blocker.end(blocking); | |||
} | |||
} | |||
/*[ELSE] JAVA_SPEC_VERSION < 24 */ | |||
if ((time < 0) || (frac < 0)) { | |||
throw new IllegalArgumentException("timeout value is negative"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may already throw these exceptions internally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do, I added this to match RI's bytecode as it would be a faster path to avoid having to call into native.
Signed-off-by: Jack Lu <[email protected]>
Signed-off-by: Jack Lu <[email protected]>
jenkins test sanity alinux64 jdk23 |
|
The ECA checks out manually. We can either ignore the failures, or need to push changes to cause the check to run again. |
I guess adding the label caused the check to rerun, it's passed now. |
Changes to support compile/partial functionality
Part of #20562
Signed-off-by: Jack Lu [email protected]