<div dir="ltr">Hi Xian Wei,<div><br></div><div>No, you are right! The code in templateTable_x86.cpp that you linked to in your post is not part of the Just in Time Compilers, it is part of the x86 Interpreter! The Java HotSpot VM actually has 2 different Interpreters, the primary Interpreter is written in large chunks of assembly specific to each platform, which is then processed by the HotSpot macro assemblers. The bytecodeInterpreter.cpp file you linked to is part of the second and less often used Interpreter, which is why modifying the bytecodeInterpreter.cpp instanceof implementation did nothing in your case (The Interpreter used actually depends on the platform, and the secondary Interpreter is not used on ARM or x86). The details on the macro assemblers unfortunately elude me since I am not a HotSpot expert (Although I hope to be one day), but to understand how instanceof works on x86 and ARM, you need to understand both x86 and ARM assembly. The Interpreter's instanceof opcode is implemented on x86 in <a href="https://github.com/openjdk/jdk/blob/6bef0474c8b8773d0d20c0f25c36a2ce9cdbd7e8/src/hotspot/cpu/x86/templateTable_x86.cpp#L4243">https://github.com/openjdk/jdk/blob/6bef0474c8b8773d0d20c0f25c36a2ce9cdbd7e8/src/hotspot/cpu/x86/templateTable_x86.cpp#L4243</a> and on ARM, it is implemented in <a href="https://github.com/openjdk/jdk/blob/6bef0474c8b8773d0d20c0f25c36a2ce9cdbd7e8/src/hotspot/cpu/arm/templateTable_arm.cpp#L4182">https://github.com/openjdk/jdk/blob/6bef0474c8b8773d0d20c0f25c36a2ce9cdbd7e8/src/hotspot/cpu/arm/templateTable_arm.cpp#L4182</a></div><div><br></div><div>Happy to help!</div><div><br></div><div>best regards,</div><div>Julian</div></div>