7080431: VM asserts if specified size(x) in .ad is larger than emitted size

Move code from finalize_offsets_and_shorten() to fill_buffer() to restore previous behavior.

Reviewed-by: never
This commit is contained in:
Vladimir Kozlov 2011-08-18 11:49:33 -07:00
parent db338313bf
commit ff4faaab4b
2 changed files with 139 additions and 211 deletions

View file

@ -794,9 +794,6 @@ class Compile : public Phase {
// Determine which variable sized branches can be shortened
void shorten_branches(uint* blk_starts, int& code_size, int& reloc_size, int& stub_size);
// Inserts nops where needed and final shorten branches.
void finalize_offsets_and_shorten(uint* blk_starts);
// Compute the size of first NumberOfLoopInstrToAlign instructions
// at the head of a loop.
void compute_loop_first_inst_sizes();