RFR: 8261956: [type-restrictions] Support RestrictedMethod in the interpreter

Frederic Parain fparain at openjdk.java.net
Thu Feb 18 14:31:09 UTC 2021


Please review these changes adding support for RestrictedMethod in the interpreter.
Types restrictions are enforced in the following bytecodes:
  - invokevirtual
  - invokestatic
  - invokespecial
  - invokeinterface
  
The changeset also includes a small fix to prevent previous type restrictions related tests to fail.

Thank you,

Fred

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

Commit messages:
 - Add test for restricted method, fix other tests
 - Fix type restriction check on return value
 - Code simplification and add invokeinterface support
 - Simple type restriction support for invokevirtual/invokestatic

Changes: https://git.openjdk.java.net/valhalla/pull/341/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=341&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8261956
  Stats: 474 lines in 14 files changed: 451 ins; 1 del; 22 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/341.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/341/head:pull/341

PR: https://git.openjdk.java.net/valhalla/pull/341



More information about the valhalla-dev mailing list