Re: [External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Michael Hall
> On Mar 4, 2025, at 10:20 AM, Alexey Semenyuk > wrote: > > > > On 3/4/2025 11:06 AM, Michael Hall wrote: >>> Good point about `CFBundleGetInfoString`. Maybe jpackage should set this >>> field with the value of `--description` option. Another finding! >>> >>> As for editing "Info.plist" fr

Re: [External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Michael Hall
> On Mar 4, 2025, at 10:06 AM, Michael Hall wrote: > >>> >> Good point about `CFBundleGetInfoString`. Maybe jpackage should set this >> field with the value of `--description` option. Another finding! >> >> As for editing "Info.plist" from the runtime source, if the directory >> referenced

Integrated: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Alexey Semenyuk
On Mon, 24 Feb 2025 16:54:59 GMT, Alexey Semenyuk wrote: > - Fix the warning message about the custom installation directory location > jpackage issues for DMG runtime packaging. > - Don't issue the warning when the `--install-dir` value equals the default > installation directory location. >

Re: RFR: 8344332: (bf) Migrate DirectByteBuffer to use java.lang.ref.Cleaner [v13]

2025-03-04 Thread Brent Christian
On Sun, 23 Feb 2025 10:20:23 GMT, Kim Barrett wrote: > I've made a prototype that adds Cleaner.waitForCleaning() and changes > Bits.reserveMemory() to use it. > > https://github.com/openjdk/jdk/compare/master...kimbarrett:openjdk-jdk:wait-for-cleaning?expand=1 These caught my eye during my rea

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread John R Rose
On Mon, 24 Feb 2025 23:45:37 GMT, Chen Liang wrote: >> LF editor spins classes, this avoids the spinning overhead and should speed >> up non-capturing lambdas too. >> >> There may need to be additional intrinsic work for MH combinator lf bytecode >> generation. > > Chen Liang has updated the p

Integrated: 8350013: Add a test for JDK-8150442

2025-03-04 Thread Alexey Semenyuk
On Thu, 27 Feb 2025 14:17:30 GMT, Alexey Semenyuk wrote: > Add a test to verify jpackage is using a custom MSI condition blocking > package installation depending on the version of Windows where the package > installer runs. Support for this MSI condition was added in > [JDK-8150442](https://b

Re: RFR: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

2025-03-04 Thread Alan Bateman
On Mon, 3 Mar 2025 13:33:05 GMT, Sean Mullan wrote: > Please review this fix to a test that fails when run with --enable-preview. > This fix is to add all the necessary utility classes imported by the test to > the JAR file, and not just the test classes. The core reflection used by the launch

Re: RFR: 8266431: Dual-Pivot Quicksort improvements (Radix sort) [v11]

2025-03-04 Thread Vladimir Yaroslavskiy
On Sun, 22 Oct 2023 17:26:52 GMT, Laurent Bourgès wrote: >> * improved mixed insertion sort (makes whole sorting faster) >> * introduced Radix which sort shows several times boost of performance and >> has linear complexity instead of n*ln(n) >> * improved merging sort for almost sorted data >>

Re: RFR: 8350811: [JMH] test foreign.StrLenTest failed with StringIndexOutOfBoundsException for size=451

2025-03-04 Thread Vladimir Ivanov
On Mon, 3 Mar 2025 20:24:54 GMT, Vladimir Ivanov wrote: > test setup was updated to generate data of requested size. Update to regular cycle template. Thanks - PR Comment: https://git.openjdk.org/jdk/pull/23873#issuecomment-2698720228

Re: RFR: 8350811: [JMH] test foreign.StrLenTest failed with StringIndexOutOfBoundsException for size=451 [v2]

2025-03-04 Thread Vladimir Ivanov
> test setup was updated to generate data of requested size. Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision: JDK-8350811 [JMH] test foreign.StrLenTest failed with StringIndexOutOfBoundsException for size=451 - Change

Withdrawn: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

2025-03-04 Thread Sean Mullan
On Mon, 3 Mar 2025 13:33:05 GMT, Sean Mullan wrote: > Please review this fix to a test that fails when run with --enable-preview. > This fix is to add all the necessary utility classes imported by the test to > the JAR file, and not just the test classes. This pull request has been closed with

Re: RFR: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

2025-03-04 Thread Sean Mullan
On Mon, 3 Mar 2025 13:33:05 GMT, Sean Mullan wrote: > Please review this fix to a test that fails when run with --enable-preview. > This fix is to add all the necessary utility classes imported by the test to > the JAR file, and not just the test classes. I am withdrawing this PR for now and m

Re: RFR: 8344708: Compiler Implementation of Module Import Declarations

2025-03-04 Thread Vicente Romero
On Wed, 26 Feb 2025 13:50:52 GMT, Jan Lahoda wrote: > This is a patch to finalize the module imports feature. Please see: > https://bugs.openjdk.org/browse/JDK-8344700 looks sensible test/langtools/tools/javac/modules/EdgeCases.java line 1190: > 1188: > 1189: List expected = List.of(

Re: RFR: 8351045: ClassValue::remove cannot ensure computation observes up-to-date state

2025-03-04 Thread John R Rose
On Mon, 3 Mar 2025 15:24:05 GMT, Chen Liang wrote: > After a call to `ClassValue.remove`, a `ClassValue` can still install a value > that is computed with information that is not up-to-date with the remove > call. This is demonstrated in the test case, where an innocuous > `ClassValue.get` cal

Re: RFR: 8351074: Disallow null prefix and suffix in DecimalFormat [v3]

2025-03-04 Thread Naoto Sato
On Tue, 4 Mar 2025 18:12:48 GMT, Justin Lu wrote: >> Please review this PR and associated CSR which disallows passing null to 4 >> `DecimalFormat` prefix/suffix setter methods. >> >> Currently these setters do not check the input String for null. When the >> prefix/suffix is null, any such Dec

Re: RFR: 8351074: Disallow null prefix and suffix in DecimalFormat [v3]

2025-03-04 Thread Justin Lu
> Please review this PR and associated CSR which disallows passing null to 4 > `DecimalFormat` prefix/suffix setter methods. > > Currently these setters do not check the input String for null. When the > prefix/suffix is null, any such DecimalFormat instances are effectively > non-functional as

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Chen Liang
On Tue, 25 Feb 2025 21:51:15 GMT, Claes Redestad wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> We no longer load DelegateMH as we no longer rebind > > Just got back home. Some comments inline, will need to run some

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v12]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Integrated: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods

2025-03-04 Thread Justin Lu
On Wed, 26 Feb 2025 22:18:17 GMT, Justin Lu wrote: > Please review this PR which clarifies some behavior regarding NumberFormat > grouping specifically in the grouping related methods. > > Please see the corresponding CSR for further detail. Note that an alternative > would be to specify this

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 16:00:46 GMT, Thomas Schatzl wrote: >> src/hotspot/share/gc/g1/g1ConcurrentRefine.hpp line 116: >> >>> 114: SwapGlobalCT,// Swap global card table. >>> 115: SwapJavaThreadsCT, // Swap java thread's card tables. >>> 116: SwapGCThreadsCT,

Re: [External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Michael Hall
>> > Good point about `CFBundleGetInfoString`. Maybe jpackage should set this > field with the value of `--description` option. Another finding! > > As for editing "Info.plist" from the runtime source, if the directory > referenced from `--runtime-image` option is a valid bundle, i.e. has > "C

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 16:04:00 GMT, Thomas Schatzl wrote: >> src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp line 219: >> >>> 217: // The young gen revising mechanism reads the predictor and the >>> values set >>> 218: // here. Avoid inconsistencies by locking. >>> 219: Mute

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 15:56:05 GMT, Thomas Schatzl wrote: > It's fast anyway. To clarify: If you have multiple refinement rounds between two garbage collections, the time to clear the young gen cards is almost noise compared to the actual refinement effort. Like two magnitudes faster. --

Re: [External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Alexey Semenyuk
On 3/4/2025 11:06 AM, Michael Hall wrote: Good point about `CFBundleGetInfoString`. Maybe jpackage should set this field with the value of `--description` option. Another finding! As for editing "Info.plist" from the runtime source, if the directory referenced from `--runtime-image` option i

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 15:33:29 GMT, Albert Mingkun Yang wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> iwalulya review >> * comments for variables tracking to-collection-set and just dirtied >> cards after GC/

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 15:16:17 GMT, Albert Mingkun Yang wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> iwalulya review >> * comments for variables tracking to-collection-set and just dirtied >> cards after GC/

Re: RFR: 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs) [v12]

2025-03-04 Thread Archie Cobbs
On Sat, 15 Feb 2025 21:27:56 GMT, Archie Cobbs wrote: >> Please review this patch which removes unnecessary `@SuppressWarnings` >> annotations. > > Archie Cobbs has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 22 commits: > > - Me

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Albert Mingkun Yang
On Tue, 4 Mar 2025 11:56:56 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that implements (currently Draft) JEP: G1: >> Improve Application Throughput with a More Efficient Write-Barrier. >> >> The reason for posting this early is that this is a large change, and the

Re: [External] : Re: RFR: 8350594: Misleading warning about install dir for DMG packaging

2025-03-04 Thread Alexey Semenyuk
On 3/3/2025 9:58 PM, Michael Hall wrote: On Mar 3, 2025, at 1:51 PM, Michael Hall wrote: On Mar 3, 2025, at 1:37 PM, Alexey Semenyuk wrote: Hi Michael, Thank you for the detailed report! I filed [1] ticket that, I hope, captures all findings from your report. Let me know if anythin

Re: RFR: 8343478: Remove unnecessary @SuppressWarnings annotations (core-libs) [v12]

2025-03-04 Thread Alexey Semenyuk
On Sat, 15 Feb 2025 21:27:56 GMT, Archie Cobbs wrote: >> Please review this patch which removes unnecessary `@SuppressWarnings` >> annotations. > > Archie Cobbs has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains 22 commits: > > - Me

Re: RFR: 8349358: [JMH] Cannot access class jdk.internal.vm.ContinuationScope

2025-03-04 Thread SendaoYan
On Tue, 4 Feb 2025 12:35:50 GMT, SendaoYan wrote: > Hi all, > > Several JMH tests fails "cannot access class > jdk.internal.vm.ContinuationScope (in module java.base) because module > java.base does not export jdk.internal.vm to unnamed module". This PR add VM > option `--add-exports=java.bas

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 4 Mar 2025 14:17:59 GMT, Chen Liang wrote: > The LambdaForm will be only used for non-customized bytecode (which cannot > fully inline anyways) True, without customization the cases holder in the current implementation will not be a constant, so we can never inline the cases for shared

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 14:25:45 GMT, Jorn Vernee wrote: > as we skipped generating the intrinsic Huh, why? As I understand, intrinsics are bound on NamedFunction; the NamedFunction to select a MH should be still there in a MH chain. - PR Comment: https://git.openjdk.org/jdk/pull/23763

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 4 Mar 2025 14:26:19 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java >> line 628: >> >>> 626: continue; >>> 627: } >>> 628:

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Jorn Vernee
On Mon, 24 Feb 2025 23:45:37 GMT, Chen Liang wrote: >> LF editor spins classes, this avoids the spinning overhead and should speed >> up non-capturing lambdas too. >> >> There may need to be additional intrinsic work for MH combinator lf bytecode >> generation. > > Chen Liang has updated the p

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Jorn Vernee
On Tue, 4 Mar 2025 14:09:03 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/lang/invoke/LambdaForm.java line 1658: >> >>> 1656: var carrier = argument(0, L_TYPE).withConstraint(species); // >>> BMH bound with data >>> 1657: Name[] constNames = new Name[] { carrier, ne

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 4 Mar 2025 14:10:36 GMT, Jorn Vernee wrote: >> Remove the intrinsicData field. We can obtain this from the customized MH >> when we spin ultra-customized lambda forms. In the long run, we aim to >> remove this intrinsic if there is no regression for call site sharing. >> >> The existin

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 4 Mar 2025 14:33:27 GMT, Jorn Vernee wrote: >> In that case, won't the root form be customized and the table switch names >> be inlined into the root form? > > The root would e.g. have a constant BMH pointing at a _shared_ tableSwitch > LF. So, the BMH fields would be seen as constant a

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 14:11:28 GMT, Jorn Vernee wrote: >> src/java.base/share/classes/java/lang/invoke/MethodHandles.java line 7664: >> >>> 7662: if (mh.type() != expectedType) >>> 7663: throw new IllegalArgumentException( >>> 7664: "Some targets do n

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 13:42:16 GMT, Jorn Vernee wrote: >> Remove the intrinsicData field. We can obtain this from the customized MH >> when we spin ultra-customized lambda forms. In the long run, we aim to >> remove this intrinsic if there is no regression for call site sharing. >> >> The existin

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 25 Feb 2025 02:45:46 GMT, Chen Liang wrote: > Remove the intrinsicData field. We can obtain this from the customized MH > when we spin ultra-customized lambda forms. In the long run, we aim to remove > this intrinsic if there is no regression for call site sharing. > > The existing tab

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 14:12:05 GMT, Jorn Vernee wrote: > the LambdaForm will just have a single call site for all the cases, whereas > the intrinsic does emit a call per case? Yes. The LambdaForm will be only used for non-customized bytecode (which cannot fully inline anyways) or interpretation.

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 13:35:50 GMT, Jorn Vernee wrote: >> I reviewed the other use of `intrinsicData`, `tableSwitch`. I believe the >> intrinsic is actually a regression by growing the bytecode size - we should >> just select a MH via hash table lookup and invoke that MH, given all MHs in >> that

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Chen Liang
On Tue, 4 Mar 2025 11:56:50 GMT, Jorn Vernee wrote: >> Chen Liang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> We no longer load DelegateMH as we no longer rebind > > src/java.base/share/classes/java/lang/invoke/LambdaForm.java line 1

Re: RFR: 8350617: Improve MethodHandles.tableSwitch and remove intrinsicData

2025-03-04 Thread Jorn Vernee
On Tue, 25 Feb 2025 02:45:46 GMT, Chen Liang wrote: > The existing tableSwitch combinator's LF is unnecessarily complex. This patch > also simplifies the tableSwitch combinator. You're gonna have to explain this. Looking at the code, I think the optimization here is that, the LambdaForm will j

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Jorn Vernee
On Mon, 24 Feb 2025 22:08:53 GMT, Chen Liang wrote: > we should just select a MH via hash table lookup and invoke that MH I had something like this in an early prototype of the `tableSwitch` combinator, but it does not work, as it prevents the method handle calls for each case from being inlin

Re: RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

2025-03-04 Thread Jorn Vernee
On Mon, 24 Feb 2025 23:45:37 GMT, Chen Liang wrote: >> LF editor spins classes, this avoids the spinning overhead and should speed >> up non-capturing lambdas too. >> >> There may need to be additional intrinsic work for MH combinator lf bytecode >> generation. > > Chen Liang has updated the p

Re: Question about IO.println

2025-03-04 Thread David Alayachew
Sorry, forgot to link the thread. https://old.reddit.com/r/java/comments/1j2pr78/ And here is the comment in question. https://old.reddit.com/r/java/comments/1j2pr78/compact_source_files_and_instance_main_methods_jep/mfy9dof/

Question about IO.println

2025-03-04 Thread David Alayachew
Hello Amber Dev Team and Core Libs Dev Team, Another reddit discussion popped up today about IO.println(), and one of the comments mentioned that they wanted something along the lines of this. IO.println(num1, num2, num3); //prints out "1 2 3" I proposed that maybe a better option would be a Str

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v11]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v9]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 10:06:37 GMT, Ivan Walulya wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> * iwalulya review 2 >> * G1ConcurrentRefineWorkState -> G1ConcurrentRefineSweepState >> * some additional docu

Re: RFR: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

2025-03-04 Thread Jaikiran Pai
On Tue, 4 Mar 2025 10:15:18 GMT, Jaikiran Pai wrote: > I believe the proposed change here to package the necessary class files in > the JAR file, so that they are available when launching java with that JAR > file in the classpath, is correct. I just realized one thing - this `OutputAnalyzer`

RFR: 8344708: Compiler Implementation of Module Import Declarations

2025-03-04 Thread Jan Lahoda
This is a patch to finalize the module imports feature. Please see: https://bugs.openjdk.org/browse/JDK-8344700 - Commit messages: - Cleanup. - Cleanup. - Finalizing module imports. Changes: https://git.openjdk.org/jdk/pull/23801/files Webrev: https://webrevs.openjdk.org/?repo=j

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

2025-03-04 Thread duke
On Fri, 28 Feb 2025 20:40:37 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: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v9]

2025-03-04 Thread Ivan Walulya
On Tue, 4 Mar 2025 09:57:56 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that implements (currently Draft) JEP: G1: >> Improve Application Throughput with a More Efficient Write-Barrier. >> >> The reason for posting this early is that this is a large change, and the

Re: RFR: 8350811: [JMH] test foreign.StrLenTest failed with StringIndexOutOfBoundsException for size=451

2025-03-04 Thread Mikhail Yankelevich
On Mon, 3 Mar 2025 20:24:54 GMT, Vladimir Ivanov wrote: > test setup was updated to generate data of requested size. Looks good. Just 1 minor question test/micro/org/openjdk/bench/java/lang/foreign/ToCStringTest.java line 100: > 98: mollit anim id est laborum. > 99:

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v10]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v9]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 10:37:47 GMT, Martin Doerr wrote: > I got an error while testing java/foreign/TestUpcallStress.java on > linuxaarch64 with this PR: > > ``` > # Internal Error > (/openjdk-jdk-linux_aarch64-dbg/jdk/src/hotspot/share/gc/g1/g1CardTable.cpp:56), > pid=19044, tid=19159 > # gua

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

2025-03-04 Thread Matthias Baesken
On Fri, 28 Feb 2025 20:40:37 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: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v9]

2025-03-04 Thread Martin Doerr
On Tue, 4 Mar 2025 09:57:56 GMT, Thomas Schatzl wrote: >> Hi all, >> >> please review this change that implements (currently Draft) JEP: G1: >> Improve Application Throughput with a More Efficient Write-Barrier. >> >> The reason for posting this early is that this is a large change, and the

Re: RFR: 8350685: java/lang/System/SecurityManagerWarnings.java fails with --enable-preview

2025-03-04 Thread Jaikiran Pai
On Mon, 3 Mar 2025 13:33:05 GMT, Sean Mullan wrote: > Please review this fix to a test that fails when run with --enable-preview. > This fix is to add all the necessary utility classes imported by the test to > the JAR file, and not just the test classes. The description in the JBS issue wasn'

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 09:52:40 GMT, Thomas Schatzl wrote: >> src/hotspot/share/gc/g1/g1ConcurrentRefine.hpp line 84: >> >>> 82: // Tracks the current refinement state from idle to completion (and >>> reset back >>> 83: // to idle). >>> 84: class G1ConcurrentRefineWorkState { >> >> G1ConcurrentRef

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Mon, 3 Mar 2025 18:50:37 GMT, Ivan Walulya wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> * fix comment (trailing whitespace) >> * another assert when snapshotting at a safepoint. > > src/hotspot/share/gc/g

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v9]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Ivan Walulya
On Tue, 4 Mar 2025 08:26:10 GMT, Thomas Schatzl wrote: >> src/hotspot/share/gc/g1/g1CollectionSet.cpp line 310: >> >>> 308: verify_young_cset_indices(); >>> 309: >>> 310: size_t card_rs_length = >>> _policy->analytics()->predict_card_rs_length(in_young_only_phase); >> >> Why are we using

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Ivan Walulya
On Tue, 4 Mar 2025 08:36:58 GMT, Thomas Schatzl wrote: >> `cards_still_refer_to_cset` refers to cards that were found to have already >> been marked as `to-collection-set`. Renamed to >> `_cards_already_refer_to_cset`, would that be okay? > > Fwiw, this particular counter is just for statistics

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v8]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v7]

