RFR: 8343031: StopInterpreterAt not work on linux-x86_64

SendaoYan syan at openjdk.org
Mon Nov 18 02:37:47 UTC 2024


On Fri, 25 Oct 2024 03:54:45 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> The VM option `-XX:StopInterpreterAt=1` doesn't work on linux-x86_64 before this PR. `MacroAssembler::int3` call `os::breakpoint()`, but the `os::breakpoint()` [implementation](https://github.com/openjdk/jdk/blob/master/src/hotspot/os/posix/os_posix.cpp#L284) is empty.
> In this PR, I replace call `os::breakpoint()` as emit int3 assemble code directly. Only affect `-XX:StopInterpreterAt` with debug build, risk is low.
> 
> Additional testing:
> 
> - [x] linux x64 build with release/fastdebug/slowdebug configure
> - [x] linux x64 jtreg tests(include tier1/2/3 etc.) with release build
> - [x] linux x64 jtreg tests(include tier1/2/3 etc.) with fastdebug build

Hi, can anyone take look this PR.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/21701#issuecomment-2481809974


More information about the hotspot-runtime-dev mailing list