diff 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
line wrap: on
line diff
--- a/src/share/vm/code/dependencies.cpp	Tue Sep 15 11:09:34 2009 -0700
+++ b/src/share/vm/code/dependencies.cpp	Tue Sep 15 21:53:47 2009 -0700
@@ -302,7 +302,7 @@
       bytes.write_byte(code_byte);
       for (int j = 0; j < stride; j++) {
         if (j == skipj)  continue;
-        bytes.write_int(_oop_recorder->find_index(deps->at(i+j)->encoding()));
+        bytes.write_int(_oop_recorder->find_index(deps->at(i+j)->constant_encoding()));
       }
     }
   }