Re: RFR: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources [v2]

2024-11-22 Thread Roger Riggs
> Cleanup of doPrivileged in: > sun.util.calendar > sun.util.local/provider > sun.util.cldr > sun.util.resources Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Cleanups recommended by reviewer - Changes:

Withdrawn: 8337720: Test com/sun/jndi/dns/ConfigTests/Timeout.java fails with C1 mode by fastdebug binary

2024-11-22 Thread SendaoYan
On Fri, 2 Aug 2024 08:21:42 GMT, SendaoYan wrote: > Hi all, > The test `com/sun/jndi/dns/ConfigTests/Timeout.java` fails with `-Xcomp > -XX:TieredStopAtLevel=1` jvm options by fastdebug binary. In C1 mode and with > debug binary, the JIT comple time longger than -Xmixed and release binary is

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v14]

2024-11-22 Thread Brent Christian
On Fri, 22 Nov 2024 06:59:45 GMT, Aleksey Shipilev wrote: >> Would this be considered a benchmark of the GC's PhantomReference >> management, then - deciding that all the `PhantomCleanerRef`s are still >> reachable, perhaps? >> >> To measure `CleanableList`'s list manipulation at GC-time, a `T

Re: RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory

2024-11-22 Thread Brian Burkhalter
On Sat, 23 Nov 2024 01:03:25 GMT, ExE Boss wrote: >> Make the memory used by internal temporary direct buffers not count towards >> the upper limit on direct buffer memory. > > src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template line 77: > >> 75: static final boolean UNALIGNE

Re: RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory

2024-11-22 Thread ExE Boss
On Fri, 22 Nov 2024 23:44:11 GMT, Brian Burkhalter wrote: > Make the memory used by internal temporary direct buffers not count towards > the upper limit on direct buffer memory. src/java.base/share/classes/java/nio/Direct-X-Buffer.java.template line 77: > 75: static final boolean UNALIGNE

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: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources

2024-11-22 Thread Naoto Sato
On Fri, 22 Nov 2024 23:05:11 GMT, Roger Riggs wrote: > Cleanup of doPrivileged in: > sun.util.calendar > sun.util.local/provider > sun.util.cldr > sun.util.resources Thanks for the fix in this area. Looks good with a couple of minor nit src/java.base/share/classes/sun/util/resou

Re: RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory

2024-11-22 Thread Brian Burkhalter
On Fri, 22 Nov 2024 23:44:11 GMT, Brian Burkhalter wrote: > Make the memory used by internal temporary direct buffers not count towards > the upper limit on direct buffer memory. This change should also fix [JDK-8340728](https://bugs.openjdk.org/browse/JDK-8340728) and [JDK-8342849](https://b

RFR: 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory

2024-11-22 Thread Brian Burkhalter
Make the memory used by internal temporary direct buffers not count towards the upper limit on direct buffer memory. - Commit messages: - 8344882: (bf) Temporary direct buffers should not count against the upper limit on direct buffer memory Changes: https://git.openjdk.org/jdk/pu

Integrated: 8344587: Reduce number of "jdk.jpackage.internal" classes used from other packages

2024-11-22 Thread Alexey Semenyuk
On Tue, 19 Nov 2024 22:31:28 GMT, Alexey Semenyuk wrote: > Stop using internal AppImageFile, ApplicationLayout, and PackageFile classes > in the tests. Replace them with stubs. > > Stop referencing IOUtils class from XmlUtils and PathUtils classes. This pull request has now been integrated. C

RFR: 8343004: Adjust JAXP limits

2024-11-22 Thread Joe Wang
Adjust JAXP Limits. Limits are adjusted as specified in the CSR. Tests: Updated the config test with the new settings. Removed obsolete tests Bug6309988.java and Bug4674384_MAX_OCCURS_Test.java, and files used by these tests. These tests verified legacy properties. They came into the

RFR: 8344898: SM cleanup of java.base sun/util calendar, locale, cldr, and resources

2024-11-22 Thread Roger Riggs
Cleanup of doPrivileged in: sun.util.calendar sun.util.local/provider sun.util.cldr sun.util.resources - Commit messages: - 8344898: SM cleanup of java.base sun/util calendar, locale, clde, and resources Changes: https://git.openjdk.org/jdk/pull/22336/files Webrev

Re: RFR: 8319993: Update Unicode Data Files to 16.0.0 [v2]

2024-11-22 Thread Iris Clark
On Thu, 21 Nov 2024 20:42:57 GMT, Naoto Sato wrote: >> Updates the JDK to use the latest Unicode 16.0.0, which also updates the >> ICU4J along with it (8319992: Update ICU4J to Version 76.1). The >> corresponding CSR has already been approved. > > Naoto Sato has updated the pull request increme

Re: RFR: 8310996: Add JFR event for connect operations [v5]

2024-11-22 Thread Tim Prinzing
> Adds a JFR event for socket connect operations. > > Existing tests TestSocketEvents and TestSocketChannelEvents modified to also > check for connect events. Tim Prinzing has updated the pull request incrementally with one additional commit since the last revision: Added more tests for sock

Re: RFR: 8319993: Update Unicode Data Files to 16.0.0 [v2]

2024-11-22 Thread Joe Wang
On Thu, 21 Nov 2024 20:42:57 GMT, Naoto Sato wrote: >> Updates the JDK to use the latest Unicode 16.0.0, which also updates the >> ICU4J along with it (8319992: Update ICU4J to Version 76.1). The >> corresponding CSR has already been approved. > > Naoto Sato has updated the pull request increme

Re: RFR: 8344865: SM cleanup in sun/reflect/annotation [v2]

2024-11-22 Thread Chen Liang
On Fri, 22 Nov 2024 18:55:42 GMT, Roger Riggs wrote: >> Refactored doPrivileged and removed imports in sun.reflect.annotation >> classes: >> AnnotationInvocationHandler, AnnotationParser, AnnotationSupport, and >> AnnotationType. > > Roger Riggs has updated the pull request incrementally with o

Re: RFR: 8344865: SM cleanup in sun/reflect/annotation [v2]

2024-11-22 Thread Roger Riggs
> Refactored doPrivileged and removed imports in sun.reflect.annotation classes: > AnnotationInvocationHandler, AnnotationParser, AnnotationSupport, and > AnnotationType. Roger Riggs has updated the pull request incrementally with one additional commit since the last revision: Update copyrigh

Re: RFR: 8344865: SM cleanup in sun/reflect/annotation

2024-11-22 Thread Chen Liang
On Fri, 22 Nov 2024 17:35:27 GMT, Roger Riggs wrote: > Refactored doPrivileged and removed imports in sun.reflect.annotation classes: > AnnotationInvocationHandler, AnnotationParser, AnnotationSupport, and > AnnotationType. Marked as reviewed by liach (Reviewer). src/java.base/share/classes/su

Withdrawn: 8344867: Cleanup unneeded qualified exports to java.rmi

2024-11-22 Thread Roger Riggs
On Fri, 22 Nov 2024 18:02:51 GMT, Roger Riggs wrote: > java.base has a few exports to java.rmi that are no longer needed. > sun.security.util, sun.security.provider, and sun.reflect.misc. This pull request has been closed without being integrated. - PR: https://git.openjdk.org/jdk/

Re: RFR: 8344867: Cleanup unneeded qualified exports to java.rmi

2024-11-22 Thread Roger Riggs
On Fri, 22 Nov 2024 18:02:51 GMT, Roger Riggs wrote: > java.base has a few exports to java.rmi that are no longer needed. > sun.security.util, sun.security.provider, and sun.reflect.misc. To be handled with other SM updates in java.rmi. - PR Comment: https://git.openjdk.org/jdk/pul

java fails under a path with 4-byte UTF-8 character & JDK-8258246

2024-11-22 Thread Fabian Meumertzheim
I just observed that the java launcher fails to run (any) Java program on macOS if executed from a working directory that contains a character with a 4-byte UTF-8 encoding (say an emoji). While it does seem related to JDK-8258246, which was considered to be caused by more general issues with legac

Re: RFR: 8344525: Fix leftover ExceptionOccurred in java.base

2024-11-22 Thread Justin Lu
On Wed, 20 Nov 2024 03:02:39 GMT, Justin Lu wrote: > Please review this PR which removes the leftover ocurrences of incorrect JNI > `ExceptionOccurred(env)` usage within _java.base_. > > This PR also includes 9 cases of `if (ExceptionOccurred(env) == NULL)`. While > these occurrences are fine

Integrated: 8344525: Fix leftover ExceptionOccurred in java.base

2024-11-22 Thread Justin Lu
On Wed, 20 Nov 2024 03:02:39 GMT, Justin Lu wrote: > Please review this PR which removes the leftover ocurrences of incorrect JNI > `ExceptionOccurred(env)` usage within _java.base_. > > This PR also includes 9 cases of `if (ExceptionOccurred(env) == NULL)`. While > these occurrences are fine

Re: RFR: 8344867: Cleanup unneeded qualified exports to java.rmi

2024-11-22 Thread Alan Bateman
On Fri, 22 Nov 2024 18:02:51 GMT, Roger Riggs wrote: > java.base has a few exports to java.rmi that are no longer needed. > sun.security.util, sun.security.provider, and sun.reflect.misc. Good cleanup, assuming everything builds + tests. - Marked as reviewed by alanb (Reviewer). P

RFR: 8344867: Cleanup unneeded qualified exports to java.rmi

2024-11-22 Thread Roger Riggs
java.base has a few exports to java.rmi that are no longer needed. sun.security.util, sun.security.provider, and sun.reflect.misc. - Commit messages: - 8344867: Cleanup unneded qualified exports to java.rmi Changes: https://git.openjdk.org/jdk/pull/22329/files Webrev: https://webr

Re: RFR: 8343598: Since Checker can mark some preview elements as new even if bytecode reference is identical

2024-11-22 Thread Nizar Benalla
On Mon, 18 Nov 2024 17:06:03 GMT, Nizar Benalla wrote: > Can I get a review for this test only change to the Since Checker? > > I drop the distinction between classes and interfaces when generating ids and > use a generic name "class" to describe both, as to not consider classes that > get con

Integrated: 8343598: Since Checker can mark some preview elements as new even if bytecode reference is identical

2024-11-22 Thread Nizar Benalla
On Mon, 18 Nov 2024 17:06:03 GMT, Nizar Benalla wrote: > Can I get a review for this test only change to the Since Checker? > > I drop the distinction between classes and interfaces when generating ids and > use a generic name "class" to describe both, as to not consider classes that > get con

Re: RFR: 8319993: Update Unicode Data Files to 16.0.0 [v2]

2024-11-22 Thread Justin Lu
On Thu, 21 Nov 2024 20:42:57 GMT, Naoto Sato wrote: >> Updates the JDK to use the latest Unicode 16.0.0, which also updates the >> ICU4J along with it (8319992: Update ICU4J to Version 76.1). The >> corresponding CSR has already been approved. > > Naoto Sato has updated the pull request increme

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v15]

2024-11-22 Thread Aleksey Shipilev
On Fri, 22 Nov 2024 16:12:18 GMT, Viktor Klang wrote: >> Aleksey Shipilev 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 17 additional >> commi

RFR: 8344865: SM cleanup in sun/reflect/annotation

2024-11-22 Thread Roger Riggs
Refactored doPrivileged and removed imports in sun.reflect.annotation classes: AnnotationInvocationHandler, AnnotationParser, AnnotationSupport, and AnnotationType. - Commit messages: - 8344865: SM cleanup in sun/reflect/annotation Changes: https://git.openjdk.org/jdk/pull/22328/fi

Re: Q: Why is java.lang.Runtime non-final?

2024-11-22 Thread Eirik Bjørsnøs
On Fri, Nov 22, 2024 at 4:47 AM Joseph D. Darcy wrote: > PS it would be a "small matter of programming" to write an annotation > processor to find the not subclassable public classes in the JDK that were > not marked final. > Joe, your bait was too hard to resist. These are the non-final, not su

Re: RFR: 8344560: Add system property for patched runtime [v3]

2024-11-22 Thread Roger Riggs
On Fri, 22 Nov 2024 17:04:38 GMT, Severin Gehwolf wrote: >> Please review this simple patch which adds a new external system property >> `jdk.patched` when the runtime has been patched with the `--patch-module` >> switch. This is useful for two reasons: 1) it allows one to determine at >> run-

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v16]

2024-11-22 Thread Aleksey Shipilev
> See the bug for more discussion and reproducer. This PR replaces the ad-hoc > linked list with segmented list of arrays. Arrays are easy targets for GC. > There are possible improvements here, most glaring is parallelism that is > currently knee-capped by global synchronization. The synchroniz

Re: RFR: 8343427: Class file load hook crashes on archived classes from multi-release JARs [v3]

2024-11-22 Thread Calvin Cheung
On Fri, 22 Nov 2024 11:07:31 GMT, Alan Bateman wrote: >> Calvin Cheung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> @dholmes-ora comment > > src/java.base/share/classes/java/lang/ClassLoader.java line 1689: > >> 1687: >> 1688: /

Re: RFR: 8343427: Class file load hook crashes on archived classes from multi-release JARs [v4]

2024-11-22 Thread Calvin Cheung
> Currently, when retrieving a ClassFileStream during runtime, we call into the > zip library to retrieve the stream based only on a class name. This doesn't > work well if the class is in a multi-release jar under a versioned directory > such as `META-INF/versions/9/Foo.class`. To address this

Re: RFR: 8344560: Add system property for patched runtime [v3]

2024-11-22 Thread Severin Gehwolf
> Please review this simple patch which adds a new external system property > `jdk.patched` when the runtime has been patched with the `--patch-module` > switch. This is useful for two reasons: 1) it allows one to determine at > run-time whether or not `--patch-module` has been used (by querying

Re: RFR: 8344560: Add system property for patched runtime [v2]

2024-11-22 Thread Severin Gehwolf
On Thu, 21 Nov 2024 10:29:32 GMT, Severin Gehwolf wrote: > While at it, should there be additional guards to prevent applications from > changing the value of this system property by doing > `System.setProperty("jdk.patched")` at runtime? The updated patch has a test for this. In a nutshell an

Re: RFR: 8344841: ClassPrinter prints confusing value for null

2024-11-22 Thread Chen Liang
On Fri, 22 Nov 2024 10:24:12 GMT, Adam Sotona wrote: > ClassPrinter prints `null` values as `String` "null" or as > `String.valueOf(ConstantDescs.BSM_NULL_CONSTANT)`, based on context. > > This patch unifies handling of `null` values. > They are now exclusively represented as `ConstantDescs.BSM

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: 8344560: Add system property for patched runtime [v2]

