RFR: 8269476: Skip nmethod entry barrier if there is no oops in the jit code [v3]

王超 github.com+25214855+casparcwang at openjdk.java.net
Tue Jun 29 08:37:41 UTC 2021


> Lots of c1 and c2 jit methods do not contain any oop, so the nmethod entry barrier can be skipped.
> 
> 1, c1 jit code will patch oops or Klass into the nmethod, so the entry barrier cannot directly be eliminated, current implementation uses a jump instruction to replace the jcc instruction. If the jit code is patched to contain oops, the entry barrier is patched back to the jcc instruction.
> 
> 2, only the jit code of core library methods do not contain any oops.
> 
> 3, currently only support zgc

王超 has updated the pull request incrementally with two additional commits since the last revision:

 - Add support for aarch64
 - Change to nop version

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4610/files
  - new: https://git.openjdk.java.net/jdk/pull/4610/files/51871984..442475b1

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4610&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4610&range=01-02

  Stats: 179 lines in 6 files changed: 110 ins; 61 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4610.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4610/head:pull/4610

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


More information about the hotspot-dev mailing list