mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
Merge
This commit is contained in:
commit
832443d3b0
436 changed files with 12437 additions and 6911 deletions
|
@ -321,6 +321,8 @@ const char* Runtime1::name_for_address(address entry) {
|
|||
FUNCTION_CASE(entry, StubRoutines::dexp());
|
||||
FUNCTION_CASE(entry, StubRoutines::dlog());
|
||||
FUNCTION_CASE(entry, StubRoutines::dpow());
|
||||
FUNCTION_CASE(entry, StubRoutines::dsin());
|
||||
FUNCTION_CASE(entry, StubRoutines::dcos());
|
||||
|
||||
#undef FUNCTION_CASE
|
||||
|
||||
|
@ -955,16 +957,19 @@ JRT_ENTRY(void, Runtime1::patch_code(JavaThread* thread, Runtime1::StubID stub_i
|
|||
constantPoolHandle pool(thread, caller_method->constants());
|
||||
int index = bytecode.index();
|
||||
LinkResolver::resolve_invoke(info, Handle(), pool, index, bc, CHECK);
|
||||
appendix = info.resolved_appendix();
|
||||
switch (bc) {
|
||||
case Bytecodes::_invokehandle: {
|
||||
int cache_index = ConstantPool::decode_cpcache_index(index, true);
|
||||
assert(cache_index >= 0 && cache_index < pool->cache()->length(), "unexpected cache index");
|
||||
pool->cache()->entry_at(cache_index)->set_method_handle(pool, info);
|
||||
ConstantPoolCacheEntry* cpce = pool->cache()->entry_at(cache_index);
|
||||
cpce->set_method_handle(pool, info);
|
||||
appendix = cpce->appendix_if_resolved(pool); // just in case somebody already resolved the entry
|
||||
break;
|
||||
}
|
||||
case Bytecodes::_invokedynamic: {
|
||||
pool->invokedynamic_cp_cache_entry_at(index)->set_dynamic_call(pool, info);
|
||||
ConstantPoolCacheEntry* cpce = pool->invokedynamic_cp_cache_entry_at(index);
|
||||
cpce->set_dynamic_call(pool, info);
|
||||
appendix = cpce->appendix_if_resolved(pool); // just in case somebody already resolved the entry
|
||||
break;
|
||||
}
|
||||
default: fatal("unexpected bytecode for load_appendix_patching_id");
|
||||
|
@ -1031,6 +1036,7 @@ JRT_ENTRY(void, Runtime1::patch_code(JavaThread* thread, Runtime1::StubID stub_i
|
|||
address copy_buff = stub_location - *byte_skip - *byte_count;
|
||||
address being_initialized_entry = stub_location - *being_initialized_entry_offset;
|
||||
if (TracePatching) {
|
||||
ttyLocker ttyl;
|
||||
tty->print_cr(" Patching %s at bci %d at address " INTPTR_FORMAT " (%s)", Bytecodes::name(code), bci,
|
||||
p2i(instr_pc), (stub_id == Runtime1::access_field_patching_id) ? "field" : "klass");
|
||||
nmethod* caller_code = CodeCache::find_nmethod(caller_frame.pc());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue