comparison src/share/vm/code/dependencies.cpp @ 989:148e5441d916

6863023: need non-perm oops in code cache for JSR 292 Summary: Make a special root-list for those few nmethods which might contain non-perm oops. Reviewed-by: twisti, kvn, never, jmasa, ysr
author jrose
date Tue, 15 Sep 2009 21:53:47 -0700
parents d1605aabd0a1
children 54b3b351d6f9
comparison
equal deleted inserted replaced
987:00977607da34 989:148e5441d916
300 } 300 }
301 } 301 }
302 bytes.write_byte(code_byte); 302 bytes.write_byte(code_byte);
303 for (int j = 0; j < stride; j++) { 303 for (int j = 0; j < stride; j++) {
304 if (j == skipj) continue; 304 if (j == skipj) continue;
305 bytes.write_int(_oop_recorder->find_index(deps->at(i+j)->encoding())); 305 bytes.write_int(_oop_recorder->find_index(deps->at(i+j)->constant_encoding()));
306 } 306 }
307 } 307 }
308 } 308 }
309 309
310 // write a sentinel byte to mark the end 310 // write a sentinel byte to mark the end