2024-11-22 Thread Severin Gehwolf
> Please review this simple patch which adds a new external system property > `jdk.patched` when the runtime has been patched with the `--patch-module` > switch. This is useful for two reasons: 1) it allows one to determine at > run-time whether or not `--patch-module` has been used (by querying

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v15]

2024-11-22 Thread Viktor Klang
On Thu, 21 Nov 2024 19:33:01 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

Re: RFR: 8343704: Bad GC parallelism with processing Cleaner queues [v15]

2024-11-22 Thread Viktor Klang
On Thu, 21 Nov 2024 19:33:01 GMT, Aleksey Shipilev wrote: >> See the bug for more discussion and reproducer. This PR replaces the ad-hoc >> linked list with segmented list of arrays. Arrays are easy targets for GC. >> There are possible improvements here, most glaring is parallelism that is >>

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: 8225763: Inflater and Deflater should implement AutoCloseable [v9]

2024-11-22 Thread Roger Riggs
On Fri, 22 Nov 2024 04:43:55 GMT, Jaikiran Pai wrote: >> Can I please get a review of this enhancement which proposes to enhance >> `java.util.zip.Deflater/Inflater` classes to now implement `AutoCloseable`? >> >> The actual work for this was done a few years back when we discussed the >> prop

Integrated: 8344861: Disable CheckJNICalls in tests until JDK-8344802 is fixed

