On Tue, 31 Mar 2026 15:06:18 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).

This pull request has now been integrated.

Changeset: 7c4c0448
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/7c4c04486f371e980c1b75275b7d319e8db3e9b1
Stats:     10 lines in 1 file changed: 9 ins; 0 del; 1 mod

8375177: Gtest os_linux.decoder_get_source_info_valid_vm fails with 
-ffunction-sections

Reviewed-by: erikj, lucy, dholmes

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

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

Reply via email to