[jdk17u-dev] RFR: 8242181: [Linux] Show source information when printing native stack traces in hs_err files [v3]
Ashutosh Mehra
asmehra at openjdk.org
Fri Dec 8 15:11:18 UTC 2023
On Fri, 8 Dec 2023 15:08:35 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:
>> Mostly a clean backport other than copyright year changes.
>>
>> Tested with tier1 and tier2.
>
> Ashutosh Mehra has updated the pull request incrementally with one additional commit since the last revision:
>
> Include runtime/globals.hpp to fix compile error when running with --disable-precompiled-headers
>
> Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>
Compilation of `linux-x64-hs-zero` and `linux-x64-hs-minimal` fails with following error:
/home/asmehra/data/ashu-mehra/jdk17u-dev/src/hotspot/share/utilities/decoder_elf.cpp: In member function 'virtual bool ElfDecoder::get_source_info(address, char*, size_t, int*, bool)':
/home/asmehra/data/ashu-mehra/jdk17u-dev/src/hotspot/share/utilities/elfFile.hpp:84:9: error: 'TraceDwarfLevel' was not declared in this scope
84 | if (TraceDwarfLevel >= level) {
I have to include `runtime/globals.hpp` (that defines `TraceDwarfLevel`) in elfFile.hpp to fix the compilation.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/2021#issuecomment-1847344778
More information about the jdk-updates-dev
mailing list