Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-05-28 Thread Valerie Peng
On Sat, 5 Apr 2025 01:30:49 GMT, Shaojin Wen wrote: >> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 >> anonymous classes, which slows down the startup. This PR is to improve >> KnownOIDs and eliminate unnecessary embedded classes. >> >> >> Here's how to reproduce this:

Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-05-23 Thread Roger Riggs
On Sat, 5 Apr 2025 01:30:49 GMT, Shaojin Wen wrote: >> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 >> anonymous classes, which slows down the startup. This PR is to improve >> KnownOIDs and eliminate unnecessary embedded classes. >> >> >> Here's how to reproduce this:

Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-05-22 Thread Shaojin Wen
On Mon, 14 Apr 2025 14:40:02 GMT, Roger Riggs wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> from @valeriepeng > > Looks ok; but will need to be re-opened. It would seem odd to approve a > closed PR. Sorry it too

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-05-02 Thread Johannes Graham
On Sat, 8 Feb 2025 09:26:29 GMT, Shaojin Wen wrote: >>> The reproducer you provided doesn't try to load KnownOIDs on my machine. >>> What am I missing? >>> >>> Other than that, the change looks reasonable to me. >> >> Me neither and I'm using linux. Are you sure the Startup.java is right? >> J

Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-04-14 Thread Roger Riggs
On Sat, 5 Apr 2025 01:30:49 GMT, Shaojin Wen wrote: >> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 >> anonymous classes, which slows down the startup. This PR is to improve >> KnownOIDs and eliminate unnecessary embedded classes. >> >> >> Here's how to reproduce this:

Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-04-11 Thread Valerie Peng
On Sat, 5 Apr 2025 01:30:49 GMT, Shaojin Wen wrote: >> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 >> anonymous classes, which slows down the startup. This PR is to improve >> KnownOIDs and eliminate unnecessary embedded classes. >> >> >> Here's how to reproduce this:

Re: RFR: 8349400: Improve startup speed via eliminating nested classes [v2]

2025-04-04 Thread Shaojin Wen
> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > > > public class Startup { > public static void main

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-10 Thread Roger Riggs
On Sat, 8 Feb 2025 08:44:04 GMT, Shaojin Wen wrote: >> You could define the static field on another class, like SecurityConstants, >> and then use it in the enum constructor. > > Creating a new empty string array every time is the original behavior, which > has nothing to do with the purpose of

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-08 Thread Shaojin Wen
On Fri, 7 Feb 2025 01:46:03 GMT, Valerie Peng wrote: > > The reproducer you provided doesn't try to load KnownOIDs on my machine. > > What am I missing? > > Other than that, the change looks reasonable to me. > > Me neither and I'm using linux. Are you sure the Startup.java is right? Just > cu

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-08 Thread Shaojin Wen
On Thu, 6 Feb 2025 23:45:57 GMT, Johannes Graham wrote: >> you are right, but accessing static field from enum constructor is not >> allowed > > You could define the static field on another class, like SecurityConstants, > and then use it in the enum constructor. Creating a new empty string ar

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-06 Thread Valerie Peng
On Wed, 5 Feb 2025 16:41:10 GMT, Shaojin Wen wrote: > The reproducer you provided doesn't try to load KnownOIDs on my machine. What > am I missing? > > Other than that, the change looks reasonable to me. Me neither and I'm using linux. Are you sure the Startup.java is right? Just curious, do y

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-06 Thread Johannes Graham
On Wed, 5 Feb 2025 16:29:24 GMT, Shaojin Wen wrote: >> src/java.base/share/classes/sun/security/util/KnownOIDs.java line 494: >> >>> 492: this.stdName = stdName; >>> 493: this.registerNames = registerNames; >>> 494: this.aliases = new String[0]; >> >> Unless this String[

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-06 Thread Valerie Peng
On Sun, 2 Feb 2025 19:35:03 GMT, Shaojin Wen wrote: > During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > >

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-06 Thread Valerie Peng
On Sun, 2 Feb 2025 19:35:03 GMT, Shaojin Wen wrote: > During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > >

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-05 Thread Shaojin Wen
On Wed, 5 Feb 2025 12:26:17 GMT, Daniel Jeliński wrote: > The reproducer you provided doesn't try to load KnownOIDs on my machine. What > am I missing? > > Other than that, the change looks reasonable to me. Sorry, maybe I am wrong. My test above is using build/macosx-aarch64-server-release/j

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-05 Thread Shaojin Wen
On Wed, 5 Feb 2025 15:21:59 GMT, Roger Riggs wrote: >> During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 >> anonymous classes, which slows down the startup. This PR is to improve >> KnownOIDs and eliminate unnecessary embedded classes. >> >> >> Here's how to reproduce this:

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-05 Thread Sean Mullan
On Sun, 2 Feb 2025 19:35:03 GMT, Shaojin Wen wrote: > During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > >

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-05 Thread Roger Riggs
On Sun, 2 Feb 2025 19:35:03 GMT, Shaojin Wen wrote: > During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > >

Re: RFR: 8349400: Improve startup speed via eliminating nested classes

2025-02-05 Thread Daniel Jeliński
On Sun, 2 Feb 2025 19:35:03 GMT, Shaojin Wen wrote: > During JVM startup, the class KnownOIDs is loaded. KnownOIDs has 10 anonymous > classes, which slows down the startup. This PR is to improve KnownOIDs and > eliminate unnecessary embedded classes. > > > Here's how to reproduce this: > >