|
28 | 28 | #include "code/dependencies.hpp" |
29 | 29 | #include "code/nativeInst.hpp" |
30 | 30 | #include "code/nmethod.inline.hpp" |
31 | | -#include "code/relocInfo.hpp" |
32 | 31 | #include "code/scopeDesc.hpp" |
33 | 32 | #include "compiler/abstractCompiler.hpp" |
34 | 33 | #include "compiler/compilationLog.hpp" |
@@ -1653,10 +1652,6 @@ void nmethod::maybe_print_nmethod(const DirectiveSet* directive) { |
1653 | 1652 | } |
1654 | 1653 |
|
1655 | 1654 | void nmethod::print_nmethod(bool printmethod) { |
1656 | | - // Enter a critical section to prevent a race with deopts that patch code and updates the relocation info. |
1657 | | - // Unfortunately, we have to lock the NMethodState_lock before the tty lock due to the deadlock rules and |
1658 | | - // cannot lock in a more finely grained manner. |
1659 | | - ConditionalMutexLocker ml(NMethodState_lock, !NMethodState_lock->owned_by_self(), Mutex::_no_safepoint_check_flag); |
1660 | 1655 | ttyLocker ttyl; // keep the following output all in one block |
1661 | 1656 | if (xtty != nullptr) { |
1662 | 1657 | xtty->begin_head("print_nmethod"); |
@@ -2046,17 +2041,6 @@ bool nmethod::make_not_entrant(const char* reason) { |
2046 | 2041 | // cache call. |
2047 | 2042 | NativeJump::patch_verified_entry(entry_point(), verified_entry_point(), |
2048 | 2043 | SharedRuntime::get_handle_wrong_method_stub()); |
2049 | | - |
2050 | | - // Update the relocation info for the patched entry. |
2051 | | - // First, get the old relocation info... |
2052 | | - RelocIterator iter(this, verified_entry_point(), verified_entry_point() + 8); |
2053 | | - if (iter.next() && iter.addr() == verified_entry_point()) { |
2054 | | - Relocation* old_reloc = iter.reloc(); |
2055 | | - // ...then reset the iterator to update it. |
2056 | | - RelocIterator iter(this, verified_entry_point(), verified_entry_point() + 8); |
2057 | | - relocInfo::change_reloc_info_for_address(&iter, verified_entry_point(), old_reloc->type(), |
2058 | | - relocInfo::relocType::runtime_call_type); |
2059 | | - } |
2060 | 2044 | } |
2061 | 2045 |
|
2062 | 2046 | if (update_recompile_counts()) { |
|
0 commit comments