diff options
author | 2024-08-29 12:57:14 +0000 | |
---|---|---|
committer | 2024-09-24 10:15:56 +0000 | |
commit | 63b8399f3f144769260d93a7a985233e5ac5b910 (patch) | |
tree | 2d46e0d91f2df79a80f9ed80cdcb49c08e7de9f6 /compiler/optimizing/intrinsics_utils.h | |
parent | 0b8cc45c57bd0d13901e2c1d15f74c8b562fb2d2 (diff) |
Add more validation for const-method-handle.
Making it closer to JVMS 4.4.8 and 5.4.3.5. The RI rejects certain
constructions at the class verification stage, hence there are
separate classes for MethodHandle-s targeting <init> and <clinit>
methods. In these cases The RI throws ClassFormatError during class
load, but currently we do validations only when actual MethodHandle
object is constructed, that's is the reason why test code has
ICCE | CFE in catch blocks. That will be addressed in the
upcoming CLs.
This should not cause any compat issues as even if some of these
MethodHandle were constructed successfully, their invocation
leads to runtime crashes.
Bug: 297147201
Test: ./art/test/testrunner/testrunner.py --host --64 --jvm -b
Change-Id: I551b04e3c00ffc8bcdeac4760d9ac4b3bb7b2aff
Diffstat (limited to 'compiler/optimizing/intrinsics_utils.h')
0 files changed, 0 insertions, 0 deletions