2024-11-22 Thread Tobias Hartmann
On Fri, 22 Nov 2024 14:19:57 GMT, Tobias Hartmann wrote: > Some tests specify `-XX:+EnableX86ECoreOpts` which does not work well with > `-Xcheck:jni` on Windows. Disable `CheckJNICalls` for now with these tests > until [JDK-8344802](https://bugs.openjdk.org/browse/JDK-8344802) is fixed. > > Th

Re: RFR: 8341402: BigDecimal's square root optimization [v20]

2024-11-22 Thread fabioromano1
On Fri, 22 Nov 2024 14:21:50 GMT, Raffaello Giulietti wrote: > Not sure if you are planning to make other code changes before adding the > tests? From my perspective, the current status of the code looks good. No, I'm not planning to make other changes, I will add the tests soon.

Re: RFR: 8344861: Disable CheckJNICalls in tests until JDK-8344802 is fixed

2024-11-22 Thread Tobias Hartmann
On Fri, 22 Nov 2024 14:19:57 GMT, Tobias Hartmann wrote: > Some tests specify `-XX:+EnableX86ECoreOpts` which does not work well with > `-Xcheck:jni` on Windows. Disable `CheckJNICalls` for now with these tests > until [JDK-8344802](https://bugs.openjdk.org/browse/JDK-8344802) is fixed. > > Th

Re: RFR: 8344861: Disable CheckJNICalls in tests until JDK-8344802 is fixed

2024-11-22 Thread Coleen Phillimore
On Fri, 22 Nov 2024 14:19:57 GMT, Tobias Hartmann wrote: > Some tests specify `-XX:+EnableX86ECoreOpts` which does not work well with > `-Xcheck:jni` on Windows. Disable `CheckJNICalls` for now with these tests > until [JDK-8344802](https://bugs.openjdk.org/browse/JDK-8344802) is fixed. > > Th

RFR: 8344861: Disable CheckJNICalls in tests until JDK-8344802 is fixed

2024-11-22 Thread Tobias Hartmann
Some tests specify `-XX:+EnableX86ECoreOpts` which does not work well with `-Xcheck:jni` on Windows. Disable `CheckJNICalls` for now with these tests until [JDK-8344802](https://bugs.openjdk.org/browse/JDK-8344802) is fixed. Thanks, Tobias - Commit messages: - Disable it - 834486

Re: RFR: 8341402: BigDecimal's square root optimization [v20]

2024-11-22 Thread Raffaello Giulietti
On Tue, 19 Nov 2024 19:48:25 GMT, Raffaello Giulietti wrote: >> Yes, indeed in this case the remainder is always needed, so invoking >> `workingInt.sqrtAndRemainder()` is faster than checking >> `!workingInt.equals(sqrt.multiply(sqrt))`, as it avoids the squaring of >> `sqrt`. > > I see. > >

RFR: 8344773: SM cleanup in ForkJoinPool

2024-11-22 Thread Doug Lea
Complete the SM cleanup in java.util.concurrent that was deferred during other FJP updates - Commit messages: - Merge branch 'openjdk:master' into JDK-8344773 - Remove SecurityManager-related code; refactor resetThreadLocals Changes: https://git.openjdk.org/jdk/pull/22324/files

RFR: 8344647: JDK-8335989 causes a bad requires flag: ACC_TRANSITIVE error for java.se

2024-11-22 Thread Jan Lahoda
There is a new preview language feature, `requires transitive java.base;`. And the `java.se` module is permitted to use the feature, without being marked as preview (i.e. the `java.se` module participates in preview). This is currently implemented by the common "participates in preview" way, by

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

Integrated: 8339916: AIOOBE due to Math.abs(Integer.MIN_VALUE) in tests

2024-11-22 Thread Andrew Haley
On Thu, 21 Nov 2024 17:21:07 GMT, Andrew Haley wrote: > Test bug. > > Another bug caused by the result of `Math.abs()` being negative. I also tried > `floorMod()`, which would have been cleaner, but it increased the runtime of > this extremely time-sensitive benchmark. This pull request has n

Re: RFR: 8339916: AIOOBE due to Math.abs(Integer.MIN_VALUE) in tests

2024-11-22 Thread Andrew Haley
On Fri, 22 Nov 2024 10:36:21 GMT, Rémi Forax wrote: > Let say that the definition of Math.abs() is surprising If anything is surprising, it's the definition of `%` . Which is compatible with `/`, but otherwise useless. - PR Comment: https://git.openjdk.org/jdk/pull/22297#issuecom

Re: [External] : Re: Question about Streams, Gatherers, and fetching too many elements

2024-11-22 Thread David Alayachew
I see your responses in the Reddit thread. Thanks again! But yes, would love to be kept in the loop about any further developments on this topic! On Thu, Nov 21, 2024 at 9:12 AM Viktor Klang wrote: > Hi David, > > I might respond to the Reddit thread later, I need to wrap some other > tasks up

Integrated: 8343453: Modernize FloatingDecimal tests

2024-11-22 Thread Raffaello Giulietti
On Fri, 1 Nov 2024 18:01:18 GMT, Raffaello Giulietti wrote: > Simplify tests. This pull request has now been integrated. Changeset: bf374c33 Author:Raffaello Giulietti URL: https://git.openjdk.org/jdk/commit/bf374c33f5cd5048cabe151050fada773b7d9458 Stats: 3198 lines in 5 files

Re: RFR: 8343427: Class file load hook crashes on archived classes from multi-release JARs [v3]

2024-11-22 Thread Alan Bateman
On Thu, 21 Nov 2024 23:14:58 GMT, Calvin Cheung wrote: >> Currently, when retrieving a ClassFileStream during runtime, we call into >> the zip library to retrieve the stream based only on a class name. This >> doesn't work well if the class is in a multi-release jar under a versioned >> direct

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: 8339916: AIOOBE due to Math.abs(Integer.MIN_VALUE) in tests

2024-11-22 Thread Rémi Forax
On Thu, 21 Nov 2024 17:21:07 GMT, Andrew Haley wrote: > Test bug. > > Another bug caused by the result of `Math.abs()` being negative. I also tried > `floorMod()`, which would have been cleaner, but it increased the runtime of > this extremely time-sensitive benchmark. Let say that the defini

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-22 Thread Alan Bateman
On Fri, 22 Nov 2024 10:27:17 GMT, ExE Boss wrote: > Should the CSR FAQ be updated to remove references to jdk.*, or are there > some jdk.* packages that require a CSR? As far as I can tell, none are > exported. The "Design principles" section of JEP 200 may be help. Standard modules, as in ja

Re: RFR: 8342103: C2 compiler support for Float16 type and associated operations [v2]

2024-11-22 Thread Jatin Bhateja
> Hi All, > > This patch adds C2 compiler support for various Float16 operations added by > [PR#22128](https://github.com/openjdk/jdk/pull/22128) > > Following is the summary of changes included with this patch:- > > 1. Detection of various Float16 operations through inline expansion or > patt

Re: RFR: 8344168: Change Unsafe base offset from int to long

2024-11-22 Thread ExE Boss
On Fri, 22 Nov 2024 04:23:26 GMT, Dean Long wrote: > Should the CSR FAQ be updated to remove references to `jdk.*,` or are there > some jdk.* packages that require a CSR? As far as I can tell, none are > exported. The `jdk.incubator.*` packages (such as `jdk.incubator.vector`) are exported. -

RFR: 8344841: ClassPrinter prints confusing value for null

2024-11-22 Thread Adam Sotona
ClassPrinter prints `null` values as `String` "null" or as `String.valueOf(ConstantDescs.BSM_NULL_CONSTANT)`, based on context. This patch unifies handling of `null` values. They are now exclusively represented as `ConstantDescs.BSM_NULL_CONSTANT`. In Json and Yaml format is `null` value printed

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

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