<div dir="ltr">I have added the -Xint configuration to the JVM, and I would like to invoke external functions when executing bytecode instanceof. I have added the following method<br><br><br>```<br>JRT_ENTRY(void, InterpreterRuntime::dump_instanceof0(JavaThread* current))<br>    //log_info(os)("invoke instanceof %s:%d", __FILE__, __LINE__);<br>JRT_END<br><br>```<br><br>Then modify templateTable_x86.cpp<br><br>```<br>void TemplateTable::instanceof() {<br>  transition(atos, itos);<br>  Label done, is_null, ok_is_subtype, quicked, resolved;<br><br>  call_VM(noreg, CAST_FROM_FN_PTR(address, InterpreterRuntime::dump_instanceof0));<br><br>  __ testptr(rax, rax);<br>  __ jcc(Assembler::zero, is_null);<br><br>```<br><br>But compiling OpenJDK will result in errors<br><br>```<br>* For target support_images_jmods__create_java.desktop.jmod_exec:<br>Error occurred during initialization of VM<br>java.lang.InternalError: platform encoding not initialized<br>      at jdk.internal.util.SystemProps$Raw.platformProperties(java.base/Native Method)<br>      at jdk.internal.util.SystemProps$Raw.<init>(java.base/SystemProps.java:263)<br>     at jdk.internal.util.SystemProps.initProperties(java.base/SystemProps.java:67)<br>        at java.lang.System.initPhase1(java.base/System.java:2167)<br>```<br><br>Could you please tell me what's incorrect about the method I implemented above ?<br></div>