RFR: 8308984: Relativize last_sp (and top_frame_sp) in interpreter frames

Andrew Haley aph at openjdk.org
Wed Aug 16 09:23:12 UTC 2023


On Wed, 16 Aug 2023 08:15:11 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

> I looked into frame::describe and I realized that it already contained code to deal with relativized values (by @AlanBateman and adopted to PowerPC by @reinrich). It works like this: If a member of the fixed frame is on the heap and has a value between -99 to 99 it's value will be printed as a signed integer instead of a hexadecimal value.

Sure, but we need to see what they point to. In other words, every relativized point should be _decoded_ into its pointer form. Otherwise relativization, a good thing, becomes obfuscation, a bad thing.

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

PR Comment: https://git.openjdk.org/jdk/pull/14545#issuecomment-1680258169


More information about the hotspot-dev mailing list