Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Robbin Ehn
On Wed, 11 Nov 2020 22:53:08 GMT, Daniel D. Daugherty wrote: >> test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetCurrentContendedMonitor/contmon002.java >> line 61: >> >>> 59: >>> 60: public static int run(String argv[], PrintStream ref) { >>> 61: doSleep(); // If it would do any class

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Robbin Ehn
On Wed, 11 Nov 2020 22:43:49 GMT, Daniel D. Daugherty wrote: >> As the stack trace in the bug shows, we cannot load classes, since we may >> take a monitor. >> Resulting in an unexpected result to GetCurrentContendedMonitor(). >> Trying to use some decent primitive, e.g. Wicket/Semaphore/.., wi

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Robbin Ehn
On Wed, 11 Nov 2020 22:55:16 GMT, Daniel D. Daugherty wrote: >> As the stack trace in the bug shows, we cannot load classes, since we may >> take a monitor. >> Resulting in an unexpected result to GetCurrentContendedMonitor(). >> Trying to use some decent primitive, e.g. Wicket/Semaphore/.., wi

Integrated: 8255982: Extend BasicJMapTest to test with different GC Heap

2020-11-11 Thread Lin Zang
On Fri, 6 Nov 2020 12:54:28 GMT, Lin Zang wrote: > The implementation of jmap tool depends on the implementation of object > iteration by different GC heap. > This patch extend the BasicJMapTest to cover differet GC Heap. This pull request has now been integrated. Changeset: 14e25e20 Author:

Re: RFR: 8252657: JVMTI agent is not unloaded when Agent_OnAttach is failed

2020-11-11 Thread Yasumasa Suenaga
On Mon, 19 Oct 2020 01:32:45 GMT, Yasumasa Suenaga wrote: >>> * Q1: Is it necessary to call the Agent_OnUnload()? >> >> [JVMTI spec of >> Agent_OnUnload()](https://docs.oracle.com/en/java/javase/15/docs/specs/jvmti.html#onunload) >> says this function will be called when the agent library will

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality [v2]

2020-11-11 Thread Ioi Lam
On Wed, 11 Nov 2020 15:38:10 GMT, Thomas Schatzl wrote: >> Hi all, >> >> can I get reviews for this change that removes the "Allocation of old >> generation of Java heap on alternate memory devices" functionality >> introduced with JDK 12 with >> [JDK-8202286](https://bugs.openjdk.java.net/

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread David Holmes
On 12/11/2020 8:57 am, Daniel D.Daugherty wrote: On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: As the stack trace in the bug shows, we cannot load classes, since we may take a monitor. Resulting in an unexpected result to GetCurrentContendedMonitor(). Trying to use some decent primitive

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 22:33:57 GMT, Patricio Chilano Mateo wrote: >> As the stack trace in the bug shows, we cannot load classes, since we may >> take a monitor. >> Resulting in an unexpected result to GetCurrentContendedMonitor(). >> Trying to use some decent primitive, e.g. Wicket/Semaphore/..,

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Patricio Chilano Mateo
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v5]

2020-11-11 Thread David Holmes
On 11/11/2020 7:51 am, Daniel D.Daugherty wrote: On Tue, 10 Nov 2020 21:16:33 GMT, Robbin Ehn wrote: So if I narrow the scope around the ThreadBlockInVM, then it would be fine? { // Honor block request. ThreadBlockInVM tbivm(self); } I can make that change before I integrate... Yes t

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread David Holmes
On 12/11/2020 2:39 am, Daniel D.Daugherty wrote: On Wed, 11 Nov 2020 05:12:21 GMT, David Holmes wrote: Daniel D. Daugherty has updated the pull request incrementally with one additional commit since the last revision: resolve more robehn and coleenp comments. One change requested in rel

Re: RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread David Holmes
On Wed, 11 Nov 2020 20:33:15 GMT, Robbin Ehn wrote: > As the stack trace in the bug shows, we cannot load classes, since we may > take a monitor. > Resulting in an unexpected result to GetCurrentContendedMonitor(). > Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being >

RFR: 8244679: JVM/TI GetCurrentContendedMonitor/contmon001 failed due to "(IsSameObject#3) unexpected monitor object: 0x000000562336DBA8"

2020-11-11 Thread Robbin Ehn
As the stack trace in the bug shows, we cannot load classes, since we may take a monitor. Resulting in an unexpected result to GetCurrentContendedMonitor(). Trying to use some decent primitive, e.g. Wicket/Semaphore/.., without being implementation dependent means we must warm up every possible s

Re: RFR: 8253525: Implement getInstanceSize/sizeOf intrinsics [v6]

2020-11-11 Thread Aleksey Shipilev
On Tue, 10 Nov 2020 20:13:41 GMT, Serguei Spitsyn wrote: > One more nit, I forgot to list in my previous comment, is uneeded '()' around > comparisons: > `+ static final int REF_SIZE = ((compressedOops == null) || (compressedOops > == true)) ? 4 : 8;` Right. Fixed that. Thanks! -

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality [v2]

2020-11-11 Thread Igor Ignatyev
On Wed, 11 Nov 2020 15:38:10 GMT, Thomas Schatzl wrote: >> Hi all, >> >> can I get reviews for this change that removes the "Allocation of old >> generation of Java heap on alternate memory devices" functionality >> introduced with JDK 12 with >> [JDK-8202286](https://bugs.openjdk.java.net/

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality [v2]

2020-11-11 Thread Ioi Lam
On Wed, 11 Nov 2020 15:19:05 GMT, Albert Mingkun Yang wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> ayang review > > A general comment for future PRs: I think it's best to isolate mechanical > changes into the

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 16:16:19 GMT, Erik Österlund wrote: >> @coleenp - Nice catch on the missing 'static'. > > I typically use size_t for entities that can scale with the size of the > machine's memory, so I don't have to think about whether there are enough > bits. Could AvgMonitorsPerThreadEst

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 05:12:21 GMT, David Holmes wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> resolve more robehn and coleenp comments. > > One change requested in relation to use of jint instead of size_t.

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v7]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 16:18:41 GMT, Robbin Ehn wrote: >> Daniel D. Daugherty has updated the pull request with a new target base due >> to a merge or a rebase. The pull request now contains ten commits: >> >> - @dholmes-ora, @robehn and @coleenp CR - a few more minor tweaks. >> - Merge branch '

Integrated: 8253064: monitor list simplifications and getting rid of TSM

2020-11-11 Thread Daniel D . Daugherty
On Tue, 13 Oct 2020 20:31:44 GMT, Daniel D. Daugherty wrote: > Changes from @fisk and @dcubed-ojdk to: > > - simplify ObjectMonitor list management > - get rid of Type-Stable Memory (TSM) > > This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new > regressions. > Aurora Perf runs

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v7]

2020-11-11 Thread Robbin Ehn
On Wed, 11 Nov 2020 16:01:15 GMT, Daniel D. Daugherty wrote: >> Changes from @fisk and @dcubed-ojdk to: >> >> - simplify ObjectMonitor list management >> - get rid of Type-Stable Memory (TSM) >> >> This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new >> regressions. >> Aurora Pe

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Erik Österlund
On Wed, 11 Nov 2020 15:23:15 GMT, Daniel D. Daugherty wrote: >> Our int types are really confused. AvgMonitorsPerThreadEstimate is defined >> as an intx which is intptr_t and the range of it is 0..max_jint which is 0 >> .. 0x7fff . jint is long on windows (the problematic type) and int on

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v7]

2020-11-11 Thread Daniel D . Daugherty
> Changes from @fisk and @dcubed-ojdk to: > > - simplify ObjectMonitor list management > - get rid of Type-Stable Memory (TSM) > > This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new > regressions. > Aurora Perf runs have also been done (DaCapo-h2, Quick Startup/Footprint, > SPECj

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v4]

2020-11-11 Thread Lin Zang
On Wed, 11 Nov 2020 15:10:54 GMT, Igor Ignatyev wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add test id > > Hi @linzang , > > it all looks good to me, I'd, however, keep `@build` tags as they were > before, this

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality [v2]

2020-11-11 Thread Thomas Schatzl
On Wed, 11 Nov 2020 15:09:44 GMT, Albert Mingkun Yang wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> ayang review > > test/hotspot/jtreg/TEST.ROOT line 78: > >> 76: vm.musl \ >> 77: docker.support \ >>

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v5]

