< prev index next >

src/hotspot/share/compiler/compileBroker.cpp

Print this page

        

*** 1477,1494 **** int id; if (method->is_native()) { assert(!is_osr, "can't be osr"); // Adapters, native wrappers and method handle intrinsics // should be generated always. ! return Atomic::add(1, &_compilation_id); } else if (CICountOSR && is_osr) { ! id = Atomic::add(1, &_osr_compilation_id); if (CIStartOSR <= id && id < CIStopOSR) { return id; } } else { ! id = Atomic::add(1, &_compilation_id); if (CIStart <= id && id < CIStop) { return id; } } --- 1477,1494 ---- int id; if (method->is_native()) { assert(!is_osr, "can't be osr"); // Adapters, native wrappers and method handle intrinsics // should be generated always. ! return Atomic::add(&_compilation_id, 1); } else if (CICountOSR && is_osr) { ! id = Atomic::add(&_osr_compilation_id, 1); if (CIStartOSR <= id && id < CIStopOSR) { return id; } } else { ! id = Atomic::add(&_compilation_id, 1); if (CIStart <= id && id < CIStop) { return id; } }
*** 1496,1506 **** method->set_not_compilable_quietly("Not in requested compile id range"); return 0; #else // CICountOSR is a develop flag and set to 'false' by default. In a product built, // only _compilation_id is incremented. ! return Atomic::add(1, &_compilation_id); #endif } // ------------------------------------------------------------------ // CompileBroker::assign_compile_id_unlocked --- 1496,1506 ---- method->set_not_compilable_quietly("Not in requested compile id range"); return 0; #else // CICountOSR is a develop flag and set to 'false' by default. In a product built, // only _compilation_id is incremented. ! return Atomic::add(&_compilation_id, 1); #endif } // ------------------------------------------------------------------ // CompileBroker::assign_compile_id_unlocked
< prev index next >