--- old/src/cpu/x86/vm/interp_masm_x86_32.cpp 2009-10-22 18:35:25.634766447 +0200 +++ new/src/cpu/x86/vm/interp_masm_x86_32.cpp 2009-10-22 18:35:25.526248923 +0200 @@ -196,6 +196,9 @@ } else { assert(EnableInvokeDynamic, "giant index used only for EnableInvokeDynamic"); movl(reg, Address(rsi, bcp_offset)); + // Check if the secondary index definition is still ~x, otherwise + // we have to change the following assembler code to calculate the + // plain index. assert(constantPoolCacheOopDesc::decode_secondary_index(~123) == 123, "else change next line"); notl(reg); // convert to plain index }