2020-11-11 Thread Lin Zang
> The implementation of jmap tool depends on the implementation of object > iteration by different GC heap. > This patch extend the BasicJMapTest to cover differet GC Heap. Lin Zang has updated the pull request incrementally with one additional commit since the last revision: recover build ta

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v5]

2020-11-11 Thread Igor Ignatyev
On Wed, 11 Nov 2020 15:42:36 GMT, Lin Zang wrote: >> The implementation of jmap tool depends on the implementation of object >> iteration by different GC heap. >> This patch extend the BasicJMapTest to cover differet GC Heap. > > Lin Zang has updated the pull request incrementally with one addit

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality [v2]

2020-11-11 Thread Thomas Schatzl
> Hi all, > > can I get reviews for this change that removes the "Allocation of old > generation of Java heap on alternate memory devices" functionality introduced > with JDK 12 with > [JDK-8202286](https://bugs.openjdk.java.net/browse/JDK-8202286) due to being > > - not used by anyone > - n

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 13:50:08 GMT, Coleen Phillimore wrote: >> src/hotspot/share/runtime/synchronizer.cpp line 246: >> >>> 244: // >>> 245: // Start the ceiling with the estimate for one thread: >>> 246: jint _in_use_list_ceiling = AvgMonitorsPerThreadEstimate; >> >> Why is this a jint when you

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality

2020-11-11 Thread Albert Mingkun Yang
On Wed, 11 Nov 2020 11:11:25 GMT, Thomas Schatzl wrote: > Hi all, > > can I get reviews for this change that removes the "Allocation of old > generation of Java heap on alternate memory devices" functionality introduced > with JDK 12 with > [JDK-8202286](https://bugs.openjdk.java.net/browse

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 05:12:21 GMT, David Holmes wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> resolve more robehn and coleenp comments. > > One change requested in relation to use of jint instead of size_t.

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 13:50:08 GMT, Coleen Phillimore wrote: >> src/hotspot/share/runtime/synchronizer.cpp line 246: >> >>> 244: // >>> 245: // Start the ceiling with the estimate for one thread: >>> 246: jint _in_use_list_ceiling = AvgMonitorsPerThreadEstimate; >> >> Why is this a jint when you

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v4]

2020-11-11 Thread Igor Ignatyev
On Wed, 11 Nov 2020 11:24:08 GMT, Lin Zang wrote: >> The implementation of jmap tool depends on the implementation of object >> iteration by different GC heap. >> This patch extend the BasicJMapTest to cover differet GC Heap. > > Lin Zang has updated the pull request incrementally with one addit

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 08:26:14 GMT, Robbin Ehn wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> resolve more robehn and coleenp comments. > > src/hotspot/share/runtime/synchronizer.cpp line 1226: > >> 1224:

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Daniel D . Daugherty
On Wed, 11 Nov 2020 04:50:52 GMT, David Holmes wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> resolve more robehn and coleenp comments. > > src/hotspot/share/runtime/synchronizer.cpp line 153: > >> 151:

Re: RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality

2020-11-11 Thread Thomas Stüfe
Hi Thomas, I think this makes sense. Just a question, how are your thoughts about JEP316? Do you consider AllocateHeapAt similarly unused? Cheers, Thomas On Wed, Nov 11, 2020 at 2:17 PM Thomas Schatzl wrote: > Hi all, > > can I get reviews for this change that removes the "Allocation of old

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Coleen Phillimore
On Tue, 10 Nov 2020 23:24:24 GMT, Daniel D. Daugherty wrote: >> Changes from @fisk and @dcubed-ojdk to: >> >> - simplify ObjectMonitor list management >> - get rid of Type-Stable Memory (TSM) >> >> This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new >> regressions. >> Aurora Pe

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Coleen Phillimore
On Wed, 11 Nov 2020 05:11:10 GMT, David Holmes wrote: >> Daniel D. Daugherty has updated the pull request incrementally with one >> additional commit since the last revision: >> >> resolve more robehn and coleenp comments. > > src/hotspot/share/runtime/synchronizer.cpp line 246: > >> 244: //

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Coleen Phillimore
On Tue, 10 Nov 2020 23:24:24 GMT, Daniel D. Daugherty wrote: >> Changes from @fisk and @dcubed-ojdk to: >> >> - simplify ObjectMonitor list management >> - get rid of Type-Stable Memory (TSM) >> >> This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new >> regressions. >> Aurora Pe

RFR: 8256181: Remove Allocation of old generation on alternate memory devices functionality

2020-11-11 Thread Thomas Schatzl
Hi all, can I get reviews for this change that removes the "Allocation of old generation of Java heap on alternate memory devices" functionality introduced with JDK 12 with [JDK-8202286](https://bugs.openjdk.java.net/browse/JDK-8202286) due to being - not used by anyone - not maintained by a

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v3]

2020-11-11 Thread Lin Zang
On Wed, 11 Nov 2020 11:13:29 GMT, Aleksey Shipilev wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Refine the test configuration. > > I think it is fine to omit Epsilon from this testing. There is another trick > you

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v4]

