jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8295029: runtime/cds/appcds/LotsOfClasses.java fail with jfx

Open coleenp opened this issue 3 years ago • 3 comments

I still have to write a test case.


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8295029: runtime/cds/appcds/LotsOfClasses.java fail with jfx

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 10708

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

Using diff file

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

coleenp avatar Oct 14 '22 02:10 coleenp

:wave: Welcome back coleenp! 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.

bridgekeeper[bot] avatar Oct 14 '22 02:10 bridgekeeper[bot]

@coleenp 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[bot] avatar Oct 14 '22 02:10 openjdk[bot]

I still have to write a test case.

Yes, the testcase needs to simulate a large number of (about 60189 - 49191) classes just like import javafx modular.

Thanks, Leslie Zhai

xiangzhai avatar Oct 14 '22 09:10 xiangzhai

Webrevs

mlbridge[bot] avatar Oct 17 '22 12:10 mlbridge[bot]

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

8295029: runtime/cds/appcds/LotsOfClasses.java fail with jfx

Reviewed-by: iklam, ccheung, gziemski

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

  • 0233ba763d84e6da8ec03df5d021a13c5fbbc871: 8284614: on macOS "spindump" should be run from failure_handler as root
  • 2a799e5c82395919b807561da4a062e0fe6da31d: 8285306: Fix typos in java.desktop
  • d1f794587cbac221649114b71f2fce5e1f8b7e49: 6924219: (fc spec) FileChannel.write(ByteBuffer, position) behavior when file opened for append not specified
  • 5dbd49511518819acbbff9968cdf426af759cf2c: 8295457: Make the signatures of write barrier methods consistent
  • 7b2e83b3955c034208325ea5477afd3c5e1da41a: 8295469: S390X: Optimized builds are broken
  • 63867c4b52a331f8d77f2c32dc8053c0f990dfc6: 8295433: EpsilonHeap doesn't need to override post_initialize()
  • e7375f9c527fd86dc1414a308a440903fb9f22da: 8295468: RISC-V: Minimal builds are broken
  • bd41428a5602e59034e61bf34eed686d4c7b052a: 8293590: Some syntax checks performed by URL.openConnection() could be performed earlier, at URL construction
  • 78fed9d3074ecfde5dfcd31f433ba104ad059d21: 7175397: The divider color is not changed to green when dragging for Nimbus LaF.
  • 8c40b7dc8cd7b6a6d0c9349b991e0e01b69349c3: 8292177: InitialSecurityProperty JFR event
  • ... and 91 more: https://git.openjdk.org/jdk/compare/3a980b972f72b5bbfd7bb63b433ae562890dbcf2...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[bot] avatar Oct 17 '22 20:10 openjdk[bot]

So the only one type of dictionary that gains the super powers of resizing is the DelegatingClassLoader dictionary, but based on comments it's always size 1, so it never will need to be resized?

Related question, but not part of this fix - can we simplify things and not have to bother with 1 element dictionary for DelegatingClassLoader somehow?

gerard-ziemski avatar Oct 18 '22 19:10 gerard-ziemski

Thanks for the reviews, Ioi, Calvin and Gerard. To answer your question about the DelegatingClassLoader - it's always a 1 element hashtable so would never need to be resized. Seems efficient to specify a very small hashtable. We may be able to eventually remove it because of JEP 416: JDK-8271820. Thanks. /integrate

coleenp avatar Oct 18 '22 20:10 coleenp

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

  • 0233ba763d84e6da8ec03df5d021a13c5fbbc871: 8284614: on macOS "spindump" should be run from failure_handler as root
  • 2a799e5c82395919b807561da4a062e0fe6da31d: 8285306: Fix typos in java.desktop
  • d1f794587cbac221649114b71f2fce5e1f8b7e49: 6924219: (fc spec) FileChannel.write(ByteBuffer, position) behavior when file opened for append not specified
  • 5dbd49511518819acbbff9968cdf426af759cf2c: 8295457: Make the signatures of write barrier methods consistent
  • 7b2e83b3955c034208325ea5477afd3c5e1da41a: 8295469: S390X: Optimized builds are broken
  • 63867c4b52a331f8d77f2c32dc8053c0f990dfc6: 8295433: EpsilonHeap doesn't need to override post_initialize()
  • e7375f9c527fd86dc1414a308a440903fb9f22da: 8295468: RISC-V: Minimal builds are broken
  • bd41428a5602e59034e61bf34eed686d4c7b052a: 8293590: Some syntax checks performed by URL.openConnection() could be performed earlier, at URL construction
  • 78fed9d3074ecfde5dfcd31f433ba104ad059d21: 7175397: The divider color is not changed to green when dragging for Nimbus LaF.
  • 8c40b7dc8cd7b6a6d0c9349b991e0e01b69349c3: 8292177: InitialSecurityProperty JFR event
  • ... and 91 more: https://git.openjdk.org/jdk/compare/3a980b972f72b5bbfd7bb63b433ae562890dbcf2...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Oct 18 '22 20:10 openjdk[bot]

@coleenp Pushed as commit 37f93b6728ae9ebe4bbd89edcf521def67845fdf.

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

openjdk[bot] avatar Oct 18 '22 20:10 openjdk[bot]