RFR: 8256172: Clean up CDS handling of i2i_entry

Ioi Lam iklam at openjdk.java.net
Wed Nov 18 00:42:10 UTC 2020


This PR is a prerequisite for [JDK-8250989](https://bugs.openjdk.java.net/browse/JDK-8250989) - Consolidate buffer allocation code for CDS static/dynamic archive dumping.

-  Move the allocation of the i2i buffer after all classes are loaded. This makes it possible to estimate the size of the CDS archive before we allocate the output space (this is what dynamic archive does now).
- No need to generate the i2i trampoline code during -Xshare:dump
- Clean up the CDS code in abstractInterpreter.cpp and add more comments.

-------------

Commit messages:
 - 8256172: Clean up CDS handling of i2i_entry

Changes: https://git.openjdk.java.net/jdk/pull/1280/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1280&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8256172
  Stats: 84 lines in 8 files changed: 24 ins; 39 del; 21 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1280.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1280/head:pull/1280

PR: https://git.openjdk.java.net/jdk/pull/1280


More information about the hotspot-runtime-dev mailing list