2025-03-04 Thread Thomas Schatzl
> Hi all, > > please review this change that implements (currently Draft) JEP: G1: > Improve Application Throughput with a More Efficient Write-Barrier. > > The reason for posting this early is that this is a large change, and the JEP > process is already taking very long with no end in sight

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Tue, 4 Mar 2025 08:22:03 GMT, Thomas Schatzl wrote: >> src/hotspot/share/gc/g1/g1ConcurrentRefineStats.hpp line 43: >> >>> 41: size_t _cards_clean;// Number of cards found clean. >>> 42: size_t _cards_not_parsable; // Number of cards we could not >>> parse and lef

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Mon, 3 Mar 2025 15:19:20 GMT, Albert Mingkun Yang wrote: > Can you elaborate on what the "special handling" would be, if we don's set > "claimed" for non-committed regions? the iteration code, would for every region check whether the region is actually committed or not. The `heap_region_it

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Mon, 3 Mar 2025 18:28:48 GMT, Ivan Walulya wrote: > Why are we using a prediction here? Quickly checking again, do we have the actual count here from somewhere? > Additionally, won't this prediction also include cards from the old gen > regions in case of mixed gcs? How do we reconcile that

Re: RFR: 8342382: Implementation of JEP G1: Improve Application Throughput with a More Efficient Write-Barrier [v5]

2025-03-04 Thread Thomas Schatzl
On Mon, 3 Mar 2025 20:02:16 GMT, Ivan Walulya wrote: >> Thomas Schatzl has updated the pull request incrementally with one >> additional commit since the last revision: >> >> * fix comment (trailing whitespace) >> * another assert when snapshotting at a safepoint. > > src/hotspot/share/gc/g