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
8276687: Remove support for JDK 1.4.1 PerfData shared memory files #10687
Conversation
|
Webrevs
|
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.
Looks like a good cleanup. One suggestion/request below if you feel like it.
Thanks.
return Integer.parseInt(name.substring(first + 1, last)); | ||
} | ||
} catch (NumberFormatException e) { } | ||
} | ||
throw new IllegalArgumentException("file name does not match pattern"); |
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.
Pre-existing but it would be nice if this actually reported the file and the pattern.
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.
Maybe "cannot convert 'filename' to VM id". (Or to pid.) We just parse it as an Integer now, so showing the problem filename would be nice. (Not sure if we would get this far trying a 1.4.1 attach, but if we did, it would help diagnose that.)
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.
David and Kevin, thanks for the suggestions. I've update the error message. Does it look OK now?
@iklam This change now passes all automated pre-integration checks. 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 14 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.
|
Maybe the 3 classes in src/jdk.internal.jvmstat/share/classes/sun/jvmstat/perfdata/monitor/v1_0/ are redundant...? |
I have filed https://bugs.openjdk.org/browse/JDK-8295253 to remove the "kludge" code for supporting 1.4.1 in the monitor/v1_0/ code. Because of this kludge code, I suspect that v1_0 actually supports versions other than 1.4.1, so I am hesitant of removing the entire v1_0 directory. More investigation is needed. |
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.
Nice cleanup!
Yes, that's good. OK so there is evidence that v1_0 perfdata was at least used for some 1.4.2, so yes no rush to remove the v1_0 classes, thanks. |
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.
Ok.
Thanks @kevinjwalls @cl4es @dholmes-ora for the review. |
Going to push as commit 67046ae.
Your commit was automatically rebased without conflicts. |
We have code in jdk.internal.jvmstat for supporting an ancient version (JDK 1.4.1). There's currently no test case for this code, so it's likely to be further bit-rotten in the future. Let's remove it now.
If anyone wants to connect to JDK 1.4.1, they can use tools from JDK 19 or earlier.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10687/head:pull/10687
$ git checkout pull/10687
Update a local copy of the PR:
$ git checkout pull/10687
$ git pull https://git.openjdk.org/jdk pull/10687/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10687
View PR using the GUI difftool:
$ git pr show -t 10687
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10687.diff