equal
deleted
inserted
replaced
461 |
461 |
462 // nmethod/verified compiler entry |
462 // nmethod/verified compiler entry |
463 address verified_code_entry(); |
463 address verified_code_entry(); |
464 bool check_code() const; // Not inline to avoid circular ref |
464 bool check_code() const; // Not inline to avoid circular ref |
465 CompiledMethod* volatile code() const; |
465 CompiledMethod* volatile code() const; |
466 void clear_code(bool acquire_lock = true); // Clear out any compiled code |
466 |
|
467 // Locks CompiledMethod_lock if not held. |
|
468 void unlink_code(CompiledMethod *compare); |
|
469 // Locks CompiledMethod_lock if not held. |
|
470 void unlink_code(); |
|
471 |
|
472 private: |
|
473 // Either called with CompiledMethod_lock held or from constructor. |
|
474 void clear_code(); |
|
475 |
|
476 public: |
467 static void set_code(const methodHandle& mh, CompiledMethod* code); |
477 static void set_code(const methodHandle& mh, CompiledMethod* code); |
468 void set_adapter_entry(AdapterHandlerEntry* adapter) { |
478 void set_adapter_entry(AdapterHandlerEntry* adapter) { |
469 constMethod()->set_adapter_entry(adapter); |
479 constMethod()->set_adapter_entry(adapter); |
470 } |
480 } |
471 void set_adapter_trampoline(AdapterHandlerEntry** trampoline) { |
481 void set_adapter_trampoline(AdapterHandlerEntry** trampoline) { |