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