mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
4360113: Evict nmethods when code cache gets full
Speculatively unload the oldest nmethods when code cache gets full. Reviewed-by: never, kvn
This commit is contained in:
parent
9aa675b7e6
commit
a57d68e35b
19 changed files with 452 additions and 76 deletions
|
@ -303,7 +303,7 @@ class methodOopDesc : public oopDesc {
|
|||
bool check_code() const; // Not inline to avoid circular ref
|
||||
nmethod* volatile code() const { assert( check_code(), "" ); return (nmethod *)OrderAccess::load_ptr_acquire(&_code); }
|
||||
void clear_code(); // Clear out any compiled code
|
||||
void set_code(methodHandle mh, nmethod* code);
|
||||
static void set_code(methodHandle mh, nmethod* code);
|
||||
void set_adapter_entry(AdapterHandlerEntry* adapter) { _adapter = adapter; }
|
||||
address get_i2c_entry();
|
||||
address get_c2i_entry();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue