src/hotspot/share/compiler/oopMap.cpp
changeset 51078 fc6cfe40e32a
parent 50525 767cdb97f103
child 51333 f6641fcf7b7e
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
   569   return true;
   569   return true;
   570 }
   570 }
   571 
   571 
   572 const ImmutableOopMap* ImmutableOopMapSet::find_map_at_offset(int pc_offset) const {
   572 const ImmutableOopMap* ImmutableOopMapSet::find_map_at_offset(int pc_offset) const {
   573   ImmutableOopMapPair* pairs = get_pairs();
   573   ImmutableOopMapPair* pairs = get_pairs();
   574   ImmutableOopMapPair* last = NULL;
   574 
   575 
   575   int i;
   576   for (int i = 0; i < _count; ++i) {
   576   for (i = 0; i < _count; ++i) {
   577     if (pairs[i].pc_offset() >= pc_offset) {
   577     if (pairs[i].pc_offset() >= pc_offset) {
   578       last = &pairs[i];
       
   579       break;
   578       break;
   580     }
   579     }
   581   }
   580   }
       
   581   ImmutableOopMapPair* last = &pairs[i];
   582 
   582 
   583   assert(last->pc_offset() == pc_offset, "oopmap not found");
   583   assert(last->pc_offset() == pc_offset, "oopmap not found");
   584   return last->get_from(this);
   584   return last->get_from(this);
   585 }
   585 }
   586 
   586