< prev index next >
src/share/vm/asm/codeBuffer.cpp
Print this page
rev 12993 : 8180423: Remove flag UseRelocIndex
Reviewed-by: TBD
*** 621,633 ****
ShouldNotReachHere();
return -1;
}
csize_t CodeBuffer::total_relocation_size() const {
! csize_t lsize = copy_relocations_to(NULL); // dry run only
! csize_t csize = total_content_size();
! csize_t total = RelocIterator::locs_and_index_size(csize, lsize);
return (csize_t) align_size_up(total, HeapWordSize);
}
csize_t CodeBuffer::copy_relocations_to(address buf, csize_t buf_limit, bool only_inst) const {
csize_t buf_offset = 0;
--- 621,631 ----
ShouldNotReachHere();
return -1;
}
csize_t CodeBuffer::total_relocation_size() const {
! csize_t total = copy_relocations_to(NULL); // dry run only
return (csize_t) align_size_up(total, HeapWordSize);
}
csize_t CodeBuffer::copy_relocations_to(address buf, csize_t buf_limit, bool only_inst) const {
csize_t buf_offset = 0;
*** 724,740 ****
}
// if dest == NULL, this is just the sizing pass
//
buf_offset = copy_relocations_to(buf, buf_limit, false);
- // Account for index:
- if (buf != NULL) {
- RelocIterator::create_index(dest->relocation_begin(),
- buf_offset / sizeof(relocInfo),
- dest->relocation_end());
- }
-
return buf_offset;
}
void CodeBuffer::copy_code_to(CodeBlob* dest_blob) {
#ifndef PRODUCT
--- 722,731 ----
< prev index next >