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

2023-09-21 Thread Man Cao
On Wed, 20 Sep 2023 00:39:44 GMT, David Holmes wrote: >> Jonathan Joo has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix build issues > > src/hotspot/share/gc/shared/collectedHeap.cpp line 161: > >> 159: } >> 160: >> 161: void Collect

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

2023-10-11 Thread Man Cao
On Thu, 5 Oct 2023 03:00:36 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: > > add comment and change if defined to ifdef Changes re

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

2023-10-11 Thread Man Cao
On Fri, 15 Sep 2023 01:27:04 GMT, David Holmes wrote: >> Jonathan Joo has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Clean up test and improve total counter name > > src/hotspot/share/runtime/perfData.hpp line 64: > >> 62: COM_THREAD

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

2023-10-11 Thread Man Cao
On Thu, 5 Oct 2023 03:00:36 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: > > add comment and change if defined to ifdef test/jdk/s

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

2023-10-25 Thread Man Cao
On Wed, 25 Oct 2023 20:37:46 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: > > Use 64-bit atomic add for incrementing counters The

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

2023-10-26 Thread Man Cao
On Thu, 26 Oct 2023 14:31:23 GMT, Volker Simonis wrote: >> src/hotspot/share/gc/g1/g1ConcurrentMarkThread.cpp line 138: >> >>> 136: _vtime_accum = (os::elapsedVTime() - _vtime_start); >>> 137: >>> 138: cm()->update_concurrent_mark_threads_cpu_time(); >> >> Is there some overlapping btw

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

2023-10-26 Thread Man Cao
On Thu, 26 Oct 2023 21:01:53 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: > > Remove StringDedup from GC thread list Marked as rev

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

2023-10-26 Thread Man Cao
On Thu, 26 Oct 2023 20:33:31 GMT, Man Cao wrote: >> @albertnetymk, the hsperf counters are a non-public API and the new counters >> have been added to the non-standard `sun.threads.cpu_time` name space which >> is "[unstable and >> unsupported](https:

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

2023-10-30 Thread Man Cao
On Thu, 26 Oct 2023 21:01:53 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: > > Remove StringDedup from GC thread list > Okay, these

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

2023-10-31 Thread Man Cao
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 LGTM still, thanks! -

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

2023-11-06 Thread Man Cao
On Mon, 6 Nov 2023 12:11:47 GMT, Stefan Johansson wrote: > I played around a bit instead of trying to explain what I mean and this is > not very polished, but I was thinking something like this: > https://github.com/openjdk/jdk/compare/pr/15082...kstefanj:jdk:pull/15082-idea > > What do you thi

Re: RFR: 8319935: Ensure only one JvmtiThreadState is create for one JavaThread associated with attached native thread

2023-11-13 Thread Man Cao
On Mon, 13 Nov 2023 21:52:22 GMT, Jiangli Zhou wrote: > Please review JvmtiThreadState::state_for_while_locked change to handle the > state->get_thread_oop() null case. Please see > https://bugs.openjdk.org/browse/JDK-8319935 for details. Changes requested by manc (Committer). src/hotspot/sha

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

2023-11-15 Thread Man Cao
On Wed, 15 Nov 2023 23:50:02 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: > > Fix whitespace Overall looks good, a few details cou

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

2023-11-15 Thread Man Cao
On Tue, 14 Nov 2023 21:33:37 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: > > Update parallel workers time after Remark src/hotspo

Re: RFR: 8319935: Ensure only one JvmtiThreadState is create for one JavaThread associated with attached native thread [v2]

2023-11-16 Thread Man Cao
On Tue, 14 Nov 2023 20:57:09 GMT, Jiangli Zhou wrote: >> Please review JvmtiThreadState::state_for_while_locked change to handle the >> state->get_thread_oop() null case. Please see >> https://bugs.openjdk.org/browse/JDK-8319935 for details. > > Jiangli Zhou has updated the pull request increme

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

2023-11-21 Thread Man Cao
On Tue, 21 Nov 2023 21:42:39 GMT, Jonathan Joo wrote: >> 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: > > - Update memory tracking type for CPUTimeCounters >

Re: RFR: 8319935: Ensure only one JvmtiThreadState is created for one JavaThread associated with attached native thread [v5]

2023-11-28 Thread Man Cao
On Wed, 22 Nov 2023 22:40:20 GMT, Jiangli Zhou wrote: >> Please review JvmtiThreadState::state_for_while_locked change to handle the >> state->get_thread_oop() null case. Please see >> https://bugs.openjdk.org/browse/JDK-8319935 for details. > > Jiangli Zhou has updated the pull request increme

Re: RFR: 8319935: Ensure only one JvmtiThreadState is created for one JavaThread associated with attached native thread [v5]

2023-11-28 Thread Man Cao
On Tue, 28 Nov 2023 20:38:55 GMT, Serguei Spitsyn wrote: >> @sspitsyn For the above suggestions, it seems cleaner/safer to handle the >> clean-ups in a separate RFE with full testing including the vthread cases. >> There are additional comments in >> https://github.com/openjdk/jdk/pull/16642#i

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

2023-11-30 Thread Man Cao
On Thu, 30 Nov 2023 21:17:14 GMT, Jonathan Joo wrote: >> Me and Albert just spoke and we do see the problem that two concurrent >> threads could be executing the closure at the same time. So if having a >> total counter we need to sync the updates. But when talking we started to >> question ho

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

2023-11-30 Thread Man Cao
On Thu, 30 Nov 2023 09:41:55 GMT, Stefan Johansson wrote: >> Jonathan Joo has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add missing include > > src/hotspot/share/runtime/cpuTimeCounters.hpp line 59: > >> 57: NONCOPYABLE(CPUTimeCount

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

2023-12-01 Thread Man Cao
On Fri, 1 Dec 2023 10:21:31 GMT, Stefan Johansson wrote: >> Right, see @simonis 's comments at >> https://github.com/openjdk/jdk/pull/15082#pullrequestreview-1613868256, >> https://github.com/openjdk/jdk/pull/15082#discussion_r1321703912. >> >> I initially had similar thought that `gc_total` i

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

2023-12-04 Thread Man Cao
On Mon, 4 Dec 2023 13:07:15 GMT, Stefan Johansson wrote: >> In the interest of the RDP1 deadline, should we leave improving the sync >> issues with gc_total to a separate RFE? (Especially given that a "correct" >> design may take some time to come up with, and that gc_total being slightly >> o

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

2023-12-04 Thread Man Cao
On Sat, 2 Dec 2023 07:37:26 GMT, Jonathan Joo wrote: >> 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: > > - Only create CPUTimeCounters if supported > - Ensure

Re: RFR: 8327645: Serial heap dump should not consume double amount of disk space [v2]

2024-03-08 Thread Man Cao
On Fri, 8 Mar 2024 03:35:16 GMT, Alex Menkov wrote: >> Man Cao has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix failure under -XX:+UseSerialGC > > Heap dumper was switched to always use segm

Re: RFR: 8327645: Serial heap dump should not consume double amount of disk space [v3]

2024-04-09 Thread Man Cao
isk space and need to dump to a network socket. > > Tested: > Stress tested with a fastdebug build with tests in > `hotspot/jtreg/serviceability/dcmd/gc/HeapDump*`. > > -Man Man Cao has updated the pull request with a new target base due to a merge or a rebase. The pull reque