Re: RFR: 8311102: Write annotations in the classfile dumped by SA

2023-07-11 Thread Thomas Stuefe
On Tue, 11 Jul 2023 06:31:24 GMT, Thomas Stuefe wrote: >> Please review this PR that enables ClassWriter to write annotations to the >> class file being dumped. >> >> The fields annotations are stored in `Annotations::_fields_annotations` >> which is of type `Array*>`. There is no class in SA

Re: RFR: 8311102: Write annotations in the classfile dumped by SA

2023-07-11 Thread Thomas Stuefe
On Fri, 30 Jun 2023 14:32:03 GMT, Ashutosh Mehra wrote: > Please review this PR that enables ClassWriter to write annotations to the > class file being dumped. > > The fields annotations are stored in `Annotations::_fields_annotations` which > is of type `Array*>`. There is no class in SA that

RFR: JDK-8311870: Split CompressedKlassPointers from compressedOops.hpp

2023-07-11 Thread Thomas Stuefe
In preparation for some Lilliput-related changes, I'd like to get some purely mechanical code moves out of the way. It would also improve separation of concerns and reduces include header bloat. In particular, this patch does: 1) Move `CompressedKlassPointers` from `compressedOops.(cpp|hpp|inli

Re: RFR: JDK-8311870: Split CompressedKlassPointers from compressedOops.hpp

2023-07-11 Thread Thomas Stuefe
On Tue, 11 Jul 2023 11:20:19 GMT, Thomas Stuefe wrote: > In preparation for some Lilliput-related changes, I'd like to get some purely > mechanical code moves out of the way. It would also improve separation of > concerns and reduces include header bloat. > > In particular, this patch does: >

Integrated: JDK-8310066: Improve test coverage for JVMTI GetThreadState on carrier and mounted vthread

2023-07-11 Thread Alex Menkov
On Fri, 23 Jun 2023 01:57:56 GMT, Alex Menkov wrote: > This is follow-up JDK-8307153/JDK-8309612 (JVMTI GetThreadState on carrier > should return STATE_WAITING) > New test tests GetThreadState for different thread states. > The test detected a bug in the implementation, new issue is created: >

Re: RFR: 8311102: Write annotations in the classfile dumped by SA

2023-07-11 Thread Ashutosh Mehra
On Tue, 11 Jul 2023 07:41:01 GMT, Thomas Stuefe wrote: > What would be needed to make the Annotations appear in the "printall" > command? I was somehow expecting to see at least something like > "Annotation@". I am not sure what all details `printall` is expected to emit out. Looking at t

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v2]

2023-07-11 Thread Ashutosh Mehra
> Please review this PR that enables ClassWriter to write annotations to the > class file being dumped. > > The fields annotations are stored in `Annotations::_fields_annotations` which > is of type `Array*>`. There is no class in SA that can represent > it. I have added ArrayOfU1Array to corre

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v2]

2023-07-11 Thread Ashutosh Mehra
On Fri, 30 Jun 2023 17:59:15 GMT, Chris Plummer wrote: >> Ashutosh Mehra has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comments >> >> Signed-off-by: Ashutosh Mehra > > src/hotspot/share/runtime/vmStructs.cpp line 972: > >

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v2]

2023-07-11 Thread Ashutosh Mehra
On Tue, 11 Jul 2023 06:39:09 GMT, Thomas Stuefe wrote: >> src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ConstMethod.java >> line 470: >> >>> 468: if (hasParameterAnnotations()) { >>> 469: offset += 1; >>> 470: } >> >> Code here and in other places could be tighte

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v3]

2023-07-11 Thread Ashutosh Mehra
> Please review this PR that enables ClassWriter to write annotations to the > class file being dumped. > > The fields annotations are stored in `Annotations::_fields_annotations` which > is of type `Array*>`. There is no class in SA that can represent > it. I have added ArrayOfU1Array to corre

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v3]

2023-07-11 Thread Ashutosh Mehra
On Tue, 11 Jul 2023 06:32:24 GMT, Thomas Stuefe wrote: >> Ashutosh Mehra has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Some code motion and factoring out common code >> >> Signed-off-by: Ashutosh Mehra > > src/jdk.hotspot.agent/s

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v3]

