--- a/hotspot/src/share/vm/runtime/compilationPolicy.cpp Mon Aug 23 09:09:36 2010 -0700
+++ b/hotspot/src/share/vm/runtime/compilationPolicy.cpp Wed Aug 25 05:27:54 2010 -0700
@@ -439,7 +439,7 @@
if (!instanceKlass::cast(m->method_holder())->is_initialized()) return (_msg = "method holder not initialized");
if (m->is_native()) return (_msg = "native method");
nmethod* m_code = m->code();
- if( m_code != NULL && m_code->instructions_size() > InlineSmallCode )
+ if (m_code != NULL && m_code->code_size() > InlineSmallCode)
return (_msg = "already compiled into a big method");
// use frequency-based objections only for non-trivial methods