Mercurial > hg > truffle
comparison src/share/vm/code/codeBlob.cpp @ 1762:0878d7bae69f
6961697: move nmethod constants section before instruction section
Summary: This is a preparation for 6961690.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Fri, 27 Aug 2010 01:51:27 -0700 |
parents | 3e8fbc61cee8 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1761:14b92b91f460 | 1762:0878d7bae69f |
---|---|
90 _size = size; | 90 _size = size; |
91 _frame_complete_offset = frame_complete; | 91 _frame_complete_offset = frame_complete; |
92 _header_size = header_size; | 92 _header_size = header_size; |
93 _relocation_size = round_to(cb->total_relocation_size(), oopSize); | 93 _relocation_size = round_to(cb->total_relocation_size(), oopSize); |
94 _content_offset = align_code_offset(header_size + _relocation_size); | 94 _content_offset = align_code_offset(header_size + _relocation_size); |
95 _code_offset = _content_offset + cb->total_offset_of(cb->insts()->start()); | 95 _code_offset = _content_offset + cb->total_offset_of(cb->insts()); |
96 _data_offset = _content_offset + round_to(cb->total_content_size(), oopSize); | 96 _data_offset = _content_offset + round_to(cb->total_content_size(), oopSize); |
97 assert(_data_offset <= size, "codeBlob is too small"); | 97 assert(_data_offset <= size, "codeBlob is too small"); |
98 | 98 |
99 cb->copy_code_and_locs_to(this); | 99 cb->copy_code_and_locs_to(this); |
100 set_oop_maps(oop_maps); | 100 set_oop_maps(oop_maps); |