# HG changeset patch # User never # Date 1270061643 25200 # Node ID f61d795ce6de943accd11104c3883b7ae300dfb2 # Parent 747d26efc5fa8e99e852e21ef13c77eea48ba4f7 6939845: zero needs fallback path in C++ interpreter for platform dependent fast bytecodes Reviewed-by: never Contributed-by: ed@camswl.com diff -r 747d26efc5fa -r f61d795ce6de src/share/vm/interpreter/bytecodeInterpreter.cpp --- a/src/share/vm/interpreter/bytecodeInterpreter.cpp Tue Mar 30 00:57:55 2010 -0700 +++ b/src/share/vm/interpreter/bytecodeInterpreter.cpp Wed Mar 31 11:54:03 2010 -0700 @@ -2328,6 +2328,17 @@ } DEFAULT: +#ifdef ZERO + // Some zero configurations use the C++ interpreter as a + // fallback interpreter and have support for platform + // specific fast bytecodes which aren't supported here, so + // redispatch to the equivalent non-fast bytecode when they + // are encountered. + if (Bytecodes::is_defined((Bytecodes::Code)opcode)) { + opcode = (jubyte)Bytecodes::java_code((Bytecodes::Code)opcode); + goto opcode_switch; + } +#endif fatal2("\t*** Unimplemented opcode: %d = %s\n", opcode, Bytecodes::name((Bytecodes::Code)opcode)); goto finish;