8265798: Minimal build broken by JDK-8261090
Reviewed-by: iklam
This commit is contained in:
parent
13d3263380
commit
a715b09f52
@ -568,10 +568,12 @@ void Rewriter::rewrite_bytecodes(TRAPS) {
|
||||
}
|
||||
|
||||
void Rewriter::rewrite(InstanceKlass* klass, TRAPS) {
|
||||
#if INCLUDE_CDS
|
||||
if (klass->is_shared()) {
|
||||
assert(!klass->is_rewritten(), "rewritten shared classes cannot be rewritten again");
|
||||
assert(MetaspaceShared::is_old_class(klass), "only shared old classes aren't rewritten");
|
||||
}
|
||||
#endif // INCLUDE_CDS
|
||||
ResourceMark rm(THREAD);
|
||||
constantPoolHandle cpool(THREAD, klass->constants());
|
||||
Rewriter rw(klass, cpool, klass->methods(), CHECK);
|
||||
|
@ -137,7 +137,7 @@ public:
|
||||
static void link_and_cleanup_shared_classes(TRAPS) NOT_CDS_RETURN;
|
||||
static bool link_class_for_cds(InstanceKlass* ik, TRAPS) NOT_CDS_RETURN_(false);
|
||||
static bool linking_required(InstanceKlass* ik) NOT_CDS_RETURN_(false);
|
||||
static bool is_old_class(InstanceKlass* ik);
|
||||
static bool is_old_class(InstanceKlass* ik) NOT_CDS_RETURN_(false);
|
||||
|
||||
#if INCLUDE_CDS
|
||||
// Alignment for the 3 core CDS regions (MC/RW/RO) only.
|
||||
|
Loading…
x
Reference in New Issue
Block a user