提交 1de3f909 编写于 作者: K kvn

6974682: CTW: assert(target != NULL) failed: must not be null

Summary: Add address table size to constant section size.
Reviewed-by: never
上级 3df97e2e
......@@ -382,6 +382,10 @@ void Compile::Shorten_branches(Label *labels, int& code_size, int& reloc_size, i
if (min_offset_from_last_call == 0) {
blk_size += nop_size;
}
} else if (mach->ideal_Opcode() == Op_Jump) {
const_size += b->_num_succs; // Address table size
// The size is valid even for 64 bit since it is
// multiplied by 2*jintSize on this method exit.
}
}
min_offset_from_last_call += inst_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册