axiangyushanhaijing / powerpoint

https://wiki.openjdk.java.net/display/jdk8u
GNU General Public License v2.0
6 stars 3 forks source link

2023-12 调试记录 #370

Open axiangyushanhaijing opened 11 months ago

axiangyushanhaijing commented 11 months ago
diff --git a/hotspot/src/cpu/riscv64/vm/templateTable_riscv64.cpp b/hotspot/src/cpu/riscv64/vm/templateTable_riscv64.cpp
index 097490adabe..cdd5e97718f 100644
--- a/hotspot/src/cpu/riscv64/vm/templateTable_riscv64.cpp
+++ b/hotspot/src/cpu/riscv64/vm/templateTable_riscv64.cpp
@@ -2135,7 +2135,7 @@ void TemplateTable::branch(bool is_jsr, bool is_wide)
        // __ sub(x12, x12, nmethod::in_use);
       //}
       __ addi(t0, x12, -InvalidOSREntryBci);
-      __ bnez(t0, dispatch);
+      __ beqz(t0, dispatch);

       // We have the address of an on stack replacement routine in x10
       // We need to prepare to execute the OSR method. First we must

此处修改有待商榷

已提 d6915562849bc6c992a87bea15eadbf3cf10c12d

axiangyushanhaijing commented 11 months ago

gdb调试配置的vscode

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "miDebuggerServerAddress": "localhost:3334", // GDB地址信息
            "program": "/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/bin/java", //调试程序入口
            "args": ["-version"], // GDB参数
            "stopAtEntry": false,
            "cwd": "/home/zhangxiang/zx_temp/jdk8u",  //源码位置
            "environment": [],
            "externalConsole": false,
            // 动态库路径
            "additionalSOLibSearchPath": "/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64/jli:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64/server",
            "MIMode": "gdb",
            "miDebuggerPath": "/home/zhangxiang/riscv64/bin/riscv64-unknown-linux-gnu-gdb", //重点 GDB位置,需要使用riscv32-unknown-linux-gnu-gdb版本的GDB
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}
axiangyushanhaijing commented 11 months ago

12.25 image UseCMoveUnconditionally---此处可以删去。

axiangyushanhaijing commented 11 months ago

image 应该改为&&