hotspot/src/share/vm/runtime/sharedRuntime.cpp
changeset 371 1aacedc9db7c
parent 235 735f15bdea80
child 375 6969999e4e7b
equal deleted inserted replaced
370:33ba64c16c1f 371:1aacedc9db7c
  2174 JRT_END
  2174 JRT_END
  2175 
  2175 
  2176 #ifndef PRODUCT
  2176 #ifndef PRODUCT
  2177 bool AdapterHandlerLibrary::contains(CodeBlob* b) {
  2177 bool AdapterHandlerLibrary::contains(CodeBlob* b) {
  2178 
  2178 
       
  2179   if (_handlers == NULL) return false;
       
  2180 
  2179   for (int i = 0 ; i < _handlers->length() ; i++) {
  2181   for (int i = 0 ; i < _handlers->length() ; i++) {
  2180     AdapterHandlerEntry* a = get_entry(i);
  2182     AdapterHandlerEntry* a = get_entry(i);
  2181     if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) return true;
  2183     if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) return true;
  2182   }
  2184   }
  2183   return false;
  2185   return false;