Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-22 Thread Sergey Chernyshev
On Fri, 22 Nov 2024 16:48:04 GMT, Severin Gehwolf wrote: > The added code in `CgroupUtil::adjust_controller` runs for cg v1 and cg v2 > when path adjustment is deemed needed. So I'm not clear why it's needed for > cg v2 It looks like there's no way to see at this point, if we are in cgroup v1

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

2024-11-22 Thread William Kemper
> This PR merges JEP 404, a generational mode for the Shenandoah garbage > collector. The JEP can be viewed here: https://openjdk.org/jeps/404. We would > like to target JDK24 with this PR. William Kemper has updated the pull request with a new target base due to a merge or a rebase. The pull r

Re: RFR: 8344394: Remove SecurityManager and related calls from java.management.rmi [v2]

2024-11-22 Thread Alex Menkov
On Fri, 22 Nov 2024 19:19:37 GMT, Kevin Walls wrote: >> Remove redundant SecurityManager, AccessController references >> (following on from JDK-8338411: Implement JEP 486: Permanently Disable the >> Security Manager). > > Kevin Walls has updated the pull request incrementally with one additional

Re: RFR: 8341436: containers/docker/TestJcmdWithSideCar.java takes needlessly long to run [v3]

2024-11-22 Thread Leonid Mesnik
On Mon, 7 Oct 2024 19:37:51 GMT, Sebastian Lövdahl wrote: >> The fix is twofold. >> >> 1. Stop the main container after an iteration is done. The main container is >> started with its runtime defined as 120 seconds, which means that each >> iteration takes 120 seconds. In reality, one iteratio

Re: RFR: 8334493: Remove SecurityManager Permissions infrastructure from DiagnosticCommands

2024-11-22 Thread Leonid Mesnik
On Fri, 22 Nov 2024 09:14:30 GMT, Kevin Walls wrote: > Remove redundant SecurityManager Permission references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). Marked as reviewed by lmesnik (Reviewer). - PR Review: https://git.openj

Integrated: 8343741: SA jstack --mixed should print information about VM locks

2024-11-22 Thread Leonid Mesnik
On Fri, 15 Nov 2024 23:36:37 GMT, Leonid Mesnik wrote: > Hi > Could you please review the the fix that add locks information into SA jhsdb > stack --mixed output. > > Here is the motivation for this rfe and explanation why I add it into SA now. > > The information about current owners of Hotsp

Re: RFR: 8343741: SA jstack --mixed should print information about VM locks [v15]

2024-11-22 Thread Chris Plummer
On Thu, 21 Nov 2024 19:43:40 GMT, Leonid Mesnik wrote: >> Hi >> Could you please review the the fix that add locks information into SA jhsdb >> stack --mixed output. >> >> Here is the motivation for this rfe and explanation why I add it into SA now. >> >> The information about current owners o

Re: RFR: 8344394: Remove SecurityManager and related calls from java.management.rmi

2024-11-22 Thread Kevin Walls
On Wed, 20 Nov 2024 10:14:40 GMT, Kevin Walls wrote: > Remove redundant SecurityManager, AccessController references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). As mentioned in https://github.com/openjdk/jdk/pull/22100 java.management.rmi i

Re: RFR: 8344394: Remove SecurityManager and related calls from java.management.rmi [v2]

2024-11-22 Thread Kevin Walls
> Remove redundant SecurityManager, AccessController references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). Kevin Walls has updated the pull request incrementally with one additional commit since the last revision: Remove last import sun.r

Re: RFR: 8344181: Remove SecurityManager and related calls from jdk.management and jdk.management.agent [v5]

2024-11-22 Thread Alex Menkov
On Thu, 21 Nov 2024 10:17:36 GMT, Kevin Walls wrote: >> Remove redundant SecurityManager, AccessController references >> (following on from JDK-8338411: Implement JEP 486: Permanently Disable the >> Security Manager). >> >> src/jdk.management/share/classes/com/sun/management/internal/GarbageCol

Re: RFR: 8341481: [perf] vframeStreamCommon constructor may be optimized

2024-11-22 Thread Derek White
On Sat, 16 Nov 2024 00:20:10 GMT, Vladimir Ivanov wrote: > Optimize constructor to skip extra copy for registers. The tier1 tests are > OK. The Specjvm2008 benchmark reports ~1% improvement. @kimbarrett - Hi! This is the issue with copy constructors that I mentioned in the parking lot a while

Re: RFR: 8344394: Remove SecurityManager and related calls from java.management.rmi

2024-11-22 Thread Kevin Walls
On Wed, 20 Nov 2024 10:14:40 GMT, Kevin Walls wrote: > Remove redundant SecurityManager, AccessController references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). Thanks @dfuch - both comments relate to my note: There are still some Privileged

