8338526: Don't store abstract and interface Klasses in class metaspace

Reviewed-by: stuefe, iklam
This commit is contained in:
Coleen Phillimore 2024-09-10 11:43:21 +00:00
parent 0d8e52b382
commit ad104932e6
19 changed files with 80 additions and 50 deletions

View file

@ -246,7 +246,7 @@ class InvokerBytecodeGenerator {
return ClassFile.of().build(classDesc, new Consumer<>() {
@Override
public void accept(ClassBuilder clb) {
clb.withFlags(ACC_FINAL | ACC_SUPER)
clb.withFlags(ACC_ABSTRACT | ACC_SUPER)
.withSuperclass(INVOKER_SUPER_DESC)
.with(SourceFileAttribute.of(clb.constantPool().utf8Entry(SOURCE_PREFIX + name)));
config.accept(clb);