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

8256299: Implement JEP 396: Strongly Encapsulate JDK Internals by Default #1324

Closed
wants to merge 6 commits into from

Conversation

mbreinhold
Copy link
Member

@mbreinhold mbreinhold commented Nov 19, 2020

Please review this implementation of JEP 396 (https://openjdk.java.net/jeps/396).
Alan Bateman is the original author; I’ve credited him in the commit metadata.
Passes tiers 1-3 on {linux,macos,windows}-x64 and linux-aarch64.


Progress

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

Issue

  • JDK-8256299: Implement JEP 396: Strongly Encapsulate JDK Internals by Default

Reviewers

Contributors

  • Alan Bateman <alanb@openjdk.org>

Download

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

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 19, 2020

👋 Welcome back mr! 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 added the rfr Pull request is ready for review label Nov 19, 2020
@openjdk
Copy link

openjdk bot commented Nov 19, 2020

@mbreinhold The following labels will be automatically applied to this pull request:

  • core-libs
  • hotspot-runtime

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added hotspot-runtime hotspot-runtime-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Nov 19, 2020
@mbreinhold
Copy link
Member Author

/label jigsaw, core-libs

@openjdk
Copy link

openjdk bot commented Nov 19, 2020

@mbreinhold The label jigsaw is not a valid label. These labels are valid:

  • serviceability
  • hotspot
  • sound
  • hotspot-compiler
  • kulla
  • i18n
  • shenandoah
  • jdk
  • javadoc
  • 2d
  • security
  • swing
  • hotspot-runtime
  • jmx
  • build
  • nio
  • beans
  • core-libs
  • compiler
  • net
  • hotspot-gc
  • hotspot-jfr
  • awt

@mbreinhold
Copy link
Member Author

/csr

@openjdk
Copy link

openjdk bot commented Nov 19, 2020

@mbreinhold the issue for this pull request, JDK-8256299, already has an approved CSR request: JDK-8256300

@mlbridge
Copy link

mlbridge bot commented Nov 19, 2020

Webrevs

@openjdk
Copy link

openjdk bot commented Nov 19, 2020

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

8256299: Implement JEP 396: Strongly Encapsulate JDK Internals by Default

Co-authored-by: Alan Bateman <alanb@openjdk.org>
Reviewed-by: mchung, alanb

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

  • c47ab5f: 8256515: javax.xml.XMLEventReader produces incorrect START_DOCUMENT event
  • 291ba97: 8251267: CDS tests should use CDSTestUtils.getOutputDir instead of System.getProperty("user.dir")
  • f48d5d1: 8257789: Fix incremental build of test-image and bundles
  • 1a9ed92: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected
  • 264feb3: 8257905: Make fixpath.sh more liberal in accepting paths embedded in arguments
  • 044616b: 8252049: Native memory leak in ciMethodData ctor
  • fab6158: 8236413: AbstractConnectTimeout should tolerate both NoRouteToHostException and UnresolvedAddressException
  • 936a7ac: 8252797: Non-PCH build fails on Ubuntu 16.4 when building with gtests
  • d0c5265: 8256149: Weird AST structure for incomplete member select
  • a708024: 8257194: Add 'foreign linker API' in 'jdk.incubator.foreign' module desc/summary
  • ... and 331 more: https://git.openjdk.java.net/jdk/compare/675d1d56e67d2b875da0b3f6c614bb0851bc44db...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 ready Pull request is ready to be integrated label Nov 19, 2020
Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

The hostpot change is trivially fine.

I'm somewhat surprised by the extent of the other changes given the basic change here is to deprecate the option and change its default. I literally expected to see only 2 simple changes to the functional code: the deprecation warning and the changing of the default value.

@AlanBateman
Copy link
Contributor

I'm somewhat surprised by the extent of the other changes given the basic change here is to deprecate the option and change its default. I literally expected to see only 2 simple changes to the functional code: the deprecation warning and the changing of the default value.

There are interactions with the archiving of the module graph and boot layer. Here's one of the mails from the review of JDK-8244778 that has more context:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-August/068159.html
The summary is that, as a short term measure until JEP 396 showed up, we agreed to have the maps to support exporting and opening packages for illegal reflective acces archived with the boot layer. Switching the default allows it goes away.

@mlbridge
Copy link

mlbridge bot commented Nov 20, 2020

Mailing list message from David Holmes on hotspot-runtime-dev:

Hi Alan,

On 20/11/2020 6:04 pm, Alan Bateman wrote:

On Fri, 20 Nov 2020 07:33:50 GMT, David Holmes <dholmes at openjdk.org> wrote:

I'm somewhat surprised by the extent of the other changes given the basic change here is to deprecate the option and change its default. I literally expected to see only 2 simple changes to the functional code: the deprecation warning and the changing of the default value.

There are interactions with the archiving of the module graph and boot layer. Here's one of the mails from the review of JDK-8244778 that has more context:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-August/068159.html
The summary is that, as a short term measure until JEP 396 showed up, we agreed to have the maps to support exporting and opening packages for illegal reflective acces archived with the boot layer. Switching the default allows it goes away.

Thanks for the information. I don't understand enough to know why this
is the case.

Cheers,
David

@mbreinhold
Copy link
Member Author

/contributor add alanb

@openjdk
Copy link

openjdk bot commented Dec 8, 2020

@mbreinhold
Contributor Alan Bateman <alanb@openjdk.org> successfully added.

@mbreinhold
Copy link
Member Author

/integrate

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

openjdk bot commented Dec 8, 2020

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

  • c47ab5f: 8256515: javax.xml.XMLEventReader produces incorrect START_DOCUMENT event
  • 291ba97: 8251267: CDS tests should use CDSTestUtils.getOutputDir instead of System.getProperty("user.dir")
  • f48d5d1: 8257789: Fix incremental build of test-image and bundles
  • 1a9ed92: 8200102: NativeLibraryTest.java fails intermittently, unloaded count is not same as expected
  • 264feb3: 8257905: Make fixpath.sh more liberal in accepting paths embedded in arguments
  • 044616b: 8252049: Native memory leak in ciMethodData ctor
  • fab6158: 8236413: AbstractConnectTimeout should tolerate both NoRouteToHostException and UnresolvedAddressException
  • 936a7ac: 8252797: Non-PCH build fails on Ubuntu 16.4 when building with gtests
  • d0c5265: 8256149: Weird AST structure for incomplete member select
  • a708024: 8257194: Add 'foreign linker API' in 'jdk.incubator.foreign' module desc/summary
  • ... and 331 more: https://git.openjdk.java.net/jdk/compare/675d1d56e67d2b875da0b3f6c614bb0851bc44db...master

Your commit was automatically rebased without conflicts.

Pushed as commit ed4c4ee.

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

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 hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated
4 participants