1016 if (stub_id == Runtime1::load_klass_patching_id) { |
1016 if (stub_id == Runtime1::load_klass_patching_id) { |
1017 assert(load_klass() != NULL, "klass not set"); |
1017 assert(load_klass() != NULL, "klass not set"); |
1018 n_copy->set_data((intx) (load_klass())); |
1018 n_copy->set_data((intx) (load_klass())); |
1019 } else { |
1019 } else { |
1020 assert(mirror() != NULL, "klass not set"); |
1020 assert(mirror() != NULL, "klass not set"); |
|
1021 // Don't need a G1 pre-barrier here since we assert above that data isn't an oop. |
1021 n_copy->set_data(cast_from_oop<intx>(mirror())); |
1022 n_copy->set_data(cast_from_oop<intx>(mirror())); |
1022 } |
1023 } |
1023 |
1024 |
1024 if (TracePatching) { |
1025 if (TracePatching) { |
1025 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty); |
1026 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty); |