RFR: 8358330: AsmRemarks and DbgStrings clear() method may not get called before their destructor
Ashutosh Mehra
asmehra at openjdk.org
Tue Jun 3 14:13:52 UTC 2025
On Tue, 3 Jun 2025 01:29:04 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
> Can you consider populate CodeBlob::_asm_remarks and _dbg_strings after calling CodeBlob::create()? Then you don't need temporary AsmRemarks and DbgStrings.
That would work as well. CodeBlob::_asm_remarks::_remarks need to be allocated memory explicitly in this case. I will add AsmRemarks::init() to allocate memory for and initialize AsmRemarks::_remarks.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25598#issuecomment-2935464214
More information about the hotspot-compiler-dev
mailing list