2023-07-11 Thread Chris Plummer
On Tue, 11 Jul 2023 19:34:29 GMT, Ashutosh Mehra wrote: >> src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Annotations.java >> line 74: >> >>> 72: public U1Array getFieldAnnotations(int fieldIndex) { >>> 73: Address addr = fieldsAnnotations.getValue(getAddress()); >>> 74: Arr

Re: RFR: 8311102: Write annotations in the classfile dumped by SA [v3]

2023-07-11 Thread Chris Plummer
On Tue, 11 Jul 2023 19:56:25 GMT, Ashutosh Mehra wrote: >> Please review this PR that enables ClassWriter to write annotations to the >> class file being dumped. >> >> The fields annotations are stored in `Annotations::_fields_annotations` >> which is of type `Array*>`. There is no class in SA

Re: RFR: 8310551: vmTestbase/nsk/jdb/interrupt/interrupt001/interrupt001.java timed out due to missing prompt [v2]

2023-07-11 Thread Chris Plummer
> After [JDK-8308232](https://bugs.openjdk.org/browse/JDK-8308232), both the > test and the debuggee shared the same waittime of 5 minutes. The test would > wait up to 5 minutes for the expected prompt, but the debuggee would also in > some cases wait 5 minutes before generating the prompt, whic

Re: RFR: JDK-8306441: Two phase segmented heap dump [v5]

2023-07-11 Thread Chris Plummer
On Tue, 16 May 2023 18:41:26 GMT, Chris Plummer wrote: >> Hi, can I have a review for this patch? > > @y1yang0 Sorry no one has been able to review this so far. The serviceability > team is very busy for the next few weeks finishing up JDK 21 changes before > RDP1. It's unlikely we'll find time

Re: RFR: JDK-8306441: Two phase segmented heap dump [v16]

2023-07-11 Thread Chris Plummer
On Mon, 10 Jul 2023 06:13:17 GMT, Yi Yang wrote: >> ### Motivation and proposal >> Hi, heap dump brings about pauses for application's execution(STW), this is >> a well-known pain. JDK-8252842 have added parallel support to heapdump in an >> attempt to alleviate this issue. However, all concurr

Re: RFR: JDK-8311870: Split CompressedKlassPointers from compressedOops.hpp

2023-07-11 Thread Ioi Lam
On Tue, 11 Jul 2023 11:20:19 GMT, Thomas Stuefe wrote: > In preparation for some Lilliput-related changes, I'd like to get some purely > mechanical code moves out of the way. It would also improve separation of > concerns and reduces include header bloat. > > In particular, this patch does: >

Re: RFR: JDK-8311870: Split CompressedKlassPointers from compressedOops.hpp

2023-07-11 Thread Thomas Stuefe
On Tue, 11 Jul 2023 23:33:52 GMT, Ioi Lam wrote: > Looks reasonable to me. Thank you Ioi. - PR Comment: https://git.openjdk.org/jdk/pull/14826#issuecomment-1631862898

RFR: 8311556: GetThreadLocalStorage not working for vthreads mounted during JVMTI attach

2023-07-11 Thread Serguei Spitsyn
This is an issue with a dynamic load of a JVMTI agent into running VM. The `VM_SetNotifyJvmtiEventsMode` enabling operation makes a call to the function `count_transitions_and_correct_jvmti_thread_states()`. This function in its turn make a call to the function `correct_jvmti_thread_state()`. But

Re: RFR: 8311556: GetThreadLocalStorage not working for vthreads mounted during JVMTI attach

2023-07-11 Thread Leonid Mesnik
On Wed, 12 Jul 2023 05:02:53 GMT, Serguei Spitsyn wrote: > This is an issue with a dynamic load of a JVMTI agent into running VM. > The `VM_SetNotifyJvmtiEventsMode` enabling operation makes a call to the > function `count_transitions_and_correct_jvmti_thread_states()`. This function > in its t