6920293: OptimizeStringConcat causing core dumps

Reviewed-by: kvn, twisti
This commit is contained in:
Tom Rodriguez 2010-02-05 11:07:40 -08:00
parent 22ce62f2d1
commit c1be36be1b
4 changed files with 19 additions and 11 deletions

View file

@ -2010,7 +2010,10 @@ address nmethod::continuation_for_implicit_exception(address pc) {
print_pcs();
}
#endif
guarantee(cont_offset != 0, "unhandled implicit exception in compiled code");
if (cont_offset == 0) {
// Let the normal error handling report the exception
return NULL;
}
return instructions_begin() + cont_offset;
}