mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8332457: Examine startup overheads from JDK-8294961
8229959: Convert proxy class to use constant dynamic Reviewed-by: liach, redestad
This commit is contained in:
parent
326dbb1b13
commit
d85b0ca5cd
9 changed files with 304 additions and 327 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue