jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8263377: Store method handle linkers in the 'non-nmethods' heap

Open yftsai opened this issue 3 years ago • 11 comments


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-8263377: Store method handle linkers in the 'non-nmethods' heap

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 8760

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

Using diff file

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

yftsai avatar May 17 '22 23:05 yftsai

:wave: Welcome back yftsai! 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 May 17 '22 23:05 bridgekeeper[bot]

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

  • hotspot

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 May 17 '22 23:05 openjdk[bot]

@yftsai this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout intrinsics
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

openjdk[bot] avatar May 26 '22 16:05 openjdk[bot]

Webrevs

mlbridge[bot] avatar Jun 01 '22 16:06 mlbridge[bot]

I don't think we need a new RuntimeBlob subclasses. Can't we use the existing AdapterBlob or MethodHandlesAdapterBlob?

When changing from nmethod to CodeBlob, don't we need to replace COMPILED_METHOD_LOAD JVMTI events with DYNAMIC_CODE_GENERATED events?

dean-long avatar Jun 04 '22 01:06 dean-long

Looking at all the CompiledMethod --> CodeBlob changes, I wondering if it wouldn't be better to use a subclass of CompiledMethod, liked we did for AOT methods. However, there may be assumptions in the code that the only subclass of CompiledMethod is nmethod.

dean-long avatar Jun 04 '22 01:06 dean-long

/label hotspot-compiler

dean-long avatar Jun 04 '22 02:06 dean-long

@dean-long The hotspot-compiler label was successfully added.

openjdk[bot] avatar Jun 04 '22 02:06 openjdk[bot]

if it wouldn't be better to use a subclass of CompiledMethod

The idea has been explored in this earlier commit. Overall, it is more complex in reimplementing many CompiledMethod interfaces to support nmethod life cycle and GC scans. These interfaces are logically irrelevant to MH intrinsics which never unload and contain no oops.

yftsai avatar Jun 07 '22 21:06 yftsai

Can't we use the existing AdapterBlob or MethodHandlesAdapterBlob?

An MH intrinsic is handled differently from them in SharedRuntime::continuation_for_implicit_exception and compiledIC. The extra field _method is used in places like trace_exception unless this information is not important.

yftsai avatar Jun 07 '22 23:06 yftsai

@yftsai This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Aug 07 '22 21:08 bridgekeeper[bot]

@yftsai This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar Sep 10 '22 00:09 bridgekeeper[bot]