mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8152470: Add COMPILER2_OR_JVMCI definition
Defined(COMPILER2) || INCLUDE_JVMCI changed replaced with COMPILER2_OR_JVMCI Reviewed-by: kvn
This commit is contained in:
parent
c8aacd3972
commit
10a1edcc22
33 changed files with 88 additions and 89 deletions
|
@ -192,7 +192,7 @@ Deoptimization::UnrollBlock* Deoptimization::fetch_unroll_info_helper(JavaThread
|
|||
|
||||
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 @@ Deoptimization::UnrollBlock* Deoptimization::fetch_unroll_info_helper(JavaThread
|
|||
}
|
||||
}
|
||||
#endif // INCLUDE_JVMCI
|
||||
#endif // COMPILER2 || INCLUDE_JVMCI
|
||||
#endif // COMPILER2_OR_JVMCI
|
||||
|
||||
ScopeDesc* trap_scope = chunk->at(0)->scope();
|
||||
Handle exceptionObject;
|
||||
|
@ -303,7 +303,7 @@ Deoptimization::UnrollBlock* Deoptimization::fetch_unroll_info_helper(JavaThread
|
|||
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 @@ int Deoptimization::deoptimize_dependents() {
|
|||
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<ScopeValue*>* objects, TRAPS) {
|
||||
Handle pending_exception(THREAD, thread->pending_exception());
|
||||
const char* exception_file = thread->exception_file();
|
||||
|
@ -1151,7 +1151,7 @@ void Deoptimization::print_objects(GrowableArray<ScopeValue*>* objects, bool rea
|
|||
}
|
||||
}
|
||||
#endif
|
||||
#endif // COMPILER2 || INCLUDE_JVMCI
|
||||
#endif // COMPILER2_OR_JVMCI
|
||||
|
||||
vframeArray* Deoptimization::create_vframeArray(JavaThread* thread, frame fr, RegisterMap *reg_map, GrowableArray<compiledVFrame*>* 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 @@ vframeArray* Deoptimization::create_vframeArray(JavaThread* thread, frame fr, Re
|
|||
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 @@ Deoptimization::get_method_data(JavaThread* thread, const methodHandle& m,
|
|||
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()) {
|
||||
|
@ -2350,7 +2350,7 @@ void Deoptimization::print_statistics() {
|
|||
if (xtty != NULL) xtty->tail("statistics");
|
||||
}
|
||||
}
|
||||
#else // COMPILER2 || INCLUDE_JVMCI
|
||||
#else // COMPILER2_OR_JVMCI
|
||||
|
||||
|
||||
// Stubs for C1 only system.
|
||||
|
@ -2386,4 +2386,4 @@ const char* Deoptimization::format_trap_state(char* buf, size_t buflen,
|
|||
return buf;
|
||||
}
|
||||
|
||||
#endif // COMPILER2 || INCLUDE_JVMCI
|
||||
#endif // COMPILER2_OR_JVMCI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue