8210879: ClassLoaderStatsClosure does raw oop comparison
Uses oopDesc::equals() for comparing oop equality Reviewed-by: shade
This commit is contained in:
parent
3fd4c462cb
commit
cf8469cceb
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
#include "classfile/classLoaderData.hpp"
|
||||
#include "oops/klass.hpp"
|
||||
#include "oops/oop.hpp"
|
||||
#include "oops/oopsHierarchy.hpp"
|
||||
#include "runtime/vm_operations.hpp"
|
||||
#include "services/diagnosticCommand.hpp"
|
||||
@ -97,7 +98,7 @@ public:
|
||||
class ClassLoaderStatsClosure : public CLDClosure {
|
||||
protected:
|
||||
static bool oop_equals(oop const& s1, oop const& s2) {
|
||||
return s1 == s2;
|
||||
return oopDesc::equals(s1, s2);
|
||||
}
|
||||
|
||||
static unsigned oop_hash(oop const& s1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user