8306038: SystemModulesPlugin generates code that doesn't pop when return value not used

Reviewed-by: alanb, mchung
This commit is contained in:
Oliver Kopp 2023-04-19 15:56:34 +00:00 committed by Mandy Chung
parent a31a11f44a
commit c57af319f6

View File

@ -1085,7 +1085,8 @@ public final class SystemModulesPlugin extends AbstractPlugin {
}
cob.invokevirtual(CD_MODULE_BUILDER,
"requires",
MTD_REQUIRES_ARRAY);
MTD_REQUIRES_ARRAY)
.pop();
}
/*
@ -1129,7 +1130,8 @@ public final class SystemModulesPlugin extends AbstractPlugin {
}
cob.invokevirtual(CD_MODULE_BUILDER,
"exports",
MTD_EXPORTS_ARRAY);
MTD_EXPORTS_ARRAY)
.pop();
}
/*
@ -1185,7 +1187,8 @@ public final class SystemModulesPlugin extends AbstractPlugin {
}
cob.invokevirtual(CD_MODULE_BUILDER,
"opens",
MTD_OPENS_ARRAY);
MTD_OPENS_ARRAY)
.pop();
}
/*
@ -1254,7 +1257,8 @@ public final class SystemModulesPlugin extends AbstractPlugin {
}
cob.invokevirtual(CD_MODULE_BUILDER,
"provides",
MTD_PROVIDES_ARRAY);
MTD_PROVIDES_ARRAY)
.pop();
}
/*