2458 } |
2458 } |
2459 entry->relocate(B->content_begin()); |
2459 entry->relocate(B->content_begin()); |
2460 #ifndef PRODUCT |
2460 #ifndef PRODUCT |
2461 // debugging suppport |
2461 // debugging suppport |
2462 if (PrintAdapterHandlers || PrintStubCode) { |
2462 if (PrintAdapterHandlers || PrintStubCode) { |
|
2463 ttyLocker ttyl; |
2463 entry->print_adapter_on(tty); |
2464 entry->print_adapter_on(tty); |
2464 tty->print_cr("i2c argument handler #%d for: %s %s (%d bytes generated)", |
2465 tty->print_cr("i2c argument handler #%d for: %s %s (%d bytes generated)", |
2465 _adapters->number_of_entries(), (method->is_static() ? "static" : "receiver"), |
2466 _adapters->number_of_entries(), (method->is_static() ? "static" : "receiver"), |
2466 method->signature()->as_C_string(), insts_size); |
2467 method->signature()->as_C_string(), insts_size); |
2467 tty->print_cr("c2i argument handler starts at %p",entry->get_c2i_entry()); |
2468 tty->print_cr("c2i argument handler starts at %p",entry->get_c2i_entry()); |
2468 if (Verbose || PrintStubCode) { |
2469 if (Verbose || PrintStubCode) { |
2469 address first_pc = entry->base_address(); |
2470 address first_pc = entry->base_address(); |
2470 if (first_pc != NULL) |
2471 if (first_pc != NULL) { |
2471 Disassembler::decode(first_pc, first_pc + insts_size); |
2472 Disassembler::decode(first_pc, first_pc + insts_size); |
|
2473 tty->cr(); |
|
2474 } |
2472 } |
2475 } |
2473 } |
2476 } |
2474 #endif |
2477 #endif |
2475 |
2478 |
2476 _adapters->add(entry); |
2479 _adapters->add(entry); |