Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

DamonFool
Copy link
Member

@DamonFool DamonFool commented Oct 9, 2020

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() ?

  1. ./src/hotspot/share/utilities/vmError.cpp: In static member function 'static void VMError::print_stack_trace(outputStream*, JavaThread*, char*, int, bool)':
    ./src/hotspot/share/utilities/vmError.cpp:214:28: error: no matching function for call to 'StackFrameStream::StackFrameStream(JavaThread*&)'
    StackFrameStream sfs(jt);
    ^

Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Testing

Linux x64 Windows x64 macOS x64
Build ✔️ (5/5 passed) ⏳ (1/2 running) ✔️ (2/2 passed)
Test (tier1) ⏳ (6/9 running) ⏳ (1/9 running)

Issue

  • JDK-8254297: Zero and Minimal VMs are broken with undeclared identifier 'DerivedPointerTable' after JDK-8253180

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/578/head:pull/578
$ git checkout pull/578

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
phillebaba Philip Laine
…interTable' after JDK-8253180
@DamonFool
Copy link
Member Author

/issue add JDK-8254297
/test

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 9, 2020

👋 Welcome back jiefu! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot changed the title Zero and Minimal VMs are broken with undeclared identifier 'DerivedPointerTable' after JDK-8253180 8254297: Zero and Minimal VMs are broken with undeclared identifier 'DerivedPointerTable' after JDK-8253180 Oct 9, 2020
@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@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.

@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 9, 2020
@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@DamonFool The following label will be automatically applied to this pull request:

  • hotspot

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.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Oct 9, 2020
@DamonFool
Copy link
Member Author

/label add hotspot-runtime
/cc hotspot-runtime

@openjdk openjdk bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label Oct 9, 2020
@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@DamonFool
The hotspot-runtime label was successfully added.

@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@DamonFool The hotspot-runtime label was already applied.

@mlbridge
Copy link

mlbridge bot commented Oct 9, 2020

Webrevs

Copy link
Member

@shipilev shipilev left a 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
Copy link
Member

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 {
...

Comment on lines +1047 to +1053
#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
Copy link
Member

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 */);
Copy link
Member

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.

@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@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:

8254297: Zero and Minimal VMs are broken with undeclared identifier 'DerivedPointerTable' after JDK-8253180

Reviewed-by: shade, eosterlund

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 master branch:

  • 7e80c98: 8254261: fix javadocs in jdk.test.lib.Utils
  • d4b5dfd: 8253857: Shenandoah: Bugs in ShenandoahEvacOOMHandler related code
  • e9c1905: 8253740: [PPC64] Minor interpreter cleanup

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 9, 2020
Copy link
Contributor

@fisk fisk left a 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.

@shipilev
Copy link
Member

shipilev commented Oct 9, 2020

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
Copy link
Member Author

Thanks @shipilev and @fisk for your review.
/integrate

@openjdk openjdk bot closed this Oct 9, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 9, 2020
@openjdk
Copy link

openjdk bot commented Oct 9, 2020

@DamonFool Since your change was applied there have been 3 commits pushed to the master branch:

  • 7e80c98: 8254261: fix javadocs in jdk.test.lib.Utils
  • d4b5dfd: 8253857: Shenandoah: Bugs in ShenandoahEvacOOMHandler related code
  • e9c1905: 8253740: [PPC64] Minor interpreter cleanup

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.

@DamonFool DamonFool deleted the JDK-8254297 branch October 9, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot hotspot-dev@openjdk.org hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

None yet

3 participants