Integrated: 8343529: serviceability/sa/ClhsdbWhere.java fails AssertionFailure: Corrupted constant pool

2024-11-22 Thread Chris Plummer
On Thu, 14 Nov 2024 22:15:29 GMT, Chris Plummer wrote: > These two tests both do stack dumps with one or more active threads. This can > result in SA throwing an exception if the thread is in a bad state. However, > SA will still generate stack traces for all other threads, and the tests > sho

Re: RFR: 8343529: serviceability/sa/ClhsdbWhere.java fails AssertionFailure: Corrupted constant pool

2024-11-22 Thread Chris Plummer
On Thu, 14 Nov 2024 22:15:29 GMT, Chris Plummer wrote: > These two tests both do stack dumps with one or more active threads. This can > result in SA throwing an exception if the thread is in a bad state. However, > SA will still generate stack traces for all other threads, and the tests > sho

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-22 Thread Severin Gehwolf
On Fri, 22 Nov 2024 13:00:14 GMT, Sergey Chernyshev wrote: >>> Here, `limit` at line 64 is not stored as a possible lowest limit, so if >>> the inner group has lower limit than the outer group, it won't be detected >>> (cg v2 is affected too). >> >> Good spot! How about this to fix it? >> >>

Re: RFR: 8344394: Remove SecurityManager and related calls from java.management.rmi

2024-11-22 Thread Daniel Fuchs
On Wed, 20 Nov 2024 10:14:40 GMT, Kevin Walls wrote: > Remove redundant SecurityManager, AccessController references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). src/java.management.rmi/share/classes/javax/management/remote/rmi/RMIConnectionI

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v5]

2024-11-22 Thread Sergey Chernyshev
On Fri, 22 Nov 2024 10:57:31 GMT, Severin Gehwolf wrote: > One thing to note is that the new test requires root privileges (AFAIK). We > should skip the test if we are being run as root. The test works just like other docker tests, root privileges are not required. In systems that can't run do

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-22 Thread Sergey Chernyshev
On Fri, 22 Nov 2024 10:54:34 GMT, Severin Gehwolf wrote: > Good spot! How about this to fix it? > > ``` > jlong limit = mem->read_memory_limit_in_bytes(phys_mem); > jlong lowest_limit = limit < 0 ? phys_mem: limit; > ``` Make sense to me. > I'm worried about the added complexity. 1.) Is this

Re: RFR: 8334493: Remove SecurityManager Permissions infrastructure from DiagnosticCommands

2024-11-22 Thread Coleen Phillimore
On Fri, 22 Nov 2024 09:14:30 GMT, Kevin Walls wrote: > Remove redundant SecurityManager Permission references > (following on from JDK-8338411: Implement JEP 486: Permanently Disable the > Security Manager). Looks good! - Marked as reviewed by coleenp (Reviewer). PR Review: http

RFR: 8334493: Remove SecurityManager Permissions infrastructure from DiagnosticCommands

2024-11-22 Thread Kevin Walls
Remove redundant SecurityManager Permission references (following on from JDK-8338411: Implement JEP 486: Permanently Disable the Security Manager). - Commit messages: - 8334493: Remove SecurityManager Permissions infrastructure from DiagnosticCommands Changes: https://git.openjd

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-22 Thread Severin Gehwolf
On Fri, 22 Nov 2024 09:54:39 GMT, Sergey Chernyshev wrote: > Here, `limit` at line 64 is not stored as a possible lowest limit, so if the > inner group has lower limit than the outer group, it won't be detected (cg v2 > is affected too). Good spot! How about this to fix it? jlong limit = me

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v5]

2024-11-22 Thread Severin Gehwolf
On Fri, 22 Nov 2024 09:57:44 GMT, Sergey Chernyshev wrote: >> Cgroup V1 subsustem fails to initialize mounted controllers properly in >> certain cases, that may lead to controllers left undetected/inactive. We >> observed the behavior in CloudFoundry deployments, it affects also host >> syste

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v3]

2024-11-22 Thread Sergey Chernyshev
On Tue, 12 Nov 2024 23:29:47 GMT, Sergey Chernyshev wrote: >> src/java.base/linux/classes/jdk/internal/platform/cgroupv1/CgroupV1SubsystemController.java >> line 46: >> >>> 44: } >>> 45: >>> 46: public void setPath(String cgroupPath) { >> >> This should behave the same as Hotspot and

Re: RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path [v5]

2024-11-22 Thread Sergey Chernyshev
> Cgroup V1 subsustem fails to initialize mounted controllers properly in > certain cases, that may lead to controllers left undetected/inactive. We > observed the behavior in CloudFoundry deployments, it affects also host > systems. > > The relevant /proc/self/mountinfo line is > > > 2207 21