Mercurial > hg > truffle
comparison src/share/vm/oops/method.cpp @ 13010:bd3237e0e18d
8026328: Setting a breakpoint on invokedynamic crashes the JVM
Reviewed-by: jrose, roland
author | twisti |
---|---|
date | Thu, 24 Oct 2013 16:23:07 -0700 |
parents | ac9cb1d5a202 |
children | 096c224171c4 606acabe7b5c |
comparison
equal
deleted
inserted
replaced
12968:97d400662426 | 13010:bd3237e0e18d |
---|---|
1513 for (; bp != NULL; bp = bp->next()) { | 1513 for (; bp != NULL; bp = bp->next()) { |
1514 if (bp->match(this, bci)) { | 1514 if (bp->match(this, bci)) { |
1515 return bp->orig_bytecode(); | 1515 return bp->orig_bytecode(); |
1516 } | 1516 } |
1517 } | 1517 } |
1518 ShouldNotReachHere(); | 1518 { |
1519 ResourceMark rm; | |
1520 fatal(err_msg("no original bytecode found in %s at bci %d", name_and_sig_as_C_string(), bci)); | |
1521 } | |
1519 return Bytecodes::_shouldnotreachhere; | 1522 return Bytecodes::_shouldnotreachhere; |
1520 } | 1523 } |
1521 | 1524 |
1522 void Method::set_orig_bytecode_at(int bci, Bytecodes::Code code) { | 1525 void Method::set_orig_bytecode_at(int bci, Bytecodes::Code code) { |
1523 assert(code != Bytecodes::_breakpoint, "cannot patch breakpoints this way"); | 1526 assert(code != Bytecodes::_breakpoint, "cannot patch breakpoints this way"); |