diff src/share/vm/oops/constantPoolOop.cpp @ 1910:d1896d1dda3e

6981788: GC map generator sometimes picks up the wrong kind of instruction operand Summary: Distinguish pool indexes from cache indexes in recently changed code. Reviewed-by: never
author jrose
date Sat, 30 Oct 2010 11:45:35 -0700
parents d257356e35f0
children 3b2dea75431e
line wrap: on
line diff
--- a/src/share/vm/oops/constantPoolOop.cpp	Thu Oct 28 00:48:18 2010 -0700
+++ b/src/share/vm/oops/constantPoolOop.cpp	Sat Oct 30 11:45:35 2010 -0700
@@ -265,8 +265,7 @@
   int i = which;
   if (!uncached && cache() != NULL) {
     if (constantPoolCacheOopDesc::is_secondary_index(which)) {
-      // Invokedynamic indexes are always processed in native order
-      // so there is no question of reading a native u2 in Java order here.
+      // Invokedynamic index.
       int pool_index = cache()->main_entry_at(which)->constant_pool_index();
       if (tag_at(pool_index).is_invoke_dynamic())
         pool_index = invoke_dynamic_name_and_type_ref_index_at(pool_index);