comparison src/share/vm/asm/codeBuffer.hpp @ 1563:1a5913bf5e19

6951083: oops and relocations should part of nmethod not CodeBlob Summary: This moves the oops from Codeblob to nmethod. Reviewed-by: kvn, never
author twisti
date Thu, 20 May 2010 06:34:23 -0700
parents 9f5b60a14736
children e9ff18c4ace7
comparison
equal deleted inserted replaced
1544:1a88d3c58e1d 1563:1a5913bf5e19
508 void copy_code_and_locs_to(CodeBlob* blob) { 508 void copy_code_and_locs_to(CodeBlob* blob) {
509 assert(blob != NULL, "sane"); 509 assert(blob != NULL, "sane");
510 copy_relocations_to(blob); 510 copy_relocations_to(blob);
511 copy_code_to(blob); 511 copy_code_to(blob);
512 } 512 }
513 void copy_oops_to(CodeBlob* blob) { 513 void copy_oops_to(nmethod* nm) {
514 if (!oop_recorder()->is_unused()) { 514 if (!oop_recorder()->is_unused()) {
515 oop_recorder()->copy_to(blob); 515 oop_recorder()->copy_to(nm);
516 } 516 }
517 } 517 }
518 518
519 // Transform an address from the code in this code buffer to a specified code buffer 519 // Transform an address from the code in this code buffer to a specified code buffer
520 address transform_address(const CodeBuffer &cb, address addr) const; 520 address transform_address(const CodeBuffer &cb, address addr) const;