-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8242152: SA does not include StackMapTables when dumping .class files #14556
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
Conversation
👋 Welcome back quadhier! A progress list of the required criteria for merging this PR into |
/label remove hotspot-gc |
@quadhier |
Webrevs
|
@quadhier you beat me to this! Changes look good. On another note since you mentioned JDK-8309751 I should let you know I have a fix for it and am planning to open a PR soon. My bad that I didn't assign that issue to myself before starting working on it. |
Good news! Never mind and thanks for your notice 😄. |
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 made a couple of minor suggestions. Otherwise it looks good.
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ConstMethod.java
Outdated
Show resolved
Hide resolved
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java
Outdated
Show resolved
Hide resolved
@quadhier 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 32 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@plummercj, @sspitsyn) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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.
This looks good in general.
I've posted one nit about formatting.
What test coverage does this update have?
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/jcore/ClassWriter.java
Outdated
Show resolved
Hide resolved
Thank @plummercj and @sspitsyn for your reviews!
AFAICS, there are two jtreg tests for class dump — one is Maybe we could add a validation in |
/reviewers 2 |
It'd be nice to add if it is not hard to do. |
A simple check has been added. For optional attributes like FYI, |
/integrate |
/sponsor |
Going to push as commit 8e04702.
Your commit was automatically rebased without conflicts. |
On no. CI shows that my added test statement passes on Linux but fails on Windows. This is sort of wierd. Shouldn't class file format be platform agnostic? I'd take a look at it. |
We see a tier1 failure on Linux-x64-debug running
|
What output is the test looking for i.e why is supposed to be writing it? If it is the |
My fault. Thanks for your reporting, David. I will look into this immediately. I didn't find that maybe because I run tests on Linux using release build. |
I've filed https://bugs.openjdk.org/browse/JDK-8310618 |
It is looking for |
Thanks, David! Sorry for any inconvenience casued by that. |
I see the failure too. javap needs "-v" to show the StackMap info, I see that on linux release and debug builds. |
Exactly! @kevinjwalls. And a situation similar to this one happen again. Thanks for your investigation. I would fix it ASAP. |
Folks the GHA for this PR reported a failure in serviceability/sa/ClhsdbDumpclass The actual integration reported failures on windows-x64, linux-aarch64 and linux-x64 |
Hi, @dcubed-ojdk, yes, sorry for that. And it should have been fixed in this PR #14612. |
This patch adds
StackMapTable
for the class files generated byclhsdb
'sbuildreplayjars
command. This bug manifests itself during my diagnosing JDK-8309751 and needs to be fixed first.I have run jtreg test
tier1-3
of release build on x86 linux finding only one failure intier2
caused by JDK-8309214.jtreg:test/hotspot/jtreg/serviceability
andjtreg:test/jdk/sun/tools/
also passed.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14556/head:pull/14556
$ git checkout pull/14556
Update a local copy of the PR:
$ git checkout pull/14556
$ git pull https://git.openjdk.org/jdk.git pull/14556/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14556
View PR using the GUI difftool:
$ git pr show -t 14556
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14556.diff
Webrev
Link to Webrev Comment