comparison src/share/vm/prims/methodHandleWalk.hpp @ 2478:328926869b15

6987991: JSR 292 phpreboot test/testtracefun2.phpr segfaults Summary: Make MH verification tests more correct, robust, and informative. Fix lingering symbol refcount problems. Reviewed-by: twisti
author jrose
date Sat, 09 Apr 2011 22:55:25 -0700
parents 8033953d67ff
children e2a92dd0d3d2
comparison
equal deleted inserted replaced
2468:6c97c830fb6f 2478:328926869b15
341 } 341 }
342 342
343 int cpool_symbol_put(int tag, Symbol* con) { 343 int cpool_symbol_put(int tag, Symbol* con) {
344 if (con == NULL) return 0; 344 if (con == NULL) return 0;
345 ConstantValue* cv = new ConstantValue(tag, con); 345 ConstantValue* cv = new ConstantValue(tag, con);
346 con->increment_refcount();
346 return _constants.append(cv); 347 return _constants.append(cv);
347 } 348 }
348 349
349 int cpool_oop_reference_put(int tag, int first_index, int second_index) { 350 int cpool_oop_reference_put(int tag, int first_index, int second_index) {
350 if (first_index == 0 && second_index == 0) return 0; 351 if (first_index == 0 && second_index == 0) return 0;