RFR: 8375241: Simplify --with-native-debug-symbols-level option implementation [v3]

Aleksey Shipilev shade at openjdk.org
Wed Jan 21 18:46:04 UTC 2026


On Wed, 21 Jan 2026 06:24:39 GMT, Julian Waters <jwaters at openjdk.org> wrote:

>> --with-native-debug-symbols-level was added some time ago to allow selecting the level of debugging information created for compiled binaries. The UTIL_ARG_WITH utility that the option implementation uses has several features that can be used to simplify handling of this option, so that is done in this change.
>
> Julian Waters has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use auto for default in flags-cflags.m4

Seems to work as expected:


$ du -sh build/linux-x86_64-server-fastdebug/images/jdk/

# --- Current mainline

# level=1
637M	build/linux-x86_64-server-fastdebug/images/jdk/

# level=2
1.7G	build/linux-x86_64-server-fastdebug/images/jdk/

# level=3
1.8G	build/linux-x86_64-server-fastdebug/images/jdk/

# default
1.7G	build/linux-x86_64-server-fastdebug/images/jdk/


# --- This PR

# level=1
637M	build/linux-x86_64-server-fastdebug/images/jdk/

# level=2
1.7G	build/linux-x86_64-server-fastdebug/images/jdk/

# level=3
1.8G	build/linux-x86_64-server-fastdebug/images/jdk/

# default
1.7G	build/linux-x86_64-server-fastdebug/images/jdk/

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29214#pullrequestreview-3688788734


More information about the build-dev mailing list