2020-11-11 Thread Lin Zang
> The implementation of jmap tool depends on the implementation of object > iteration by different GC heap. > This patch extend the BasicJMapTest to cover differet GC Heap. Lin Zang has updated the pull request incrementally with one additional commit since the last revision: Add test id ---

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v3]

2020-11-11 Thread Aleksey Shipilev
On Wed, 11 Nov 2020 10:48:12 GMT, Lin Zang wrote: >> The implementation of jmap tool depends on the implementation of object >> iteration by different GC heap. >> This patch extend the BasicJMapTest to cover differet GC Heap. > > Lin Zang has updated the pull request incrementally with one addit

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v3]

2020-11-11 Thread Lin Zang
On Tue, 10 Nov 2020 17:50:26 GMT, Aleksey Shipilev wrote: >> Lin Zang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Refine the test configuration. > > I believe this would fail when some GCs are not available. For example, in > Minima

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v3]

2020-11-11 Thread Lin Zang
> The implementation of jmap tool depends on the implementation of object > iteration by different GC heap. > This patch extend the BasicJMapTest to cover differet GC Heap. Lin Zang has updated the pull request incrementally with one additional commit since the last revision: Refine the test

Re: RFR: 8253525: Implement getInstanceSize/sizeOf intrinsics [v7]

2020-11-11 Thread Aleksey Shipilev
> This is fork off the SizeOf JEP, JDK-8249196. There is already the entry > point in JDK that can use the intrinsic like this: > `Instrumentation.getInstanceSize`. Therefore, we can implement the C1/C2 > intrinsic now, hook it up to `Instrumentation`, and let the tools use that > fast path tod

Re: RFR: 8255982: Extend BasicJMapTest to test with different GC Heap [v2]

2020-11-11 Thread Lin Zang
> The implementation of jmap tool depends on the implementation of object > iteration by different GC heap. > This patch extend the BasicJMapTest to cover differet GC Heap. Lin Zang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes th

Re: RFR: 8253064: monitor list simplifications and getting rid of TSM [v6]

2020-11-11 Thread Robbin Ehn
On Tue, 10 Nov 2020 23:24:24 GMT, Daniel D. Daugherty wrote: >> Changes from @fisk and @dcubed-ojdk to: >> >> - simplify ObjectMonitor list management >> - get rid of Type-Stable Memory (TSM) >> >> This change has been tested with Mach5 Tier[1-3],4,5,6,7,8; no new >> regressions. >> Aurora Pe