< prev index next >
src/share/vm/opto/compile.cpp
Print this page
rev 12037 : 8166562: C2: Suppress relocations in scratch emit.
*** 572,581 ****
--- 572,585 ----
assert(locs_buf != NULL, "sanity");
int lsize = MAX_locs_size / 3;
buf.consts()->initialize_shared_locs(&locs_buf[lsize * 0], lsize);
buf.insts()->initialize_shared_locs( &locs_buf[lsize * 1], lsize);
buf.stubs()->initialize_shared_locs( &locs_buf[lsize * 2], lsize);
+ // Mark as scratch buffer.
+ buf.consts()->set_scratch_emit();
+ buf.insts()->set_scratch_emit();
+ buf.stubs()->set_scratch_emit();
// Do the emission.
Label fakeL; // Fake label for branch instructions.
Label* saveL = NULL;
< prev index next >