-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8290211: jdk/internal/vm/Continuation/Fuzz.java failed with "AssertionError: Failed to compile int Fuzz.com_int(int,int) in 5000ms" #9844
Conversation
…nError: Failed to compile int Fuzz.com_int(int,int) in 5000ms"
👋 Welcome back dcubed! A progress list of the required criteria for merging this PR into |
@dcubed-ojdk The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
/label add hotspot-runtime |
@dcubed-ojdk |
Webrevs
|
@dcubed-ojdk This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 92 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
@@ -78,7 +78,8 @@ public class Fuzz implements Runnable { | |||
static final boolean RANDOM = true; | |||
static final boolean VERBOSE = false; | |||
|
|||
static final int COMPILATION_TIMEOUT = 5_000; // ms | |||
static float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0")); |
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.
How about something like this?
System.getProperty("test.timeout.factor", "5.0")
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.
Or
static final int COMPILATION_TIMEOUT = max((int)(1_000 * timeoutFactor), 5_000); // ms
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.
System.getProperty("test.timeout.factor", "5.0")
Definitely not. Traditional default value for no specified timeoutFactor value is 1.0.
static final int COMPILATION_TIMEOUT = max((int)(1_000 * timeoutFactor), 5_000); // ms
So you're trying to make sure we have a minimum COMPILATION_TIMEOUT value of 5 seconds,
but I'm not sure why you want that.
static final int COMPILATION_TIMEOUT = (int)(5_000 * timeoutFactor); // ms
i.e., a default value * timeoutFactor
is the usual way to do this. I've seen some
folks use a timeoutFactor of 0.5 on really fast machines, but that wouldn't work
with your minimum COMPILATION_TIMEOUT value of 5 seconds above.
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.
@lmesnik, @DamonFool and @AlanBateman - Thanks for the reviews.
@@ -78,7 +78,8 @@ public class Fuzz implements Runnable { | |||
static final boolean RANDOM = true; | |||
static final boolean VERBOSE = false; | |||
|
|||
static final int COMPILATION_TIMEOUT = 5_000; // ms | |||
static float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0")); | |||
static final int COMPILATION_TIMEOUT = (int)(1_000 * timeoutFactor); // ms |
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 was really hoping that 1_000 * timeoutFactor
would do the trick,
but stress run-#1 on my macosx-aarch64 machine had a couple of
sub-test timeouts at 12 seconds (1_000 * 12.0). My timeoutFactor
for slowdebug is 12.0. My linux-x64 machine passed stress run-#1
without any failures.
I've switched the value from 1_000 back to 5_000 for the next two
stress runs on both machines.
@@ -78,7 +78,8 @@ public class Fuzz implements Runnable { | |||
static final boolean RANDOM = true; | |||
static final boolean VERBOSE = false; | |||
|
|||
static final int COMPILATION_TIMEOUT = 5_000; // ms | |||
static float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0")); |
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.
System.getProperty("test.timeout.factor", "5.0")
Definitely not. Traditional default value for no specified timeoutFactor value is 1.0.
static final int COMPILATION_TIMEOUT = max((int)(1_000 * timeoutFactor), 5_000); // ms
So you're trying to make sure we have a minimum COMPILATION_TIMEOUT value of 5 seconds,
but I'm not sure why you want that.
static final int COMPILATION_TIMEOUT = (int)(5_000 * timeoutFactor); // ms
i.e., a default value * timeoutFactor
is the usual way to do this. I've seen some
folks use a timeoutFactor of 0.5 on really fast machines, but that wouldn't work
with your minimum COMPILATION_TIMEOUT value of 5 seconds above.
@lmesnik, @DamonFool and @AlanBateman - Thanks for the reviews. |
With the current patch, Thanks. |
Okay, you're right. |
Sorry for the delay in getting back to this PR. I've been focused on GateKeeping issues instead. This latest update:
makes the test happy on my linux-x64 stress runs. My macosx-aarch64 stress runs
I'm inclined to move ahead with the 5_000 value scaled by timeoutFactor. I think |
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.
LGTM
Thanks for the update.
@DamonFool - Thanks for the re-review! |
/integrate |
Going to push as commit 54843b7.
Your commit was automatically rebased without conflicts. |
@dcubed-ojdk Pushed as commit 54843b7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
jdk/internal/vm/Continuation/Fuzz.java* passed 12 times (2 sub-tests x 6 configs) |
A trivial fix so that Continuation/Fuzz.java honors the timeoutFactor JTREG setting
when waiting for a compilation to finish.
This fix is being tested in my jdk-20+10 stress testing run.
The usual Mach5 timeoutFactor is 4.0 with slower configurations using a timeoutFactor
of 10.0. In my stress testing, I use release-bits: 4.0, fastdebug-bits: 6.0 and slowdebug-bits: 12.0.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9844/head:pull/9844
$ git checkout pull/9844
Update a local copy of the PR:
$ git checkout pull/9844
$ git pull https://git.openjdk.org/jdk pull/9844/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9844
View PR using the GUI difftool:
$ git pr show -t 9844
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9844.diff