-
Bug
-
Resolution: Unresolved
-
P4
-
8, 11, 17, 21, 24
-
aarch64, riscv
-
linux
The VM option '-XX:StopInterpreterAt=1' doesn't work correctly linux-aarch64, the actual result for now(gdb command si can't step correctly):
> gdb ./build/linux-aarch64-server-slowdebug/images/jdk/bin/java
(gdb) b breakpoint()
(gdb) run -XX:StopInterpreterAt=1 -XX:ParallelGCThreads=1 -version
Thread 2 "java" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0xfffff4fdf150 (LWP 2347034)]
0x0000ffffdf9c0a9c in ?? ()
(gdb) x/5i $pc
=> 0xffffdf9c0a9c: brk #0x0
0xffffdf9c0aa0: ldr x8, [x20], #8
0xffffdf9c0aa4: orr x0, xzr, #0x1
0xffffdf9c0aa8: ldrb w8, [x22, #1]!
0xffffdf9c0aac: add w9, w8, #0x400
(gdb) si
0x0000ffffdf9c0a9c in ?? ()
(gdb) si
0x0000ffffdf9c0a9c in ?? ()
This VM options works on linux-x64 like below:
> gdb ./build/linux-x86_64-server-slowdebug/images/jdk/bin/java
(gdb) b breakpoint()
(gdb) run -XX:StopInterpreterAt=1 -XX:ParallelGCThreads=1 -version
Thread 2 "java" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7ffff51d9640 (LWP 2897069)]
0x00007fffdf83ae3e in ?? ()
(gdb) x/5i $pc
=> 0x7fffdf83ae3e: mov $0x1,%eax
0x7fffdf83ae43: movzbl 0x1(%r13),%ebx
0x7fffdf83ae48: inc %r13
0x7fffdf83ae4b: movabs $0x7ffff7d673e0,%r10
0x7fffdf83ae55: jmpq *(%r10,%rbx,8)
(gdb) si
0x00007fffdf83ae43 in ?? ()
(gdb) si
0x00007fffdf83ae48 in ?? ()
> gdb ./build/linux-aarch64-server-slowdebug/images/jdk/bin/java
(gdb) b breakpoint()
(gdb) run -XX:StopInterpreterAt=1 -XX:ParallelGCThreads=1 -version
Thread 2 "java" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0xfffff4fdf150 (LWP 2347034)]
0x0000ffffdf9c0a9c in ?? ()
(gdb) x/5i $pc
=> 0xffffdf9c0a9c: brk #0x0
0xffffdf9c0aa0: ldr x8, [x20], #8
0xffffdf9c0aa4: orr x0, xzr, #0x1
0xffffdf9c0aa8: ldrb w8, [x22, #1]!
0xffffdf9c0aac: add w9, w8, #0x400
(gdb) si
0x0000ffffdf9c0a9c in ?? ()
(gdb) si
0x0000ffffdf9c0a9c in ?? ()
This VM options works on linux-x64 like below:
> gdb ./build/linux-x86_64-server-slowdebug/images/jdk/bin/java
(gdb) b breakpoint()
(gdb) run -XX:StopInterpreterAt=1 -XX:ParallelGCThreads=1 -version
Thread 2 "java" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7ffff51d9640 (LWP 2897069)]
0x00007fffdf83ae3e in ?? ()
(gdb) x/5i $pc
=> 0x7fffdf83ae3e: mov $0x1,%eax
0x7fffdf83ae43: movzbl 0x1(%r13),%ebx
0x7fffdf83ae48: inc %r13
0x7fffdf83ae4b: movabs $0x7ffff7d673e0,%r10
0x7fffdf83ae55: jmpq *(%r10,%rbx,8)
(gdb) si
0x00007fffdf83ae43 in ?? ()
(gdb) si
0x00007fffdf83ae48 in ?? ()