Re: RFR: 8331291: java.lang.classfile.Attributes class performs a lot of static initializations [v2]

2024-04-30 Thread Chen Liang
On Tue, 30 Apr 2024 12:23:36 GMT, Adam Sotona wrote: >> Hi, >> During performance optimization work on Class-File API as JDK lambda >> generator we found some static initialization killers. >> One of them is `java.lang.classfile.Attributes` with tens of static fields >> initialized with

Re: RFR: 8331291: java.lang.classfile.Attributes class performs a lot of static initializations [v2]

2024-04-30 Thread Chen Liang
On Tue, 30 Apr 2024 12:13:59 GMT, Adam Sotona wrote: >> src/java.base/share/classes/jdk/internal/classfile/impl/BoundAttribute.java >> line 996: >> >>> 994: public static AttributeMapper standardAttribute(Utf8Entry name) >>> { >>> 995: // critical bootstrap path, so no lambdas nor

Re: RFR: 8331291: java.lang.classfile.Attributes class performs a lot of static initializations [v2]

2024-04-30 Thread Adam Sotona
On Tue, 30 Apr 2024 12:05:46 GMT, Chen Liang wrote: >> Adam Sotona has updated the pull request incrementally with one additional >> commit since the last revision: >> >> added bug number > > src/java.base/share/classes/jdk/internal/classfile/impl/BoundAttribute.java > line 996: > >> 994:

Re: RFR: 8331291: java.lang.classfile.Attributes class performs a lot of static initializations [v2]

2024-04-30 Thread Adam Sotona
> Hi, > During performance optimization work on Class-File API as JDK lambda > generator we found some static initialization killers. > One of them is `java.lang.classfile.Attributes` with tens of static fields > initialized with individual attribute mappers, and common set of all mappers, >