Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v3]

2023-10-18 Thread Markus Grönlund
On Mon, 16 Oct 2023 11:28:36 GMT, Erik Gahlin wrote: >> Hi, >> >> Could I have a review of an enhancement that replaces the use of ASM with >> the new Class-File API. This change only deals with bytecode that writes >> event data into buffers. Bytecode transformations carried out by classes in

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v3]

2023-10-16 Thread Erik Gahlin
On Sun, 15 Oct 2023 23:46:45 GMT, Chen Liang wrote: >> Erik Gahlin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Blessed order > > src/jdk.jfr/share/classes/jdk/jfr/internal/EventInstrumentation.java line 227: > >> 225: for (M

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v3]

2023-10-16 Thread Erik Gahlin
> Hi, > > Could I have a review of an enhancement that replaces the use of ASM with the > new Class-File API. This change only deals with bytecode that writes event > data into buffers. Bytecode transformations carried out by classes in > jdk.jfr.internal.intrument package are kept as is. Plan

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Andrey Turbanov
On Mon, 16 Oct 2023 05:07:42 GMT, Erik Gahlin wrote: >> Hi, >> >> Could I have a review of an enhancement that replaces the use of ASM with >> the new Class-File API. This change only deals with bytecode that writes >> event data into buffers. Bytecode transformations carried out by classes in

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Erik Gahlin
On Mon, 16 Oct 2023 05:56:00 GMT, Chen Liang wrote: >> I could not get it to work with findAttribute. No annotations were found. > > The existing code will silently finish the loop no-op and return `null` if no > RVAA is present. So if `findAttribute` returns `Optional.empty()`, you should > ju

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Erik Gahlin
On Mon, 16 Oct 2023 06:01:01 GMT, Chen Liang wrote: >> Erik Gahlin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updates > > src/jdk.jfr/share/classes/jdk/jfr/internal/EventInstrumentation.java line 256: > >> 254:

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Chen Liang
On Mon, 16 Oct 2023 05:07:42 GMT, Erik Gahlin wrote: >> Hi, >> >> Could I have a review of an enhancement that replaces the use of ASM with >> the new Class-File API. This change only deals with bytecode that writes >> event data into buffers. Bytecode transformations carried out by classes in

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Chen Liang
On Mon, 16 Oct 2023 05:02:01 GMT, Erik Gahlin wrote: >> src/jdk.jfr/share/classes/jdk/jfr/internal/EventInstrumentation.java line >> 204: >> >>> 202: String typeDescriptor = classDesc.descriptorString(); >>> 203: for (ClassElement ce : classModel.elements()) { >>> 204:

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Erik Gahlin
> Hi, > > Could I have a review of an enhancement that replaces the use of ASM with the > new Class-File API. This change only deals with bytecode that writes event > data into buffers. Bytecode transformations carried out by classes in > jdk.jfr.internal.intrument package are kept as is. Plan

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API [v2]

2023-10-15 Thread Erik Gahlin
On Sun, 15 Oct 2023 23:45:05 GMT, Chen Liang wrote: >> Erik Gahlin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updates > > src/jdk.jfr/share/classes/jdk/jfr/internal/EventInstrumentation.java line 204: > >> 202: String typeD

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API

2023-10-15 Thread Erik Gahlin
On Sun, 15 Oct 2023 23:34:01 GMT, Chen Liang wrote: >> Hi, >> >> Could I have a review of an enhancement that replaces the use of ASM with >> the new Class-File API. This change only deals with bytecode that writes >> event data into buffers. Bytecode transformations carried out by classes in

Re: RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API

2023-10-15 Thread Chen Liang
On Sun, 15 Oct 2023 20:20:48 GMT, Erik Gahlin wrote: > Hi, > > Could I have a review of an enhancement that replaces the use of ASM with the > new Class-File API. This change only deals with bytecode that writes event > data into buffers. Bytecode transformations carried out by classes in > j

RFR: 8318124: JFR: Rewrite instrumentation to use Class-File API

2023-10-15 Thread Erik Gahlin
Hi, Could I have a review of an enhancement that replaces the use of ASM with the new Class-File API. This change only deals with bytecode that writes event data into buffers. Bytecode transformations carried out by classes in jdk.jfr.internal.intrument package are kept as is. Plan is to try to