hotspot/src/share/vm/code/nmethod.cpp
changeset 30628 3c15b4a3bf4d
parent 30590 14f7f48c1377
child 31037 01a5c5fa5681
--- a/hotspot/src/share/vm/code/nmethod.cpp	Mon May 11 07:58:02 2015 +0200
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Mon May 11 09:44:07 2015 +0200
@@ -2989,7 +2989,7 @@
   address base = code_begin();
   ImmutableOopMapSet* oms = oop_maps();
   if (oms != NULL) {
-    for (int i = 0, imax = oms->size(); i < imax; i++) {
+    for (int i = 0, imax = oms->count(); i < imax; i++) {
       const ImmutableOopMapPair* pair = oms->pair_at(i);
       const ImmutableOopMap* om = pair->get_from(oms);
       address pc = base + pair->pc_offset();