src/share/vm/runtime/sharedRuntime.cpp

changeset 5259
ef57c43512d6
parent 5222
28e5aed7f3a6
child 5302
9ba41a4a71ff
child 6443
f4f6ae481e1a
equal deleted inserted replaced
5255:a837fa3d3f86 5259:ef57c43512d6
2729 VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver, bool has_appendix, int* arg_size) { 2729 VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver, bool has_appendix, int* arg_size) {
2730 // This method is returning a data structure allocating as a 2730 // This method is returning a data structure allocating as a
2731 // ResourceObject, so do not put any ResourceMarks in here. 2731 // ResourceObject, so do not put any ResourceMarks in here.
2732 char *s = sig->as_C_string(); 2732 char *s = sig->as_C_string();
2733 int len = (int)strlen(s); 2733 int len = (int)strlen(s);
2734 *s++; len--; // Skip opening paren 2734 s++; len--; // Skip opening paren
2735 char *t = s+len; 2735 char *t = s+len;
2736 while( *(--t) != ')' ) ; // Find close paren 2736 while( *(--t) != ')' ) ; // Find close paren
2737 2737
2738 BasicType *sig_bt = NEW_RESOURCE_ARRAY( BasicType, 256 ); 2738 BasicType *sig_bt = NEW_RESOURCE_ARRAY( BasicType, 256 );
2739 VMRegPair *regs = NEW_RESOURCE_ARRAY( VMRegPair, 256 ); 2739 VMRegPair *regs = NEW_RESOURCE_ARRAY( VMRegPair, 256 );

mercurial