mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8247220: Make OopHandle constructor explicit
Fix null initializations to explicitly call the OopHandle constructor Reviewed-by: lfoltan, kbarrett
This commit is contained in:
parent
65c461ed74
commit
f3c2a17a30
9 changed files with 19 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue