Mercurial > hg > truffle
diff src/share/vm/runtime/sharedRuntime.cpp @ 128:a76240c8b133
Merge
author | rasbold |
---|---|
date | Mon, 28 Apr 2008 08:08:12 -0700 |
parents | 018d5b58dd4f b130b98db9cf |
children | d1605aabd0a1 37f87013dfd8 |
line wrap: on
line diff
--- a/src/share/vm/runtime/sharedRuntime.cpp Wed Apr 23 06:35:28 2008 -0400 +++ b/src/share/vm/runtime/sharedRuntime.cpp Mon Apr 28 08:08:12 2008 -0700 @@ -2229,6 +2229,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;