8332457: Examine startup overheads from JDK-8294961

8229959: Convert proxy class to use constant dynamic

Reviewed-by: liach, redestad
This commit is contained in:
Adam Sotona 2024-06-05 15:33:03 +00:00
parent 326dbb1b13
commit d85b0ca5cd
9 changed files with 304 additions and 327 deletions

View file

@ -856,6 +856,8 @@ public class Proxy implements java.io.Serializable {
*/
private static void ensureAccess(Module target, Class<?> c) {
Module m = c.getModule();
if (target == m) return;
// add read edge and qualified export for the target module to access
if (!target.canRead(m)) {
Modules.addReads(target, m);