RFR: 8349088: De-virtualize Codeblob and nmethod [v4]
    Vladimir Kozlov 
    kvn at openjdk.org
       
    Wed Feb 12 00:14:31 UTC 2025
    
    
  
> Remove virtual methods from CodeBlob and nmethod to simplify saving/restoring in Leyden AOT cache. It avoids the need to patch hidden VPTR pointer to class's virtual table.
> 
> Added C++ static asserts to make sure no virtual methods are added in a future.
> 
> Fixed/cleaned SA code which process CodeBlob and its subclasses. Use `CodeBlob::_kind` field value to determine the type of blob.
> 
> Tested tier1-5, hs-tier6-rt (for JFR testing), stress, xcomp
Vladimir Kozlov has updated the pull request incrementally with one additional commit since the last revision:
  Fix Minimal and Zero VM builds again
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/23533/files
  - new: https://git.openjdk.org/jdk/pull/23533/files/43ae0ed2..7d3dce0e
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23533&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23533&range=02-03
  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/23533.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23533/head:pull/23533
PR: https://git.openjdk.org/jdk/pull/23533
    
    
More information about the serviceability-dev
mailing list