changeset 52781 | 436097b038a1 |
parent 52659 | 8b26bd8b1832 |
child 53149 | 259c36ef27df |
child 53282 | cb7fff9105a8 |
--- a/src/hotspot/share/code/nmethod.hpp Fri Nov 30 20:15:25 2018 +0900 +++ b/src/hotspot/share/code/nmethod.hpp Fri Nov 30 11:40:48 2018 +0100 @@ -257,6 +257,14 @@ #endif ); + // Only used for unit tests. + nmethod() + : CompiledMethod(), + _is_unloading_state(0), + _native_receiver_sp_offset(in_ByteSize(-1)), + _native_basic_lock_sp_offset(in_ByteSize(-1)) {} + + static nmethod* new_native_nmethod(const methodHandle& method, int compile_id, CodeBuffer *code_buffer,