RFR: 8273489: Zero: Handle UseHeavyMonitors on all monitorenter paths

Aleksey Shipilev shade at openjdk.java.net
Wed Sep 8 15:24:19 UTC 2021


While fixing JDK-8273486, I noticed there is one place where we do not call VM slowpath when `UseHeavyMonitors` are requested. That place is `ZeroInterpreter::native_entry`. We should probably implement `UseHeavyMonitors` check on those paths. 

New code is modeled after existing uses, for example [this](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp#L583-L593).

Additional testing:
 - [x] Linux x86_64 Zero `make bootcycle-images`

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

Commit messages:
 - Fix

Changes: https://git.openjdk.java.net/jdk/pull/5416/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5416&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273489
  Stats: 7 lines in 1 file changed: 2 ins; 2 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5416.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5416/head:pull/5416

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


More information about the hotspot-dev mailing list