8223216: C2: Unify class initialization checks between new, getstatic, and putstatic

Reviewed-by: kvn, dlong
This commit is contained in:
Vladimir Ivanov 2019-05-30 19:12:11 +03:00
parent 8ac3b68688
commit 5db82de14b
9 changed files with 125 additions and 115 deletions

View file

@ -1384,7 +1384,9 @@ class Compile : public Phase {
CloneMap& clone_map();
void set_clone_map(Dict* d);
bool is_compiling_clinit_for(ciKlass* k);
bool needs_clinit_barrier(ciField* ik, ciMethod* accessing_method);
bool needs_clinit_barrier(ciMethod* ik, ciMethod* accessing_method);
bool needs_clinit_barrier(ciInstanceKlass* ik, ciMethod* accessing_method);
};
#endif // SHARE_OPTO_COMPILE_HPP