7110832: ctw/.../org_apache_avalon_composition_util_StringHelper crashes the VM

Distance is too large for one short branch in string_indexofC8().

Reviewed-by: iveresov
This commit is contained in:
Vladimir Kozlov 2011-12-23 15:24:36 -08:00
parent 59b883333b
commit 6c38bc48ca
3 changed files with 51 additions and 6 deletions

View file

@ -61,6 +61,7 @@ AbstractAssembler::AbstractAssembler(CodeBuffer* code) {
_code_limit = cs->limit();
_code_pos = cs->end();
_oop_recorder= code->oop_recorder();
DEBUG_ONLY( _short_branch_delta = 0; )
if (_code_begin == NULL) {
vm_exit_out_of_memory(0, err_msg("CodeCache: no room for %s",
code->name()));