Skip to content

Commit

Permalink
add trap_reason_name
Browse files Browse the repository at this point in the history
  • Loading branch information
weixlu committed Jan 20, 2025
1 parent ad0db9b commit 4c35cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/deoptimization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,7 @@ const char* Deoptimization::_trap_reason_name[] = {
"array_check",
"intrinsic" JVMCI_ONLY("_or_type_checked_inlining"),
"bimorphic" JVMCI_ONLY("_or_optimized_type_check"),
"polymorphic",
"profile_predicate",
"unloaded",
"uninitialized",
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/deoptimization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class Deoptimization : AllStatic {
Reason_array_check, // saw unexpected array class (aastore @bci)
Reason_intrinsic, // saw unexpected operand to intrinsic (@bci)
Reason_bimorphic, // saw unexpected object class in bimorphic inlining (@bci)
Reason_polymorphic, // saw unexpected object class in polymorphic inlining (@bci)

#if INCLUDE_JVMCI
Reason_unreached0 = Reason_null_assert,
Reason_type_checked_inlining = Reason_intrinsic,
Reason_optimized_type_check = Reason_bimorphic,
#endif

Reason_polymorphic, // saw unexpected object class in polymorphic inlining (@bci)
Reason_profile_predicate, // compiler generated predicate moved from frequent branch in a loop failed

// recorded per method
Expand Down

0 comments on commit 4c35cc6

Please sign in to comment.