--- old/src/hotspot/share/runtime/deoptimization.cpp 2017-10-30 04:05:36.969566046 -0700 +++ new/src/hotspot/share/runtime/deoptimization.cpp 2017-10-30 04:05:36.603532082 -0700 @@ -192,7 +192,7 @@ bool realloc_failures = false; -#if defined(COMPILER2) || INCLUDE_JVMCI +#if COMPILER2_OR_JVMCI // Reallocate the non-escaping objects and restore their fields. Then // relock objects if synchronization on them was eliminated. #ifndef INCLUDE_JVMCI @@ -282,7 +282,7 @@ } } #endif // INCLUDE_JVMCI -#endif // COMPILER2 || INCLUDE_JVMCI +#endif // COMPILER2_OR_JVMCI ScopeDesc* trap_scope = chunk->at(0)->scope(); Handle exceptionObject; @@ -303,7 +303,7 @@ NoSafepointVerifier no_safepoint; vframeArray* array = create_vframeArray(thread, deoptee, &map, chunk, realloc_failures); -#if defined(COMPILER2) || INCLUDE_JVMCI +#if COMPILER2_OR_JVMCI if (realloc_failures) { pop_frames_failed_reallocs(thread, array); } @@ -792,7 +792,7 @@ Deoptimization::DeoptAction Deoptimization::_unloaded_action = Deoptimization::Action_reinterpret; -#if defined(COMPILER2) || INCLUDE_JVMCI +#if COMPILER2_OR_JVMCI bool Deoptimization::realloc_objects(JavaThread* thread, frame* fr, GrowableArray* objects, TRAPS) { Handle pending_exception(THREAD, thread->pending_exception()); const char* exception_file = thread->exception_file(); @@ -1151,7 +1151,7 @@ } } #endif -#endif // COMPILER2 || INCLUDE_JVMCI +#endif // COMPILER2_OR_JVMCI vframeArray* Deoptimization::create_vframeArray(JavaThread* thread, frame fr, RegisterMap *reg_map, GrowableArray* chunk, bool realloc_failures) { Events::log(thread, "DEOPT PACKING pc=" INTPTR_FORMAT " sp=" INTPTR_FORMAT, p2i(fr.pc()), p2i(fr.sp())); @@ -1211,7 +1211,7 @@ return array; } -#if defined(COMPILER2) || INCLUDE_JVMCI +#if COMPILER2_OR_JVMCI void Deoptimization::pop_frames_failed_reallocs(JavaThread* thread, vframeArray* array) { // Reallocation of some scalar replaced objects failed. Record // that we need to pop all the interpreter frames for the @@ -1443,7 +1443,7 @@ return mdo; } -#if defined(COMPILER2) || INCLUDE_JVMCI +#if COMPILER2_OR_JVMCI void Deoptimization::load_class_by_index(const constantPoolHandle& constant_pool, int index, TRAPS) { // in case of an unresolved klass entry, load the class. if (constant_pool->tag_at(index).is_unresolved_klass()) { @@ -2360,7 +2360,7 @@ if (xtty != NULL) xtty->tail("statistics"); } } -#else // COMPILER2 || INCLUDE_JVMCI +#else // COMPILER2_OR_JVMCI // Stubs for C1 only system. @@ -2396,4 +2396,4 @@ return buf; } -#endif // COMPILER2 || INCLUDE_JVMCI +#endif // COMPILER2_OR_JVMCI