mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8308285: Assert on -Xshare:dump when running with -Xlog:cds=trace
Reviewed-by: ccheung, iklam
(cherry picked from commit 95da499ef2)
This commit is contained in:
committed by
Vitaly Provodin
parent
61cce239a6
commit
bfd86a3fed
@@ -1364,7 +1364,15 @@ BasicType java_lang_Class::primitive_type(oop java_class) {
|
||||
} else {
|
||||
assert(java_class == Universe::void_mirror(), "only valid non-array primitive");
|
||||
}
|
||||
assert(Universe::java_mirror(type) == java_class, "must be consistent");
|
||||
#ifdef ASSERT
|
||||
if (DumpSharedSpaces) {
|
||||
oop mirror = Universe::java_mirror(type);
|
||||
oop scratch_mirror = HeapShared::scratch_java_mirror(type);
|
||||
assert(java_class == mirror || java_class == scratch_mirror, "must be consistent");
|
||||
} else {
|
||||
assert(Universe::java_mirror(type) == java_class, "must be consistent");
|
||||
}
|
||||
#endif
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user