comparison src/share/vm/runtime/compilationPolicy.cpp @ 1764:14197af1010e

Merge
author never
date Fri, 27 Aug 2010 17:35:08 -0700
parents 3e8fbc61cee8
children d5d065957597
comparison
equal deleted inserted replaced
1763:d6f45b55c972 1764:14197af1010e
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