Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v35]

2023-11-01 Thread Jonathan Joo
On Wed, 1 Nov 2023 09:34:01 GMT, Stefan Johansson wrote: >> Jonathan Joo has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Replace NULL with nullptr > > Sorry for being a bit late to this PR. I think the addition of CPU time > tracking

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v37]

2023-11-01 Thread Jonathan Joo
> 8315149: Add hsperf counters for CPU time of internal GC threads Jonathan Joo has updated the pull request incrementally with two additional commits since the last revision: - revert gitignore change - Attempt to fix broken test - Changes: - all:

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v36]

2023-11-01 Thread Jonathan Joo
> 8315149: Add hsperf counters for CPU time of internal GC threads Jonathan Joo has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 36 additional commits

RFR: JDK-8319053: Segment dump files remain after parallel heap dump on Windows

2023-11-01 Thread Alex Menkov
Segment file is closed from DumpWriter dtor. On Unix systems `remove` can delete an opened file, on Windows it fails with "access denied". The fix destroys DumpWriter objects for segment files after all data are dumped - Commit messages: - jcheck - fix - fix Changes:

RFR: 8319244: implement JVMTI handshakes support for virtual threads

2023-11-01 Thread Serguei Spitsyn
The handshakes support for virtual threads is needed to simplify the JVMTI implementation for virtual threads. There is a significant duplication in the JVMTI code to differentiate code intended to support platform, virtual threads or both. The handshakes are unified, so it is enough to define

RFR: 8319238: JMX ThreadPoolAccTest.java is too verbose and should fail before timeout

2023-11-01 Thread Kevin Walls
Discovered while testing changes that made this test fail. The test failure is hard to diagnose as it logs and retries at full speed, possibly forever, until timeout. This can hit a log file limit. We can save thousands of lines of text being printed when the test runs normally and

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v7]

2023-11-01 Thread Gerard Ziemski
On Wed, 1 Nov 2023 10:09:40 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 10:13:03 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 105: >> >>> 103: _ranges[_count - 1].to = to; >>> 104: return true; >>> 105: } >> >> I'm pretty sure that the virtual memory tracker already gives you the >> minimal set of

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Wed, 1 Nov 2023 10:01:43 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 105: > >> 103: _ranges[_count - 1].to = to;

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 09:52:24 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 99: >> >>> 97: } >>> 98: >>> 99: bool add(const void* from, const void* to, MEMFLAGS f) { >> >> Please mention that we're `add`ing in sorted order, that is that `forall R >> \in _ranges:

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v7]

2023-11-01 Thread Thomas Stuefe
> Analysts and supporters often use /proc/xx/maps to make sense of the memory > footprint of a process. > > Interpreting the memory map correctly can help when used as a complement to > other tools (e.g. NMT). There even exist tools out there that attempt to > annotate the process memory map

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Wed, 1 Nov 2023 09:48:39 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 99: > >> 97: } >> 98: >> 99: bool add(const

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Sat, 28 Oct 2023 13:04:05 GMT, Thomas Stuefe wrote: >> Analysts and supporters often use /proc/xx/maps to make sense of the memory >> footprint of a process. >> >> Interpreting the memory map correctly can help when used as a complement to >> other tools (e.g. NMT). There even exist tools

Re: RFR: 8318706: Implementation of JDK-8276094: JEP 423: Region Pinning for G1 [v5]

2023-11-01 Thread Ivan Walulya
On Tue, 31 Oct 2023 19:14:13 GMT, Thomas Schatzl wrote: >> The JEP covers the idea very well, so I'm only covering some implementation >> details here: >> >> * regions get a "pin count" (reference count). As long as it is non-zero, we >> conservatively never reclaim that region even if there

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 07:32:23 GMT, Thomas Stuefe wrote: >> src/hotspot/share/nmt/memMapPrinter.cpp line 79: >> >>> 77: const void* const min = MAX2(from1, from2); >>> 78: const void* const max = MIN2(to1, to2); >>> 79: return min < max; >> >> I had to rewrite it as: >> >> `return

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Johan Sjölen
On Wed, 1 Nov 2023 09:37:22 GMT, Johan Sjölen wrote: >> I'll do the former, that is clearer I agree, but leave the latter out (I >> assume with the macro you mean add it to globalDefenitions.hpp). >> >> I fear that a lot of bikeshedding and general discussions would start, and >> to do it

Re: RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v35]

2023-11-01 Thread Stefan Johansson
On Tue, 31 Oct 2023 04:23:13 GMT, Jonathan Joo wrote: >> 8315149: Add hsperf counters for CPU time of internal GC threads > > Jonathan Joo has updated the pull request incrementally with one additional > commit since the last revision: > > Replace NULL with nullptr Sorry for being a bit

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Tue, 31 Oct 2023 17:08:15 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/share/nmt/memMapPrinter.cpp line 79: > >> 77: const void* const min =

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Tue, 31 Oct 2023 16:58:19 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 59: > >> 57: void

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Mon, 30 Oct 2023 17:31:30 GMT, Gerard Ziemski wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 83: > >> 81: char line[linesize]; >>

Re: RFR: JDK-8318636: Add jcmd to print annotated process memory map [v6]

2023-11-01 Thread Thomas Stuefe
On Mon, 30 Oct 2023 10:29:56 GMT, Johan Sjölen wrote: >> Thomas Stuefe has updated the pull request incrementally with one additional >> commit since the last revision: >> >> fix various builds > > src/hotspot/os/linux/memMapPrinter_linux.cpp line 80: > >> 78: FILE* f =