Re: RFR: 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected [v18]

2024-07-29 Thread Jan Kratochvil
> The testcase requires root permissions. > > Fix by Severin Gehwolf. > Testcase by Jan Kratochvil. Jan Kratochvil has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits: - Implement vm.cgroup.tools - Use Metrics.systemMetri

Re: RFR: 8336315: tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive

2024-07-29 Thread Vanitha B P
On Wed, 24 Jul 2024 16:42:52 GMT, Alexey Semenyuk wrote: >> tools/jpackage/windows/WinChildProcessTest.java was failing intermittently, >> fixed the issue and changes are tested. > > @sashamatveev please review @alexeysemenyukoracle @sashamatveev Can you please sponsor? - PR Comme

Re: RFR: 8336315: tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive [v3]

2024-07-29 Thread duke
On Tue, 30 Jul 2024 05:59:44 GMT, Vanitha B P wrote: >> tools/jpackage/windows/WinChildProcessTest.java was failing intermittently, >> fixed the issue and changes are tested. > > Vanitha B P has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8336315: tools/jpackage/windows/WinChildProcessTest.java Failed: Check is calculator process is alive [v3]

2024-07-29 Thread Vanitha B P
> tools/jpackage/windows/WinChildProcessTest.java was failing intermittently, > fixed the issue and changes are tested. Vanitha B P has updated the pull request incrementally with one additional commit since the last revision: Vanitha B P - Changes: - all: https://git.openjdk.

Re: RFR: 8337219: AccessFlags factories do not require necessary arguments

2024-07-29 Thread Chen Liang
On Thu, 25 Jul 2024 23:11:15 GMT, Chen Liang wrote: > Removes 6 `AccessFlags` factories that do not take class-file versions as its > arguments. > > `AccessFlags` is a wrapper around a bit mask to support modifier streaming in > ClassFile API. It additionally supports advanced validation based

Re: RFR: 8337219: AccessFlags factories do not require necessary arguments [v2]

2024-07-29 Thread Chen Liang
> Removes 6 `AccessFlags` factories that do not take class-file versions as its > arguments. > > `AccessFlags` is a wrapper around a bit mask to support modifier streaming in > ClassFile API. It additionally supports advanced validation based on location. > > However, as class file versions evo

Re: RFR: 8250659: Clarify in ParameterizedType.getRawType() doc that only Class is returned

2024-07-29 Thread Chen Liang
On Mon, 1 Jul 2024 19:20:48 GMT, Chen Liang wrote: > Clarify that only `Class` is returned for core reflection implementation, and > the return type is `Type` to support other implementations, such as ones > modeling unloaded or remote types. Keep-alive. - PR Comment: https://git

Re: RFR: 8306039: ParameterizedType.getOwnerType() documentation is incomplete about null result

2024-07-29 Thread Chen Liang
On Mon, 1 Jul 2024 18:22:48 GMT, Chen Liang wrote: > Clarify that `ParameterizedType.getOwnerType()` always return `null` in a few > scenarios. Keep-alive. - PR Comment: https://git.openjdk.org/jdk/pull/19977#issuecomment-2257160095

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
On Mon, 29 Jul 2024 20:51:39 GMT, Raffaello Giulietti wrote: >>> The following variant should be preferred, as it has a readable figure on >>> p. 21, whereas the same figure in the variant linked in the PR seems broken >>> for some reason. https://inria.hal.science/inria-00072113/document >>

Re: jpackage nits

2024-07-29 Thread Alexey Semenyuk
Hi Bernd, The issue with the infinite directory tree you observe looks like a duplicate of [1]. You can add "--verbose" option to jpackage command line to get more details on what is going on with jpackage. There is no way to configure the list of directories where native launcher is looki

Integrated: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute

