Skip to content

Commit fe3bef3

Browse files
theaoqiPaul Hohensee
authored andcommitted
8363895: Minimal build fails with slowdebug builds after JDK-8354887
Reviewed-by: kvn Backport-of: 2da0cdadb898efb9af827374368471102bfe0ccd
1 parent cf59787 commit fe3bef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/code/aotCodeCache.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ class AOTCodeCache : public CHeapObj<mtCode> {
362362
static void init2() NOT_CDS_RETURN;
363363
static void close() NOT_CDS_RETURN;
364364
static bool is_on() CDS_ONLY({ return _cache != nullptr && !_cache->closing(); }) NOT_CDS_RETURN_(false);
365-
static bool is_on_for_use() { return is_on() && _cache->for_use(); }
366-
static bool is_on_for_dump() { return is_on() && _cache->for_dump(); }
365+
static bool is_on_for_use() CDS_ONLY({ return is_on() && _cache->for_use(); }) NOT_CDS_RETURN_(false);
366+
static bool is_on_for_dump() CDS_ONLY({ return is_on() && _cache->for_dump(); }) NOT_CDS_RETURN_(false);
367367

368368
static bool is_dumping_adapter() NOT_CDS_RETURN_(false);
369369
static bool is_using_adapter() NOT_CDS_RETURN_(false);

0 commit comments

Comments
 (0)