diff src/share/vm/interpreter/rewriter.cpp @ 1423:760213a60e8b

* rewrite of the code installation * partial support for safepoints * macro-based CiTargetMethod interface * code stub support
author Lukas Stadler <lukas.stadler@oracle.com>
date Mon, 16 Aug 2010 18:59:36 -0700
parents dd57230ba8fe
children efba53f86c4f
line wrap: on
line diff
--- a/src/share/vm/interpreter/rewriter.cpp	Mon Aug 02 15:44:38 2010 -0700
+++ b/src/share/vm/interpreter/rewriter.cpp	Mon Aug 16 18:59:36 2010 -0700
@@ -177,12 +177,14 @@
       switch (c) {
         case Bytecodes::_lookupswitch   : {
 #ifndef CC_INTERP
-          Bytecode_lookupswitch* bc = Bytecode_lookupswitch_at(bcp);
-          bc->set_code(
-            bc->number_of_pairs() < BinarySwitchThreshold
-            ? Bytecodes::_fast_linearswitch
-            : Bytecodes::_fast_binaryswitch
-          );
+          if (!UseC1X) {
+            Bytecode_lookupswitch* bc = Bytecode_lookupswitch_at(bcp);
+            bc->set_code(
+              bc->number_of_pairs() < BinarySwitchThreshold
+              ? Bytecodes::_fast_linearswitch
+              : Bytecodes::_fast_binaryswitch
+            );
+          }
 #endif
           break;
         }