File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/hotspot/jtreg/runtime/CompressedOops Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 29
29
#include " cds/filemap.hpp"
30
30
#include " cds/heapShared.hpp"
31
31
#include " cds/metaspaceShared.hpp"
32
+ #include " classfile/classLoader.hpp"
32
33
#include " classfile/classLoaderDataGraph.hpp"
33
34
#include " classfile/classLoaderStats.hpp"
34
35
#include " classfile/classPrinter.hpp"
@@ -2115,7 +2116,10 @@ WB_END
2115
2116
2116
2117
WB_ENTRY (jboolean, WB_IsCDSIncluded(JNIEnv* env))
2117
2118
#if INCLUDE_CDS
2118
- return true ;
2119
+ // An exploded build inhibits use of CDS. Therefore, for the
2120
+ // purpose of testing, the JVM can be treated as not having CDS
2121
+ // built in at all.
2122
+ return ClassLoader::has_jrt_entry();
2119
2123
#else
2120
2124
return false ;
2121
2125
#endif // INCLUDE_CDS
Original file line number Diff line number Diff line change 26
26
* @summary Test the various CPU-specific reservation schemes
27
27
* @requires vm.bits == 64 & !vm.graal.enabled & vm.debug == true
28
28
* @requires vm.flagless
29
+ * @requires vm.cds
29
30
* @requires (os.family != "windows") & (os.family != "aix")
30
31
* @library /test/lib
31
32
* @modules java.base/jdk.internal.misc
You can’t perform that action at this time.
0 commit comments