comparison 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
comparison
equal deleted inserted replaced
1747:53dbe853fb3a 1748:3e8fbc61cee8
437 if (m->is_abstract()) return (_msg = "abstract method"); 437 if (m->is_abstract()) return (_msg = "abstract method");
438 // note: we allow ik->is_abstract() 438 // note: we allow ik->is_abstract()
439 if (!instanceKlass::cast(m->method_holder())->is_initialized()) return (_msg = "method holder not initialized"); 439 if (!instanceKlass::cast(m->method_holder())->is_initialized()) return (_msg = "method holder not initialized");
440 if (m->is_native()) return (_msg = "native method"); 440 if (m->is_native()) return (_msg = "native method");
441 nmethod* m_code = m->code(); 441 nmethod* m_code = m->code();
442 if( m_code != NULL && m_code->instructions_size() > InlineSmallCode ) 442 if (m_code != NULL && m_code->code_size() > InlineSmallCode)
443 return (_msg = "already compiled into a big method"); 443 return (_msg = "already compiled into a big method");
444 444
445 // use frequency-based objections only for non-trivial methods 445 // use frequency-based objections only for non-trivial methods
446 if (m->code_size() <= MaxTrivialSize) return NULL; 446 if (m->code_size() <= MaxTrivialSize) return NULL;
447 if (UseInterpreter) { // don't use counts with -Xcomp 447 if (UseInterpreter) { // don't use counts with -Xcomp