hotspot/src/share/vm/runtime/arguments.cpp
changeset 5055 743f38c6e179
parent 5035 0e498c4df637
child 5081 41cf61730680
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Wed Mar 17 16:40:25 2010 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Thu Mar 18 09:56:51 2010 +0100
@@ -2859,6 +2859,12 @@
   }
 #endif // _LP64
 
+  // MethodHandles code does not support TaggedStackInterpreter.
+  if (EnableMethodHandles && TaggedStackInterpreter) {
+    warning("TaggedStackInterpreter is not supported by MethodHandles code.  Disabling TaggedStackInterpreter.");
+    TaggedStackInterpreter = false;
+  }
+
   // Check the GC selections again.
   if (!check_gc_consistency()) {
     return JNI_EINVAL;