RFR: 8293851: hs_err should print more stack in hex dump [v2]

Aleksey Shipilev shade at openjdk.org
Thu Sep 15 15:00:51 UTC 2022


On Thu, 15 Sep 2022 13:18:17 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> I guess it needs to be this way if you want to keep the patch small, because we have no platform-independent API for extracting PC and SP from a context (which would be trivial to implement, but I don't know how far you want to go).

One of the reasons why `print_instruction` is separate and called via os_cpu-specific code is that arches select the unit size knowing the instruction size. Granted, we can do the helpers that expose both SP, PC, and insn unit size.

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

PR: https://git.openjdk.org/jdk/pull/10282


More information about the hotspot-runtime-dev mailing list