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

8263821: Remove unused MethodTypeForm canonicalization codes #3075

wants to merge 2 commits into from


Copy link

@cl4es cl4es commented Mar 18, 2021

MethodTypeForm.INTS, LONGS and RAW_RETURN are effectively unused. This removes these canonicalization codes and cleans up related code.


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


  • JDK-8263821: Remove unused MethodTypeForm canonicalization codes



To checkout this PR locally:
$ git fetch pull/3075/head:pull/3075
$ git checkout pull/3075

To update a local copy of the PR:
$ git checkout pull/3075
$ git pull pull/3075/head

Copy link

@bridgekeeper bridgekeeper bot commented Mar 18, 2021

👋 Welcome back redestad! 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.

@cl4es cl4es marked this pull request as ready for review Mar 18, 2021
Copy link

@openjdk openjdk bot commented Mar 18, 2021

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

  • core-libs
  • hotspot-compiler

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-compiler core-libs rfr labels Mar 18, 2021
Copy link

@mlbridge mlbridge bot commented Mar 18, 2021


Copy link

@mlchung mlchung left a comment

I don't object this dead code elimination. I don't know the design/thought when these unused canonicalization codes were defined.

Copy link

@openjdk openjdk bot commented Mar 18, 2021

@cl4es This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file for details.

After integration, the commit message for the final commit will be:

8263821: Remove unused MethodTypeForm canonicalization codes

Reviewed-by: mchung

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

  • 788e30c: 8263320: [test] Add Object Stream Formatter to work with test utility HexPrinter
  • fa0f161: 8263742: (bf) MappedByteBuffer.force() should use the capacity as its upper bound
  • c82a673: 8262001: java/lang/management/ThreadMXBean/ failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"
  • 01ddf3d: 8263622: The java.awt.color.ICC_Profile#setData invert the order of bytes for the "head" tag
  • e34f766: 8252723: Run also with C2-only
  • 2173fed: 8263439: getSupportedAttributeValues() throws NPE for Finishings attribute
  • e543a50: 8261352: Create implementation for component peer for all the components who should be ignored in a11y interactions
  • 21db0f6: 8263659: Reflow GTestResultParser for better readability
  • e333b6e: 8246494: introduce vm.flagless at-requires property

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 label Mar 18, 2021
Copy link
Member Author

@cl4es cl4es commented Mar 18, 2021

This code appear to have been initially introduced with the JDK 7 implementation of JSR 292, which implemented different ways of adapting to and from generic types than the current code:

Many uses (possibly all) were removed in (8-b01) where adapters were reworked. This was backported to 7, so the code I'm removing here is probably dead in all active releases.

Copy link

@mlchung mlchung commented Mar 18, 2021

Thanks for the history.

Copy link
Member Author

@cl4es cl4es commented Mar 19, 2021


@openjdk openjdk bot closed this Mar 19, 2021
@openjdk openjdk bot added integrated and removed ready rfr labels Mar 19, 2021
Copy link

@openjdk openjdk bot commented Mar 19, 2021

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

  • 4d51a82: 8263818: Release JNI local references in get/set-InetXXAddress-member helper functions of net_util.c
  • 701fd9d: 8262476: Add filter to speed up CompileCommand lookup
  • 454af87: 8263185: Mallinfo deprecated in glibc 2.33
  • d24e4cf: 8263481: Specification of JComponent::setDefaultLocale doesn't mention that passing 'null' restores VM's default locale
  • 1a21f77: 8263482: Make access to the ICC color profiles data multithread-friendly
  • d185655: 8263832: Shenandoah: Fixing parallel thread iteration in final mark task
  • 434a399: 8260274: Cipher.init(int, key) does not use highest priority provider for random bytes
  • 6aa28b3: 8263827: Suspend "missing" javadoc doclint checks for smartcardio
  • ed1e25d: 8263833: Stop disabling warnings for sunFont.c with gcc
  • 788e30c: 8263320: [test] Add Object Stream Formatter to work with test utility HexPrinter
  • ... and 8 more:

Your commit was automatically rebased without conflicts.

Pushed as commit 57497ab.

💡 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
core-libs hotspot-compiler integrated
2 participants