Skip to content

8343293: Remove the check for <apphome>/jre/lib/libjava.dylib from the launcher's java_md_macosx.m #21789

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

Closed
wants to merge 2 commits into from

Conversation

jaikiran
Copy link
Member

@jaikiran jaikiran commented Oct 30, 2024

Can I please get a review of this change which cleans up a leftover code from the launcher's java_md_macosx.m file?

In https://bugs.openjdk.org/browse/JDK-8329862 changes were done in the launcher code to remove checks for <apphome>/jre/lib/ when determining the JDK installation root. Those changes were done in the Unix and Windows files and the macosx one got left out, likely due to an oversight.

The commit in this PR removes that leftover code. No new tests have been added and existing tier1, tier2, tier3 tests continue to pass.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 2 Reviewers)

Issue

  • JDK-8343293: Remove the check for <apphome>/jre/lib/libjava.dylib from the launcher's java_md_macosx.m (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21789/head:pull/21789
$ git checkout pull/21789

Update a local copy of the PR:
$ git checkout pull/21789
$ git pull https://git.openjdk.org/jdk.git pull/21789/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21789

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21789.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 30, 2024

👋 Welcome back jpai! 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 Oct 30, 2024

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

8343293: Remove the check for <apphome>/jre/lib/libjava.dylib from the launcher's java_md_macosx.m

Reviewed-by: bpb, rriggs

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 127 new commits pushed to the master branch:

  • d3c042f: 8343770: Build fails due to use of sun.misc.Unsafe in LoopOverRandom
  • 1d117f6: 8343394: Make MemorySessionImpl.state a stable field
  • d2b681d: 8343730: JMX cleanups
  • ac82a8f: 8343610: InOutPathTest jpackage test produces invalid app image on macOS
  • f0b251d: 8343531: Improve print_location for invalid heap pointers
  • 4244682: 8339190: Parameter arrays that are capped during annotation processing report incorrect length
  • 7620b12: 8323803: ConstantOopReadValue::print_on should print 'null' instead of 'nullptr'
  • 592a48b: 8321997: Increase upper limit of LoopOptsCount flag
  • c3df050: 8343726: [BACKOUT] NMT should not use ThreadCritical
  • 0e1c1b7: 8343452: Incorrect WINDOWS build variable is used in macroAssembler_x86.cpp
  • ... and 117 more: https://git.openjdk.org/jdk/compare/821c514a132e809a14648ddbb56f2ffee85fd35a...master

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 rfr Pull request is ready for review label Oct 30, 2024
@openjdk
Copy link

openjdk bot commented Oct 30, 2024

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

  • core-libs

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 core-libs core-libs-dev@openjdk.org label Oct 30, 2024
@mlbridge
Copy link

mlbridge bot commented Oct 30, 2024

Webrevs

@bplb
Copy link
Member

bplb commented Oct 31, 2024

/reviewers 2 reviewer

@openjdk
Copy link

openjdk bot commented Oct 31, 2024

@bplb
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 2 Reviewers).

Copy link
Member

@bplb bplb left a comment

Choose a reason for hiding this comment

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

Looks fine to me, especially given the testing cited, but this is not my area so I bumped the reviewer count to 2.

@@ -429,18 +429,6 @@ static void MacOSXStartup(int argc, char *argv[]) {
return JNI_TRUE;
}
}
/* ensure storage for path + /jre + NULL */
Copy link
Contributor

Choose a reason for hiding this comment

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

The corresponding changes in JDK-8329862 included adding a call to JLI_TraceLauncher.
Such as:
JLI_TraceLauncher("Attempt to get JDK installation root from launcher executable path\n");
Adding a similar trace message would be consistent across platforms.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point. I've now updated the PR to add the same log message as the one present in unix/windows variant of this code.

Copy link
Contributor

@RogerRiggs RogerRiggs left a comment

Choose a reason for hiding this comment

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

Thanks fro the extra logging.

Copy link
Member

@bplb bplb left a comment

Choose a reason for hiding this comment

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

Looks fine.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 7, 2024
@jaikiran
Copy link
Member Author

jaikiran commented Nov 8, 2024

Thank you Roger and Brian for the reviews.

@jaikiran
Copy link
Member Author

jaikiran commented Nov 8, 2024

/integrate

@openjdk
Copy link

openjdk bot commented Nov 8, 2024

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

  • f621f26: 8343724: [PPC64] Disallow OptoScheduling
  • a63f501: 8343396: Use OperatingSystem, Architecture, and OSVersion in jpackage tests
  • 84c99fb: 8283664: Remove jtreg tag manual=yesno for java/awt/print/PrinterJob/PrintTextTest.java
  • 2c7bea1: 8343772: Expected IAPE not thrown in KDF.getInstance (TCK)
  • fac89f4: 8343493: Perform module checks during MetaspaceShared::map_archives()
  • ccda815: 8342303: Segfault in update_inherited_vtable: AppCDS, old bytecode, and redefineClasses
  • 4f5a241: 8343491: javax/management/remote/mandatory/connection/DeadLockTest.java failing with NoSuchObjectException: no such object in table
  • 56c588b: 8343417: (fs) BasicFileAttributeView.setTimes uses microsecond precision with NOFOLLOW_LINKS
  • d3c042f: 8343770: Build fails due to use of sun.misc.Unsafe in LoopOverRandom
  • 1d117f6: 8343394: Make MemorySessionImpl.state a stable field
  • ... and 125 more: https://git.openjdk.org/jdk/compare/821c514a132e809a14648ddbb56f2ffee85fd35a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 8, 2024
@openjdk openjdk bot closed this Nov 8, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Nov 8, 2024
@openjdk
Copy link

openjdk bot commented Nov 8, 2024

@jaikiran Pushed as commit 068f4ce.

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

@jaikiran jaikiran deleted the 8343293 branch November 8, 2024 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants