changeset 1820:9887b5e57f9e

6962980: C1: stub area should take into account method handle deopt stub Reviewed-by: twisti, never
author iveresov
date Tue, 22 Jun 2010 12:10:07 -0700
parents 38e8278318ca
children 5f249b390094
files src/share/vm/c1/c1_Compilation.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/c1/c1_Compilation.cpp	Mon Jun 21 14:26:17 2010 -0700
+++ b/src/share/vm/c1/c1_Compilation.cpp	Tue Jun 22 12:10:07 2010 -0700
@@ -242,10 +242,10 @@
   code->insts()->initialize_shared_locs((relocInfo*)locs_buffer,
                                         locs_buffer_size / sizeof(relocInfo));
   code->initialize_consts_size(Compilation::desired_max_constant_size());
-  // Call stubs + deopt/exception handler
+  // Call stubs + two deopt handlers (regular and MH) + exception handler
   code->initialize_stubs_size((call_stub_estimate * LIR_Assembler::call_stub_size) +
                               LIR_Assembler::exception_handler_size +
-                              LIR_Assembler::deopt_handler_size);
+                              2 * LIR_Assembler::deopt_handler_size);
 }