changeset 371 | 1aacedc9db7c |
parent 235 | 735f15bdea80 |
child 375 | 6969999e4e7b |
--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp Thu Apr 17 07:16:03 2008 -0700 +++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp Wed Apr 23 11:20:36 2008 -0700 @@ -2176,6 +2176,8 @@ #ifndef PRODUCT bool AdapterHandlerLibrary::contains(CodeBlob* b) { + if (_handlers == NULL) return false; + for (int i = 0 ; i < _handlers->length() ; i++) { AdapterHandlerEntry* a = get_entry(i); if ( a != NULL && b == CodeCache::find_blob(a->get_i2c_entry()) ) return true;