mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8080775: Better argument formatting for assert() and friends
Reviewed-by: kbarrett, pliden
This commit is contained in:
parent
aa0818a98a
commit
1e71f67736
225 changed files with 1342 additions and 1432 deletions
|
@ -1476,13 +1476,13 @@ void Parse::do_one_block() {
|
|||
int pre_bc_sp = sp();
|
||||
int inputs, depth;
|
||||
bool have_se = !stopped() && compute_stack_effects(inputs, depth);
|
||||
assert(!have_se || pre_bc_sp >= inputs, err_msg_res("have enough stack to execute this BC: pre_bc_sp=%d, inputs=%d", pre_bc_sp, inputs));
|
||||
assert(!have_se || pre_bc_sp >= inputs, "have enough stack to execute this BC: pre_bc_sp=%d, inputs=%d", pre_bc_sp, inputs);
|
||||
#endif //ASSERT
|
||||
|
||||
do_one_bytecode();
|
||||
|
||||
assert(!have_se || stopped() || failing() || (sp() - pre_bc_sp) == depth,
|
||||
err_msg_res("incorrect depth prediction: sp=%d, pre_bc_sp=%d, depth=%d", sp(), pre_bc_sp, depth));
|
||||
"incorrect depth prediction: sp=%d, pre_bc_sp=%d, depth=%d", sp(), pre_bc_sp, depth);
|
||||
|
||||
do_exceptions();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue