RFR: 8256050: JVM crashes with -XX:+PrintDeoptimizationDetails [v2]

Vladimir Ivanov vlivanov at openjdk.java.net
Tue Nov 10 12:39:14 UTC 2020


> -XX:+PrintDeoptimizationDetails triggers intermittent crashes. I spotted 2 independent problems which the patch addresses:
>   * `markWord::print_on` doesn't handle displaced header case well (the pointer stored in the header may be stale);
>   * `InstanceKlass::oop_print_value_on` dumps some specific details about `MemberName`, but the code assumes the instance is fully initialized. It's necessarily the case: for example, deoptimization can happen when `MemberName` constructor is being executed.  
> 
> Testing:
> - [x] manually verified that the crashes go away -XX:+PrintDeoptimizationDetails
> - [x] hs-precheckin-comp,hs-tier1,hs-tier2

Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision:

  Address review comments

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1124/files
  - new: https://git.openjdk.java.net/jdk/pull/1124/files/a41c82cd..89550ba2

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

  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1124.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1124/head:pull/1124

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


More information about the hotspot-dev mailing list