< prev index next >

src/hotspot/share/code/compiledMethod.inline.hpp

Print this page

        

*** 27,36 **** --- 27,38 ---- #include "code/compiledMethod.hpp" #include "code/nativeInst.hpp" #include "runtime/frame.hpp" + inline bool CompiledMethod::is_deopt_pc(address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } + // When using JVMCI the address might be off by the size of a call instruction. inline bool CompiledMethod::is_deopt_entry(address pc) { return pc == deopt_handler_begin() #if INCLUDE_JVMCI || (is_compiled_by_jvmci() && pc == (deopt_handler_begin() + NativeCall::instruction_size))
*** 62,71 **** --- 64,83 ---- // class ExceptionCache methods inline int ExceptionCache::count() { return OrderAccess::load_acquire(&_count); } + address ExceptionCache::pc_at(int index) { + assert(index >= 0 && index < count(),""); + return _pc[index]; + } + + address ExceptionCache::handler_at(int index) { + assert(index >= 0 && index < count(),""); + return _handler[index]; + } + // increment_count is only called under lock, but there may be concurrent readers. inline void ExceptionCache::increment_count() { OrderAccess::release_store(&_count, _count + 1); } #endif //SHARE_VM_CODE_COMPILEDMETHOD_INLINE_HPP
< prev index next >