2024-07-29 Thread Chen Liang
On Thu, 25 Jul 2024 22:41:08 GMT, Chen Liang wrote: > As discussed in offline meeting, the max stack and locals information are > part of the code attribute and not meaningful for buffered code elements. > Computation would be costly and these see no real usage during > transformations. Thus,

Re: RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v4]

2024-07-29 Thread Chen Liang
On Mon, 29 Jul 2024 12:32:10 GMT, Chen Liang wrote: >> As discussed in offline meeting, the max stack and locals information are >> part of the code attribute and not meaningful for buffered code elements. >> Computation would be costly and these see no real usage during >> transformations. Th

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread Raffaello Giulietti
On Mon, 29 Jul 2024 18:25:54 GMT, fabioromano1 wrote: >> src/java.base/share/classes/java/math/MutableBigInteger.java line 550: >> >>> 548: */ >>> 549: void safeRightShift(int n) { >>> 550: if (n >= bitLength()) { >> >> The commit message for this reads `More accurate condition

jpackage nits

2024-07-29 Thread Bernd Eckenfels
Hello, I noticed some jpackage pecularities: 1 - if you use "-i ." (and no target) it will not ignore its target directory and recursively copy itself generating a massive deep directory tree hard to remove. Sample command: jpackage --type app-image -n MyApp --main-class myapp.Main --main-ja

RFR: 8336032: Enforce immutability of Lists used by ClassFile API

2024-07-29 Thread Chen Liang
In #20241, it's noted that `ClassFile.verify` can return a mix-and-match of mutable and immutable lists. Though the mutability of the list returned by `verify` has no particular importance, as the mutable list is constructed on every call and does not mutate the models, there are a few scenario

Integrated: 8337285: Examine java.text.DecimalFormat API for api/implXxx tag usage

2024-07-29 Thread Justin Lu
On Fri, 26 Jul 2024 19:17:34 GMT, Justin Lu wrote: > Please review this PR which is a simple doc only change to > java.text.DecimalFormat. > > Mainly, the DecimalFormat constructors have wording that recommends using the > NumberFormat factory methods for a standard formatting. This would be b

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
On Mon, 29 Jul 2024 16:48:32 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> If the input is a square, then s0 == 0, so testing for non-zero remainder >> is redundant > > src/java.base/sh

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
On Mon, 29 Jul 2024 16:50:32 GMT, Raffaello Giulietti wrote: > Also, I wonder if it wouldn't be simpler for `len` to represent the `int` > length of the square root rather than the `int` length of the argument. It > would be more consistent with the Bertot, Magaud, Zimmermann paper and might

Re: Stream Gatherers (JEP 473) feedback

2024-07-29 Thread Viktor Klang
Hi Anthony, Thank you for your patience, and for providing feedback, it is always much appreciated. >When writing factory methods for Gatherers, there's sometimes a degenerate case that requires returning a no-op Gatherer. So I'd like a way to mark a no-op Gatherer as such, allowing the Stream

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
On Mon, 29 Jul 2024 16:50:10 GMT, Raffaello Giulietti wrote: > The following variant should be preferred, as it has a readable figure on p. > 21, whereas the same figure in the variant linked in the PR seems broken for > some reason. https://inria.hal.science/inria-00072113/document What is t

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
On Mon, 29 Jul 2024 17:00:09 GMT, Raffaello Giulietti wrote: > Sorry, not `<<` but `*` or `(x.intLen & 1) << 5` - PR Review Comment: https://git.openjdk.org/jdk/pull/19710#discussion_r1695649080

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v8]

2024-07-29 Thread Archie Cobbs
On Mon, 29 Jul 2024 14:27:28 GMT, Lance Andersen wrote: > ... we really need more datapoint to better understand the risks/benefits in > order to make an informed decision. Agreed. Here's some what I've come up with after a little bit of research: First, we shouldn't confuse GZIP with ZIP fil

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread Raffaello Giulietti
On Mon, 29 Jul 2024 16:49:04 GMT, Raffaello Giulietti wrote: >> fabioromano1 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> If the input is a square, then s0 == 0, so testing for non-zero remainder >> is redundant > > src/java.base/sh

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread Raffaello Giulietti
On Mon, 29 Jul 2024 13:18:16 GMT, fabioromano1 wrote: >> I have implemented the Zimmermann's square root algorithm, available in >> works [here](https://inria.hal.science/inria-00072854/en/) and >> [here](https://www.researchgate.net/publication/220532560_A_proof_of_GMP_square_root). >> >> The

Re: RFR: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Naoto Sato
On Mon, 29 Jul 2024 15:49:10 GMT, Naoto Sato wrote: > This fix is to address the tier_1 test run on Windows taking much longer time > than before. The test case creates child processes that remain behind after > the test run has completed, which is problematic on Windows as the make > command

Integrated: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Naoto Sato
On Mon, 29 Jul 2024 15:49:10 GMT, Naoto Sato wrote: > This fix is to address the tier_1 test run on Windows taking much longer time > than before. The test case creates child processes that remain behind after > the test run has completed, which is problematic on Windows as the make > command

Re: RFR: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Brian Burkhalter
On Mon, 29 Jul 2024 15:49:10 GMT, Naoto Sato wrote: > This fix is to address the tier_1 test run on Windows taking much longer time > than before. The test case creates child processes that remain behind after > the test run has completed, which is problematic on Windows as the make > command

Re: RFR: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Iris Clark
On Mon, 29 Jul 2024 15:49:10 GMT, Naoto Sato wrote: > This fix is to address the tier_1 test run on Windows taking much longer time > than before. The test case creates child processes that remain behind after > the test run has completed, which is problematic on Windows as the make > command

Re: RFR: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Alan Bateman
On Mon, 29 Jul 2024 15:49:10 GMT, Naoto Sato wrote: > This fix is to address the tier_1 test run on Windows taking much longer time > than before. The test case creates child processes that remain behind after > the test run has completed, which is problematic on Windows as the make > command

RFR: 8337300: java/lang/Process/WaitForDuration.java leaves child process behind

2024-07-29 Thread Naoto Sato
This fix is to address the tier_1 test run on Windows taking much longer time than before. The test case creates child processes that remain behind after the test run has completed, which is problematic on Windows as the make command waits for the process to terminate. Confirmed tier_1/part_1 fi

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v8]

2024-07-29 Thread Lance Andersen
On Mon, 29 Jul 2024 13:52:57 GMT, Archie Cobbs wrote: > > So where does that leave us: > > Keep the code as is and document the current behavior > > Continue to add additional test coverage for the current API > > We probably do not need a new constructor given it probably adds no new > > additi

Re: RFR: 8336881: [Linux] Support for hierarchical limits for Metrics [v2]

2024-07-29 Thread Severin Gehwolf
> Please review this fix for cgroups-based metrics reporting in the > `jdk.internal.platform` package. This fix is supposed to address wrong > reporting of certain limits if the limits aren't set at the leaf nodes. > > For example, on cg v2, the memory limit interface file is `memory.max`. > Co

Re: RFR: 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected [v15]

2024-07-29 Thread Jan Kratochvil
On Mon, 22 Jul 2024 13:48:29 GMT, Severin Gehwolf wrote: >> Jan Kratochvil has refreshed the contents of this pull request, and previous >> commits have been removed. Incremental views are not available. > > test/hotspot/jtreg/containers/cgroup/NestedCgroup.java line 193: > >> 191: } >>

Re: RFR: 8322420: [Linux] cgroup v2: Limits in parent nested control groups are not detected [v17]

2024-07-29 Thread Jan Kratochvil
> The testcase requires root permissions. > > Fix by Severin Gehwolf. > Testcase by Jan Kratochvil. Jan Kratochvil has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 260 commits: - Implement vm.cgroup.tools - Use Metrics.systemMetric

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v8]

2024-07-29 Thread Archie Cobbs
On Mon, 29 Jul 2024 13:06:24 GMT, Lance Andersen wrote: > So where does that leave us: > >Keep the code as is and document the current behavior >Continue to add additional test coverage for the current API >We probably do not need a new constructor given it probably adds no new > ad

Re: RFR: 8334755: Asymptotically faster implementation of square root algorithm [v47]

2024-07-29 Thread fabioromano1
> I have implemented the Zimmermann's square root algorithm, available in works > [here](https://inria.hal.science/inria-00072854/en/) and > [here](https://www.researchgate.net/publication/220532560_A_proof_of_GMP_square_root). > > The algorithm is proved to be asymptotically faster than the New

Re: RFR: 8322256: Define and document GZIPInputStream concatenated stream semantics [v8]

2024-07-29 Thread Lance Andersen
On Sat, 27 Jul 2024 15:00:51 GMT, Archie Cobbs wrote: >> `GZIPInputStream` supports reading data from multiple concatenated GZIP data >> streams since [JDK-4691425](https://bugs.openjdk.org/browse/JDK-4691425). In >> order to do this, after a GZIP trailer frame is read, it attempts to read a >

Re: RFR: 8303884: jlink --add-options plugin does not allow GNU style options to be provided

2024-07-29 Thread Yasumasa Suenaga
On Mon, 29 Jul 2024 07:36:15 GMT, Jaikiran Pai wrote: >> So how should we proceed this? This problem is critical for some modularized >> applications as I said before. >> >> I agree that we need to consider the approach for this, but it is worth to >> provide the fix even if it is short-term,

Re: RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v4]

2024-07-29 Thread Adam Sotona
On Mon, 29 Jul 2024 12:32:10 GMT, Chen Liang wrote: >> As discussed in offline meeting, the max stack and locals information are >> part of the code attribute and not meaningful for buffered code elements. >> Computation would be costly and these see no real usage during >> transformations. Th

Re: RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v4]

2024-07-29 Thread Chen Liang
> As discussed in offline meeting, the max stack and locals information are > part of the code attribute and not meaningful for buffered code elements. > Computation would be costly and these see no real usage during > transformations. Thus, the proposed solution is to move these APIs to be > C

Re: RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v3]

2024-07-29 Thread Andrey Turbanov
On Mon, 29 Jul 2024 02:22:11 GMT, Chen Liang wrote: >> As discussed in offline meeting, the max stack and locals information are >> part of the code attribute and not meaningful for buffered code elements. >> Computation would be costly and these see no real usage during >> transformations. Th

Re: RFR: 8337225: Demote maxStack and maxLocals from CodeModel to CodeAttribute [v3]

2024-07-29 Thread Adam Sotona
On Mon, 29 Jul 2024 02:22:11 GMT, Chen Liang wrote: >> As discussed in offline meeting, the max stack and locals information are >> part of the code attribute and not meaningful for buffered code elements. >> Computation would be costly and these see no real usage during >> transformations. Th

Re: RFR: 8303884: jlink --add-options plugin does not allow GNU style options to be provided

2024-07-29 Thread Jaikiran Pai
On Sun, 28 Jul 2024 06:24:38 GMT, Yasumasa Suenaga wrote: >> We cannot pass GNU style options like `--enable-preview` to `jlink >> --add-option`. It is hard to use for complex application. >> >> We have workaround for this issue (see JBS), but I think it is better to fix >> on JDK side. > > So

Re: RFR: 8328995: Launcher can't open jar files where the offset of the manifest is >4GB [v9]

2024-07-29 Thread Jaikiran Pai
On Fri, 19 Jul 2024 15:36:10 GMT, Liam Miller-Cushon wrote: >> This change fixes a zip64 bug in the launcher that is prevent it from >> reading the manifest of jars where the 'relative offset of local header' >> field in the central directory entry is >4GB. As described in APPNOTE.TXT >> 4.5.3