-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8254297: Zero and Minimal VMs are broken with undeclared identifier 'DerivedPointerTable' after JDK-8253180 #578
Conversation
…interTable' after JDK-8253180
/issue add JDK-8254297 |
👋 Welcome back jiefu! A progress list of the required criteria for merging this PR into |
@DamonFool The primary solved issue for a PR is set through the PR title. Since the current title does not contain an issue reference, it will now be updated. |
@DamonFool 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 |
@DamonFool |
@DamonFool The |
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 this is fine. @fisk might need to ack this.
DerivedPointerTable::add(derived, base); | ||
#endif // COMPILER2_OR_JVMCI |
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 correct and actually reverses the JDK-8253180 change. It is correct because DerivedPointerTable
is protected by the same #if
:
#if COMPILER2_OR_JVMCI
class DerivedPointerTable : public AllStatic {
...
#if COMPILER2_OR_JVMCI | ||
oops_do_internal(f, cf, map, true, DerivedPointerTable::is_active() ? | ||
DerivedPointerIterationMode::_with_table : | ||
DerivedPointerIterationMode::_ignore); | ||
#else | ||
oops_do_internal(f, cf, map, true, DerivedPointerIterationMode::_ignore); | ||
#endif |
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 could have used COMPILER2_OR_JVMCI_PRESENT
inline macro, but I think that would be messier.
@@ -211,7 +211,7 @@ void VMError::print_stack_trace(outputStream* st, JavaThread* jt, | |||
st->cr(); | |||
|
|||
// Print the frames | |||
StackFrameStream sfs(jt); | |||
StackFrameStream sfs(jt, true /* update */, true /* process_frames */); |
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 correct, also because it does the same thing as L227 below does.
@DamonFool 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 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
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 good. Thanks for fixing.
Since mainline contains both #546 (merged yesterday) and #296 (merged today), most testing would now fail on builds steps. @DamonFool, please integrate as soon as possible! |
@DamonFool Since your change was applied there have been 3 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit aaa0a2a. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The change fixes Zero and Minimal builds broken after JDK-8253180.
Two build errors were fixed:
1 ./src/hotspot/share/runtime/frame.cpp:1047:38: error: use of undeclared identifier 'DerivedPointerTable'
oops_do_internal(f, cf, map, true, DerivedPointerTable::is_active() ?
./src/hotspot/share/utilities/vmError.cpp:214:28: error: no matching function for call to 'StackFrameStream::StackFrameStream(JavaThread*&)'
StackFrameStream sfs(jt);
^
Progress
Testing
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/578/head:pull/578
$ git checkout pull/578