8261395: C1 crash "cannot make java calls from the native compiler"

Co-authored-by: Ioi Lam <iklam@openjdk.org>
Co-authored-by: Coleen Phillimore <coleenp@openjdk.org>
Reviewed-by: iklam, hseigel, coleenp
This commit is contained in:
David Holmes 2021-05-12 05:21:58 +00:00
parent 3c47cab6db
commit e828a939a8
4 changed files with 186 additions and 59 deletions

View file

@ -479,8 +479,9 @@ class InstanceKlass: public Klass {
void set_permitted_subclasses(Array<u2>* s) { _permitted_subclasses = s; }
private:
// Called to verify that k is a member of this nest - does not look at k's nest-host
bool has_nest_member(InstanceKlass* k, TRAPS) const;
// Called to verify that k is a member of this nest - does not look at k's nest-host,
// nor does it resolve any CP entries or load any classes.
bool has_nest_member(JavaThread* current, InstanceKlass* k) const;
public:
// Used to construct informative IllegalAccessError messages at a higher level,