src/share/vm/compiler/compilerDirectives.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/compiler/compilerDirectives.cpp

src/share/vm/compiler/compilerDirectives.cpp

Print this page
rev 9251 : [mq]: 8141585_methodmatcher

*** 525,540 **** } } DirectiveSet* DirectivesStack::getMatchingDirective(methodHandle method, AbstractCompiler *comp) { assert(_depth > 0, "Must never be empty"); - CompilerDirectives* dir = _top; - assert(dir != NULL, "Must be initialized"); DirectiveSet* match = NULL; { MutexLockerEx locker(DirectivesStack_lock, Mutex::_no_safepoint_check_flag); while (dir != NULL) { if (dir->is_default_directive() || dir->match(method)) { match = dir->get_for(comp); if (match == NULL) { // temporary workaround for compilers without directives. --- 525,542 ---- } } DirectiveSet* DirectivesStack::getMatchingDirective(methodHandle method, AbstractCompiler *comp) { assert(_depth > 0, "Must never be empty"); DirectiveSet* match = NULL; { MutexLockerEx locker(DirectivesStack_lock, Mutex::_no_safepoint_check_flag); + + CompilerDirectives* dir = _top; + assert(dir != NULL, "Must be initialized"); + while (dir != NULL) { if (dir->is_default_directive() || dir->match(method)) { match = dir->get_for(comp); if (match == NULL) { // temporary workaround for compilers without directives.
src/share/vm/compiler/compilerDirectives.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File