RFR: 8369560: Slowdebug build without CDS fails
Martin Doerr
mdoerr at openjdk.org
Fri Oct 10 14:00:16 UTC 2025
On Fri, 10 Oct 2025 13:51:42 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Slowdebug builds without CDS fail, this was noticed on AIX.
> On Linux x86_64 (when using --with-debug-level=slowdebug --disable-cds ) I get a little better error messages , pointing already to code locations :
>
>
> /jdk/src/hotspot/share/oops/trainingData.hpp:155: error: undefined reference to 'TrainingData::TrainingDataLocker::_snapshot'
> /jdk/src/hotspot/share/classfile/vmClasses.cpp:123: error: undefined reference to 'AOTLinkedClassBulkLoader::preload_classes(JavaThread*)'
> collect2: error: ld returned 1 exit status
Thanks for fixing it! Alternatively, you could use the `CDS_ONLY` macro for single statements. Would make it a bit shorter. But, I'm ok with either version.
-------------
Marked as reviewed by mdoerr (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27744#pullrequestreview-3323733575
More information about the hotspot-dev
mailing list