8214972: Uses of klass_holder() except GC need to apply GC barriers

Fix klass_holder() and make all callers use it, remove holder_phantom().

Reviewed-by: eosterlund, dlong
This commit is contained in:
Coleen Phillimore 2018-12-07 14:48:35 -05:00
parent 0a8c4491c2
commit 3d0faa649c
9 changed files with 12 additions and 23 deletions

View file

@ -678,12 +678,6 @@ public:
}
}
// Oop that keeps the metadata for this class from being unloaded
// in places where the metadata is stored in other places, like nmethods
oop klass_holder() const {
return (is_unsafe_anonymous()) ? java_mirror() : class_loader();
}
bool is_contended() const {
return (_misc_flags & _misc_is_contended) != 0;
}