Re: RFR: 8340456: Reduce overhead of proxying Object methods in ProxyGenerator

2024-09-20 Thread Claes Redestad
On Thu, 19 Sep 2024 14:08:04 GMT, Claes Redestad wrote: > This PR changes proxy code gen to avoid generating > `Class.forName("java.lang.Object")`, instead emitting an ldc for the class > literal, `ldc(CD_Object)`, java code equivalent `Object.class`. > > More types could profitably use `ldc(

Re: RFR: 8340456: Reduce overhead of proxying Object methods in ProxyGenerator

2024-09-19 Thread Chen Liang
On Thu, 19 Sep 2024 14:08:04 GMT, Claes Redestad wrote: > This PR changes proxy code gen to avoid generating > `Class.forName("java.lang.Object")`, instead emitting an ldc for the class > literal, `ldc(CD_Object)`, java code equivalent `Object.class`. > > More types could profitably use `ldc(

Re: RFR: 8340456: Reduce overhead of proxying Object methods in ProxyGenerator

2024-09-19 Thread Chen Liang
On Thu, 19 Sep 2024 14:08:04 GMT, Claes Redestad wrote: > This PR changes proxy code gen to avoid generating > `Class.forName("java.lang.Object")`, instead emitting an ldc for the class > literal, `ldc(CD_Object)`, java code equivalent `Object.class`. > > More types could profitably use `ldc(

Re: RFR: 8340456: Reduce overhead of proxying Object methods in ProxyGenerator

2024-09-19 Thread Claes Redestad
On Thu, 19 Sep 2024 14:14:59 GMT, Chen Liang wrote: >> This PR changes proxy code gen to avoid generating >> `Class.forName("java.lang.Object")`, instead emitting an ldc for the class >> literal, `ldc(CD_Object)`, java code equivalent `Object.class`. >> >> More types could profitably use `ldc

RFR: 8340456: Reduce overhead of proxying Object methods in ProxyGenerator

2024-09-19 Thread Claes Redestad
This PR changes proxy code gen to avoid generating `Class.forName("java.lang.Object")`, instead emitting an ldc for the class literal, `ldc(CD_Object)`, java code equivalent `Object.class`. More types could profitably use `ldc(ClassDesc/-Entry)`, taking cues from `InvokerBytecodeGenerator.isSt