8247220: Make OopHandle constructor explicit

Fix null initializations to explicitly call the OopHandle constructor

Reviewed-by: lfoltan, kbarrett
This commit is contained in:
Coleen Phillimore 2020-06-10 08:29:39 -04:00
parent 65c461ed74
commit f3c2a17a30
9 changed files with 19 additions and 19 deletions

View file

@ -90,7 +90,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
// Only one thread at a time can add, guarded by ClassLoaderData::metaspace_lock().
// However, multiple threads can execute oops_do concurrently with add.
oop* add(oop o);
OopHandle add(oop o);
bool contains(oop p);
NOT_PRODUCT(bool owner_of(oop* p);)
void oops_do(OopClosure* f);