Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v4]

2024-10-17 Thread Serguei Spitsyn
> This fixes a problem in the VTMS (Virtual Thread Mount State) transition > frames hiding mechanism. > Please, see a fix description in the first comment. > > Testing: > - Verified with new test `vthread/CheckHiddenFrames` > - Mach5 tiers 1-6 are passed Serguei Spitsyn has updated the pull re

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v5]

2024-10-17 Thread Serguei Spitsyn
> This fixes a problem in the VTMS (Virtual Thread Mount State) transition > frames hiding mechanism. > Please, see a fix description in the first comment. > > Testing: > - Verified with new test `vthread/CheckHiddenFrames` > - Mach5 tiers 1-6 are passed Serguei Spitsyn has updated the pull re

Integrated: 8338851: Hoist os::Posix::realpath() to os::realpath() and implement on Windows

2024-10-17 Thread Simon Tooke
On Thu, 22 Aug 2024 18:36:39 GMT, Simon Tooke wrote: > This PR changes the status of realpath() from a Posix-specific API to a > globally available API, i.e. adding it to the "Hotspot Porting API". Code > would refer to os::realpath() instead of os::Posix::realpath(). > > This requires a Wind

Re: RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v43]

2024-10-17 Thread Hamlin Li
On Wed, 16 Oct 2024 13:42:42 GMT, Roman Kennke wrote: >> We're seeing failures in our nightly testing for tests >> runtime/cds/appcds/SharedBaseAddress.java and >> runtime/cds/SharedBaseAddress.java which I'm tracking in this bug >> [JDK-8340212](https://bugs.openjdk.org/browse/JDK-8340212) >>

Re: RFR: 8338851: Hoist os::Posix::realpath() to os::realpath() and implement on Windows [v22]

2024-10-17 Thread duke
On Wed, 16 Oct 2024 13:17:48 GMT, Simon Tooke wrote: >> This PR changes the status of realpath() from a Posix-specific API to a >> globally available API, i.e. adding it to the "Hotspot Porting API". Code >> would refer to os::realpath() instead of os::Posix::realpath(). >> >> This requires a

Integrated: 8342338: Remove redundant IIOPURLTest.java

2024-10-17 Thread Kevin Walls
On Wed, 16 Oct 2024 11:14:44 GMT, Kevin Walls wrote: > This test has been "skipping" since IIOP was removed (jdk 9). Should be > removed, no impact. This pull request has now been integrated. Changeset: 8862ca07 Author:Kevin Walls URL: https://git.openjdk.org/jdk/commit/8862ca076f

Re: RFR: 8342338: Remove redundant IIOPURLTest.java

2024-10-17 Thread Kevin Walls
On Wed, 16 Oct 2024 11:14:44 GMT, Kevin Walls wrote: > This test has been "skipping" since IIOP was removed (jdk 9). Should be > removed, no impact. Thanks for the reviews! - PR Comment: https://git.openjdk.org/jdk/pull/21534#issuecomment-2418837171

Re: RFR: 8339871: serviceability/sa/TestDebugInfoDecode.java should be driver [v2]

2024-10-17 Thread duke
On Wed, 16 Oct 2024 10:30:48 GMT, Ramkumar Sunderbabu wrote: >> Passing "-Xmx1g -Xcomp" to the LingeredApp. >> Testing: tier1 > > Ramkumar Sunderbabu has updated the pull request incrementally with one > additional commit since the last revision: > > change othervm to driver, remove -Xmx1g

Re: RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v46]

2024-10-17 Thread Thomas Schatzl
On Thu, 17 Oct 2024 10:57:24 GMT, Roman Kennke wrote: >> This is the main body of the JEP 450: Compact Object Headers (Experimental). >> >> It is also a follow-up to #20640, which now also includes (and supersedes) >> #20603 and #20605, plus the Tiny Class-Pointers parts that have been >> prev

Re: RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager

