src/share/vm/opto/matcher.cpp

changeset 3969
1d7922586cf6
parent 3882
8c92982cbbc4
child 4037
da91efe96a93
equal deleted inserted replaced
3944:aba91a731143 3969:1d7922586cf6
1281 } 1281 }
1282 1282
1283 if (is_method_handle_invoke) { 1283 if (is_method_handle_invoke) {
1284 // Kill some extra stack space in case method handles want to do 1284 // Kill some extra stack space in case method handles want to do
1285 // a little in-place argument insertion. 1285 // a little in-place argument insertion.
1286 // FIXME: Is this still necessary?
1286 int regs_per_word = NOT_LP64(1) LP64_ONLY(2); // %%% make a global const! 1287 int regs_per_word = NOT_LP64(1) LP64_ONLY(2); // %%% make a global const!
1287 out_arg_limit_per_call += MethodHandlePushLimit * regs_per_word; 1288 out_arg_limit_per_call += methodOopDesc::extra_stack_entries() * regs_per_word;
1288 // Do not update mcall->_argsize because (a) the extra space is not 1289 // Do not update mcall->_argsize because (a) the extra space is not
1289 // pushed as arguments and (b) _argsize is dead (not used anywhere). 1290 // pushed as arguments and (b) _argsize is dead (not used anywhere).
1290 } 1291 }
1291 1292
1292 // Compute the max stack slot killed by any call. These will not be 1293 // Compute the max stack slot killed by any call. These will not be

mercurial