Re: RFR: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize [v3]

2023-09-29 Thread Serguei Spitsyn
On Fri, 29 Sep 2023 19:21:14 GMT, Alex Menkov wrote: >> The change fixes 2 issues in hprof test library. >> The issue were discovered during test development (logging values of dumped >> heap objects). >> - JavaValueArray.elementSize cannot determine size of the array elements and >> throws Run

Re: RFR: 8308429: jvmti/StopThread/stopthrd007 failed with "NoClassDefFoundError: Could not initialize class jdk.internal.misc.VirtualThreads" [v2]

2023-09-29 Thread Serguei Spitsyn
On Thu, 28 Sep 2023 21:04:58 GMT, Leonid Mesnik wrote: >> The test fails because ThreadDeath is raised during class >> jdk.internal.misc.VirtualThreads initialization. The proposed fix is to >> pre-initialize this step to avoid such failures. See more details in the bug. >> I reproduced the ori

Re: RFR: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize [v3]

2023-09-29 Thread Leonid Mesnik
On Fri, 29 Sep 2023 19:21:14 GMT, Alex Menkov wrote: >> The change fixes 2 issues in hprof test library. >> The issue were discovered during test development (logging values of dumped >> heap objects). >> - JavaValueArray.elementSize cannot determine size of the array elements and >> throws Run

Re: RFR: JDK-8219652: [aix] Tests failing with JNI attach problems. [v7]

2023-09-29 Thread Serguei Spitsyn
On Thu, 28 Sep 2023 16:44:26 GMT, Varada M wrote: >> Similar issue [JDK-8303549](https://bugs.openjdk.org/browse/JDK-8303549) >> where AttachCurrentThread is failing on AIX due to stack size issue. >> Test cases: >> runtime/jni/terminatedThread/TestTerminatedThread.java >> vmTestbase/nsk/jvmti

Re: RFR: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize [v2]

2023-09-29 Thread Alex Menkov
On Fri, 29 Sep 2023 03:18:48 GMT, Leonid Mesnik wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Added bug tag to the test > > test/lib-test/jdk/test/lib/hprof/HprofTest.java line 46: > >> 44: * @bug 8316778 >> 45:

Re: RFR: JDK-8316778: test hprof lib: invalid array element type from JavaValueArray.elementSize [v3]

2023-09-29 Thread Alex Menkov
> The change fixes 2 issues in hprof test library. > The issue were discovered during test development (logging values of dumped > heap objects). > - JavaValueArray.elementSize cannot determine size of the array elements and > throws RuntimeException: invalid array element type > - JavaObject.toS

Re: RFR: 8303773: Replace "main.wrapper" with "test.thread.factory" property in test code [v3]

2023-09-29 Thread Leonid Mesnik
> The main.wrapper was the first name for jtreg test thread factory plugin. > However, during integration of this feature in jtreg it was decided to use > test.thread.factory name. So this fix just renames "main.wrapper" property to > "test.thread.factory" so it is more compliant with jtreg nam

Re: measuring object size in Java

2023-09-29 Thread Laurence Cable
On 9/28/23 10:38 PM, Alan Bateman wrote: On 28/09/2023 21:42, daniel.daughe...@oracle.com wrote: java.lang.instrument is owned by the Serviceability Team so I'm redirecting this message to that alias... This doesn't look like a JDK issue, instead it looks like |com.github.jelmerk.ObjectS

Re: RFR: 8309599: WeakHandle and OopHandle release should clear obj pointer

2023-09-29 Thread Roman Kennke
On Fri, 29 Sep 2023 02:56:07 GMT, David Holmes wrote: > > > Hmmm okay - it seems fragile to have a psuedo-destructor in release(). > > > > > > I don't know what this comment means. > > Object lifetimes should be well managed such that you can't use an object > after it has been "destroyed". M

Integrated: 8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalError: We should have found a thread that owns the anonymous lock"

2023-09-29 Thread Roman Kennke
On Mon, 25 Sep 2023 16:16:51 GMT, Roman Kennke wrote: > The SA can run concurrently with Java threads, SA code that inspects locking > state should be able to deal with that. On the other hand, the particular > code is only used in printing routine and is not expected to be precise. When > res

Re: RFR: 8316401: sun/tools/jhsdb/JStackStressTest.java failed with "InternalError: We should have found a thread that owns the anonymous lock" [v3]

2023-09-29 Thread Roman Kennke
On Thu, 28 Sep 2023 09:11:12 GMT, Roman Kennke wrote: >> The SA can run concurrently with Java threads, SA code that inspects locking >> state should be able to deal with that. On the other hand, the particular >> code is only used in printing routine and is not expected to be precise. >> When