2024-10-17 Thread Weijun Wang
On Wed, 16 Oct 2024 20:51:49 GMT, Sean Mullan wrote: >> src/jdk.security.jgss/share/classes/com/sun/security/jgss/InquireSecContextPermission.java >> line 31: >> >>> 29: >>> 30: /** >>> 31: * This class is for GSS security context permissions. >> >> Why is the content of _this_ class modifie

Re: RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v46]

2024-10-17 Thread Yudi Zheng
On Thu, 17 Oct 2024 10:57:24 GMT, Roman Kennke wrote: >> This is the main body of the JEP 450: Compact Object Headers (Experimental). >> >> It is also a follow-up to #20640, which now also includes (and supersedes) >> #20603 and #20605, plus the Tiny Class-Pointers parts that have been >> prev

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v3]

2024-10-17 Thread Alan Bateman
On Wed, 16 Oct 2024 17:01:38 GMT, Serguei Spitsyn wrote: >> No issue from me on moving the notifications to the run method. My comment >> was more for the JvmtiMountTransition's class description as it's not easy >> to audit the use of this annotation. > > Got it, thanks. The updated changes t

Re: RFR: 8305895: Implement JEP 450: Compact Object Headers (Experimental) [v46]

2024-10-17 Thread Roman Kennke
> This is the main body of the JEP 450: Compact Object Headers (Experimental). > > It is also a follow-up to #20640, which now also includes (and supersedes) > #20603 and #20605, plus the Tiny Class-Pointers parts that have been > previously missing. > > Main changes: > - Introduction of the (

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 23:17:48 GMT, Serguei Spitsyn wrote: >> Agreed, thanks. >> The interesting suspend point is in the `ThreadInVMfromJava()` destructor >> that is a part of the `JRT_BLOCK` macro. I've pushed the fix now. > >> I'm not sure what motivated the change to add old_notify_method. May

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Chris Plummer
On Thu, 17 Oct 2024 20:27:13 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review test tweaks: add @bug tag; a reliability update > > test/hotspot/jtreg/serviceability/jvmti/events/NotifyFrame

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Alex Menkov
On Thu, 17 Oct 2024 02:33:01 GMT, Serguei Spitsyn wrote: >> There is a race between JVMTI NotifyFramePop function and FramePop event >> posting code. >> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with >> depth 0 is requested by NotifyFramePop at the time when the targe

Re: RFR: 8337511: Implement JEP-404: Generational Shenandoah (Experimental) [v3]

2024-10-17 Thread William Kemper
On Fri, 11 Oct 2024 21:21:57 GMT, William Kemper wrote: >> src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp line 396: >> >>> 394: } >>> 395: >>> 396: inline bool ShenandoahHeap::is_old(oop obj) const { >> >> What is the difference between this method and the above is_in_old()? Why >>

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Alex Menkov
On Thu, 17 Oct 2024 21:18:23 GMT, Chris Plummer wrote: >> test/hotspot/jtreg/serviceability/jvmti/events/NotifyFramePopStressTest/libNotifyFramePopStressTest.cpp >> line 171: >> >>> 169: } else { >>> 170: char* old_notify_method = (char*)last_notify_method; >>> 171: last_notify_method

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Chris Plummer
On Thu, 17 Oct 2024 21:50:39 GMT, Alex Menkov wrote: >> Yes, this is all very synchronous. The control thread suspends the thread, >> we call NotifyFramePop on the thread, the control thread resumes the thread >> and then waits for confirmation of the FRAME_POP before repeating the >> process.

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v7]

2024-10-17 Thread Serguei Spitsyn
> There is a race between JVMTI NotifyFramePop function and FramePop event > posting code. > The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with > depth 0 is requested by NotifyFramePop at the time when the target frame is > in exit epilogue, and MethodExit/FramePop events

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 21:58:18 GMT, Chris Plummer wrote: >> Control thread waits until pop_count is updated and FramePop callback >> updates it at the beginning, so control thread can start next iteration >> (i.e. call SuspentThread) before FramePop is completed. >> But my understanding that Susp

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v7]

2024-10-17 Thread Chris Plummer
On Thu, 17 Oct 2024 23:11:22 GMT, Serguei Spitsyn wrote: >> There is a race between JVMTI NotifyFramePop function and FramePop event >> posting code. >> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with >> depth 0 is requested by NotifyFramePop at the time when the targe

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 23:11:34 GMT, Serguei Spitsyn wrote: >> Actually I'm not so sure of your last statement. I think while in the >> FramePop callback the thread can do things that allow it to be suspended. So >> if the control thread has already detected that FramePop callback has been >> cal

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v7]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 23:14:50 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> no need in raw monitor - removed > > test/hotspot/jtreg/serviceability/jvmti/events/NotifyFramePopStressTest/libNot

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v6]

2024-10-17 Thread Serguei Spitsyn
> There is a race between JVMTI NotifyFramePop function and FramePop event > posting code. > The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with > depth 0 is requested by NotifyFramePop at the time when the target frame is > in exit epilogue, and MethodExit/FramePop events

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 20:08:44 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review test tweaks: add @bug tag; a reliability update > > test/hotspot/jtreg/serviceability/jvmti/events/NotifyFrame

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v9]

2024-10-17 Thread Serguei Spitsyn
> There is a race between JVMTI NotifyFramePop function and FramePop event > posting code. > The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with > depth 0 is requested by NotifyFramePop at the time when the target frame is > in exit epilogue, and MethodExit/FramePop events

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v8]

2024-10-17 Thread Serguei Spitsyn
On Fri, 18 Oct 2024 00:40:38 GMT, Chris Plummer wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: move pop_count++ to the end of FramePop handler for more safety > > test/hotspot/jtreg/serviceability/jvmti

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v9]

2024-10-17 Thread Chris Plummer
On Fri, 18 Oct 2024 01:11:32 GMT, Serguei Spitsyn wrote: >> There is a race between JVMTI NotifyFramePop function and FramePop event >> posting code. >> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with >> depth 0 is requested by NotifyFramePop at the time when the targe

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v8]

2024-10-17 Thread Serguei Spitsyn
> There is a race between JVMTI NotifyFramePop function and FramePop event > posting code. > The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with > depth 0 is requested by NotifyFramePop at the time when the target frame is > in exit epilogue, and MethodExit/FramePop events

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v8]

2024-10-17 Thread Chris Plummer
On Fri, 18 Oct 2024 00:28:51 GMT, Serguei Spitsyn wrote: >> There is a race between JVMTI NotifyFramePop function and FramePop event >> posting code. >> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with >> depth 0 is requested by NotifyFramePop at the time when the targe

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v6]

2024-10-17 Thread Serguei Spitsyn
> This fixes a problem in the VTMS (Virtual Thread Mount State) transition > frames hiding mechanism. > Please, see a fix description in the first comment. > > Testing: > - Verified with new test `vthread/CheckHiddenFrames` > - Mach5 tiers 1-6 are passed Serguei Spitsyn has updated the pull re

Re: RFR: 8341692: Implement JEP 490: ZGC: Remove the Non-Generational Mode [v4]

2024-10-17 Thread Axel Boldt-Christmas
> This is the implementation task for `JEP 490: ZGC: Remove the > Non-Generational Mode`. See the JEP for details. > [JDK-8335850](https://bugs.openjdk.org/browse/JDK-8335850) Axel Boldt-Christmas has updated the pull request with a new target base due to a merge or a rebase. The pull request n

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v4]

2024-10-17 Thread Serguei Spitsyn
On Wed, 16 Oct 2024 18:25:46 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> review: resolved comments from Alex and Chris > > test/hotspot/jtreg/serviceability/jvmti/events/NotifyFramePopStress

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v4]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 00:57:12 GMT, Serguei Spitsyn wrote: >>> Have you verified that the test still detects the bug? In other words, if >>> you disabled the fix, does the test fail? I was just a bit worried that >>> with all the changes to it, it might not be still be properly detecting the >>>

Re: RFR: 8340698: JVMTI FRAME_POP event is sometimes missed if NotifyFramePop is called as a method is returning [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 02:33:01 GMT, Serguei Spitsyn wrote: >> There is a race between JVMTI NotifyFramePop function and FramePop event >> posting code. >> The fix is to return JVMTI_ERROR_OPAQUE_FRAME if if a FramePop event with >> depth 0 is requested by NotifyFramePop at the time when the targe

Re: RFR: 8337276: jcmd man page update for PID in output filenames [v3]

2024-10-17 Thread Kevin Walls
> Man page update for jcmd. > > Add updates for the filename options/arguments affected by: > 8334492: DiagnosticCommands (jcmd) should accept %p in output filenames and > substitute PID > > Also: > In the initial "command" summary, remove the text about "If the pid is 0.." > as it is completel

Integrated: 8339871: serviceability/sa/TestDebugInfoDecode.java should be driver

2024-10-17 Thread Ramkumar Sunderbabu
On Tue, 15 Oct 2024 10:12:21 GMT, Ramkumar Sunderbabu wrote: > Passing "-Xmx1g -Xcomp" to the LingeredApp. > Testing: tier1 This pull request has now been integrated. Changeset: d915ac2a Author:Ramkumar Sunderbabu Committer: Leonid Mesnik URL: https://git.openjdk.org/jdk/commit/d9

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v3]

2024-10-17 Thread Serguei Spitsyn
On Tue, 15 Oct 2024 21:26:26 GMT, Alex Menkov wrote: >> Serguei Spitsyn has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Disallow NotifyFramePop for >> enter/enter0/VirtualThread.run/VThreadContinuation.run > > src/hotspot/share/prims/jv

Re: RFR: 8341273: JVMTI is not properly hiding some continuation related methods [v5]

2024-10-17 Thread Serguei Spitsyn
On Thu, 17 Oct 2024 09:16:31 GMT, Serguei Spitsyn wrote: >> This fixes a problem in the VTMS (Virtual Thread Mount State) transition >> frames hiding mechanism. >> Please, see a fix description in the first comment. >> >> Testing: >> - Verified with new test `vthread/CheckHiddenFrames` >> - M

Re: RFR: 8337276: jcmd man page update for PID in output filenames [v2]

2024-10-17 Thread Kevin Walls
On Wed, 16 Oct 2024 22:15:05 GMT, Chris Plummer wrote: >> Kevin Walls 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 three additional >> commit

Re: RFR: 8338411: Implement JEP 486: Permanently Disable the Security Manager

2024-10-17 Thread Sean Mullan
On Thu, 17 Oct 2024 11:24:56 GMT, Weijun Wang wrote: >> In general, I tried to remove any text from the Permission classes that >> described behavior if the permissions were granted. So in the above I >> removed the text because it had words like "protect" and "accessed" and >> referred to `co