On Tue, 14 Apr 2026 07:29:36 GMT, Matthias Baesken <[email protected]> wrote:

>> When building a JVM with -ffunction-sections in the C/C++ compile flags, the 
>> gtest os_linux.decoder_get_source_info_valid_vm fails and delivers another 
>> result
>> 
>> 
>> [ RUN ] os_linux.decoder_get_source_info_valid_vm
>> test/hotspot/gtest/runtime/test_os_linux.cpp:404: Failure
>> Expected equality of these values:
>>   buf
>>     Which is: "test_os_linux.cpp"
>>   "jniCheck.hpp"
>> 
>> [ FAILED ] os_linux.decoder_get_source_info_valid_vm (20 ms)
>> 
>> 
>> So for this compilation mode, it is probably better to avoid the check for 
>> this specific header.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Fix build without LTGC

This seems a pragmatic solution to avoid the failure. Though it would be good 
to get an understanding of why the problem arises.

Build team (i.e. @erikj79 ) still needs to approve.

Thanks

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/30516#pullrequestreview-4137277733

Reply via email to