Skip to content

Commit a428b6b

Browse files
committed
8369560: Slowdebug build without CDS fails
Reviewed-by: lucy Backport-of: 0af959a340fe68caa47fc476ff861f0e86087162
1 parent 7acc55a commit a428b6b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/hotspot/share/classfile/vmClasses.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,11 @@ void vmClasses::resolve_all(TRAPS) {
210210
#endif
211211

212212
InstanceStackChunkKlass::init_offset_of_stack();
213+
#if INCLUDE_CDS
213214
if (CDSConfig::is_using_aot_linked_classes()) {
214215
AOTLinkedClassBulkLoader::load_javabase_classes(THREAD);
215216
}
217+
#endif
216218
}
217219

218220
#if INCLUDE_CDS

src/hotspot/share/oops/trainingData.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ class TrainingData : public Metadata {
9898
// It supports recursive locking and a read-only mode (in which case no locks are taken).
9999
// It is also a part of the TD collection termination protocol (see the "snapshot" field).
100100
class TrainingDataLocker {
101+
#if INCLUDE_CDS
101102
static volatile bool _snapshot; // If true we're not allocating new training data
103+
#endif
102104
static int _lock_mode;
103105
const bool _recursive;
104106
static void lock() {
@@ -153,7 +155,9 @@ class TrainingData : public Metadata {
153155
#endif
154156
}
155157
static void assert_locked_or_snapshotted() {
158+
#if INCLUDE_CDS
156159
assert(safely_locked() || _snapshot, "use under TrainingDataLocker or after snapshot");
160+
#endif
157161
}
158162
static void assert_locked() {
159163
assert(safely_locked(), "use under TrainingDataLocker");

0 commit comments

Comments
 (0)