comparison src/share/vm/runtime/sharedRuntime.cpp @ 10973:ef57c43512d6

8014431: cleanup warnings indicated by the -Wunused-value compiler option on linux Reviewed-by: dholmes, coleenp Contributed-by: jeremymanson@google.com, calvin.cheung@oracle.com
author ccheung
date Thu, 13 Jun 2013 22:02:40 -0700
parents 28e5aed7f3a6
children 9ba41a4a71ff f4f6ae481e1a
comparison
equal deleted inserted replaced
10969:a837fa3d3f86 10973: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 );