> This change refactors the super class scalar argument checking code and 
> deoptimization so that it is only called at link time and not for 
> frame::describe() and other places that are only retrieving the calling 
> convention.  The only time that we detect a mismatch is during class linking, 
> before the overriding subclass method can run.
> 
> This avoids running vm code while thread_in_Java, which is unsafe, and 
> removes the ThreadInVMfromUnknown, which was even more unsafe.
> 
> Tested with tier1-4.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Coleen Phillimore has updated the pull request incrementally with one 
additional commit since the last revision:

  Move some asserts around.

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

Changes:
  - all: https://git.openjdk.org/valhalla/pull/2517/files
  - new: https://git.openjdk.org/valhalla/pull/2517/files/df36a6c9..959ca7d0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=valhalla&pr=2517&range=01
 - incr: https://webrevs.openjdk.org/?repo=valhalla&pr=2517&range=00-01

  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/valhalla/pull/2517.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2517/head:pull/2517

PR: https://git.openjdk.org/valhalla/pull/2517

Reply via email to