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

8212961: [TESTBUG] vmTestbase/nsk/stress/jni/ native code cleanup #4882

Closed
wants to merge 14 commits into from

Conversation

dholmes-ora
Copy link
Member

@dholmes-ora dholmes-ora commented Jul 22, 2021

Please review what is primarily a code style cleanup with some old native code:

  • add spaces around operators and after commas
  • fixed indent and line breaks
  • added braces to blocks
  • replaced raw malloc with c_malloc (check malloc)
  • fixed CE macro using and exception processing in general
    • added different CHECK macro for monitor enter/exit
    • removed some unreachable explicit exception checking code

I staged this as multiple commits to try and make the changes more obvious at each step (and if you hide whitespace changes it simplifies quite a bit), but it may be easier to just look at the end results and see if anything jumps out as still needing changing.

Note: there was no attempt to actually change the logic of any test or rewrite them in a better way - that is out of scope for the cleanup. The only logic changes relates to the CE macro and exception/error checking.

Testing:

  • local running of the tests themselves
  • tier5 testing in our CI system (in progress).

This may be of interest to @iignatev and @lmesnik .

Thanks,
David


Progress

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

Issue

  • JDK-8212961: [TESTBUG] vmTestbase/nsk/stress/jni/ native code cleanup

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4882/head:pull/4882
$ git checkout pull/4882

Update a local copy of the PR:
$ git checkout pull/4882
$ git pull https://git.openjdk.java.net/jdk pull/4882/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4882

View PR using the GUI difftool:
$ git pr show -t 4882

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4882.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 22, 2021

👋 Welcome back dholmes! 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
Copy link

openjdk bot commented Jul 22, 2021

@dholmes-ora The following label will be automatically applied to this pull request:

  • hotspot-runtime

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-runtime hotspot-runtime-dev@openjdk.org label Jul 22, 2021
@dholmes-ora dholmes-ora marked this pull request as ready for review July 22, 2021 22:48
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 22, 2021
@mlbridge
Copy link

mlbridge bot commented Jul 22, 2021

Webrevs

Copy link
Member

@tstuefe tstuefe 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, small remarks inside.

Cheers, Thomas

@dholmes-ora
Copy link
Member Author

Thanks for looking at this @tstuefe !

Copy link
Member

@tstuefe tstuefe 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!

@openjdk
Copy link

openjdk bot commented Jul 23, 2021

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

8212961: [TESTBUG] vmTestbase/nsk/stress/jni/ native code cleanup

Reviewed-by: stuefe, iignatyev

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 83 new commits pushed to 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 Jul 23, 2021
@dholmes-ora
Copy link
Member Author

Looking for a second review please.

Copy link
Member

@iignatev iignatev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dholmes-ora
Copy link
Member Author

Thanks for the review @iignatev !

/integrate

@openjdk
Copy link

openjdk bot commented Jul 27, 2021

Going to push as commit fde1831.
Since your change was applied there have been 95 commits pushed to the master branch:

  • bb508e1: 8269753: Misplaced caret in PatternSyntaxException's detail message
  • c3d8e92: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream
  • eb6da88: Merge
  • b76a838: 8269150: UnicodeReader not translating \u005c\u005d to \]
  • 7ddabbf: 8271175: runtime/jni/FindClassUtf8/FindClassUtf8.java doesn't have to be run in othervm
  • 3c27f91: 8271222: two runtime/Monitor tests don't check exit code
  • 049b2ad: 8015886: java/awt/Focus/DeiconifiedFrameLoosesFocus/DeiconifiedFrameLoosesFocus.java sometimes failed on ubuntu
  • fcc7d59: 8269342: CICrashAt=1 does not always catch first Java method
  • 8785737: 8269616: serviceability/dcmd/framework/VMVersionTest.java fails with Address already in use error
  • 3aadae2: 8271140: Fix native frame handling in vframeStream::asJavaVFrame()
  • ... and 85 more: https://git.openjdk.java.net/jdk/compare/1eeb1791abc438a65fa3491d1cd14ad69ef1ff98...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Jul 27, 2021
@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 Jul 27, 2021
@openjdk
Copy link

openjdk bot commented Jul 27, 2021

@dholmes-ora Pushed as commit fde1831.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@dholmes-ora dholmes-ora deleted the 8212961 branch July 30, 2021 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated
3 participants