Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/parse1.cpp @ 6268:6c5b7a6becc8
7187454: stack overflow in C2 compiler thread on Solaris x86
Summary: Added new FormatBufferResource class to use thread's resource area for error message buffer.
Reviewed-by: twisti
author | kvn |
---|---|
date | Mon, 30 Jul 2012 09:49:25 -0700 |
parents | 1d7922586cf6 |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
6267:977007096840 | 6268:6c5b7a6becc8 |
---|---|
1397 | 1397 |
1398 #ifdef ASSERT | 1398 #ifdef ASSERT |
1399 int pre_bc_sp = sp(); | 1399 int pre_bc_sp = sp(); |
1400 int inputs, depth; | 1400 int inputs, depth; |
1401 bool have_se = !stopped() && compute_stack_effects(inputs, depth, /*for_parse*/ true); | 1401 bool have_se = !stopped() && compute_stack_effects(inputs, depth, /*for_parse*/ true); |
1402 assert(!have_se || pre_bc_sp >= inputs, err_msg("have enough stack to execute this BC: pre_bc_sp=%d, inputs=%d", pre_bc_sp, inputs)); | 1402 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)); |
1403 #endif //ASSERT | 1403 #endif //ASSERT |
1404 | 1404 |
1405 do_one_bytecode(); | 1405 do_one_bytecode(); |
1406 | 1406 |
1407 assert(!have_se || stopped() || failing() || (sp() - pre_bc_sp) == depth, "correct depth prediction"); | 1407 assert(!have_se || stopped() || failing() || (sp() - pre_bc_sp) == depth, "correct depth prediction"); |