diff src/share/vm/runtime/compilationPolicy.cpp @ 1748:3e8fbc61cee8

6978355: renaming for 6961697 Summary: This is the renaming part of 6961697 to keep the actual changes small for review. Reviewed-by: kvn, never
author twisti
date Wed, 25 Aug 2010 05:27:54 -0700
parents c18cbe5936b8
children d5d065957597
line wrap: on
line diff
--- a/src/share/vm/runtime/compilationPolicy.cpp	Mon Aug 23 09:09:36 2010 -0700
+++ b/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