< prev index next >

src/hotspot/share/classfile/altHashing.cpp

Print this page

        

@@ -24,21 +24,21 @@
 
 #include "precompiled.hpp"
 #include "classfile/altHashing.hpp"
 #include "classfile/symbolTable.hpp"
 #include "classfile/systemDictionary.hpp"
-#include "oops/markWord.hpp"
+#include "oops/markOop.hpp"
 #include "oops/oop.inline.hpp"
 #include "runtime/thread.hpp"
 
 // Get the hash code of the classes mirror if it exists, otherwise just
 // return a random number, which is one of the possible hash code used for
 // objects.  We don't want to call the synchronizer hash code to install
 // this value because it may safepoint.
 static intptr_t object_hash(Klass* k) {
-  intptr_t hc = k->java_mirror()->mark().hash();
-  return hc != markWord::no_hash ? hc : os::random();
+  intptr_t hc = k->java_mirror()->mark()->hash();
+  return hc != markOopDesc::no_hash ? hc : os::random();
 }
 
 // Seed value used for each alternative hash calculated.
 juint AltHashing::compute_seed() {
   jlong nanos = os::javaTimeNanos();
< prev index next >