Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v48]

2024-11-08 Thread Mandy Chung
On Fri, 8 Nov 2024 17:07:55 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v6]

2024-11-08 Thread Alexey Semenyuk
On Sat, 9 Nov 2024 04:26:55 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v6]

2024-11-08 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v2]

2024-11-08 Thread Julian Waters
On Thu, 31 Oct 2024 19:07:42 GMT, Chris Plummer wrote: >>> I do wonder if mutex support can be implemented for Windows with >>> Acquire/ReleaseSRWLockExclusive. I know it's not strictly needed, but it >>> would be nice to have. Shame threads.h is not available with some Visual >>> Studio versi

RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider

2024-11-08 Thread jyxzwd
Use the built-in file system provider rather than the custom file system provider. Add "public static FileSystemProvider create" method in DefaultFileSystemProvider which is from java8API to be compatible against runtime. - Commit messages: - 8331467: Fix JDK-8331467 ImageReaderFa

Withdrawn: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider

2024-11-08 Thread jyxzwd
On Thu, 17 Oct 2024 03:37:38 GMT, jyxzwd wrote: > Use the built-in file system provider rather than the custom file system > provider. > Add "public static FileSystemProvider create" method in > DefaultFileSystemProvider which is from java8API to be compatible against > runtime. This pull req

RFR: 8331467: ImageReaderFactory can cause a ClassNotFoundException if the default FileSystemProvider is not the system-default provider

2024-11-08 Thread jyxzwd
Use the built-in file system provider rather than the custom file system provider. Add "public static FileSystemProvider create" method in DefaultFileSystemProvider which is from java8API to be compatible against runtime. - Commit messages: - 8331467: Fix JDK-8331467 ImageReaderFa

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

2024-11-08 Thread Weijun Wang
On Fri, 8 Nov 2024 13:49:55 GMT, Sean Mullan wrote: >> This is the implementation of JEP 486: Permanently Disable the Security >> Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The >> [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the >> main cha

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction [v2]

2024-11-08 Thread Sandhya Viswanathan
On Fri, 8 Nov 2024 20:25:10 GMT, Vladimir Ivanov wrote: >> Jatin Bhateja has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Creating specialized IR to shield pattern from subsequent transforms in >> optimization pipeline > > src/hotspot/sh

Re: RFR: 8310691: [REDO] [vectorapi] Refactor VectorShuffle implementation [v2]

2024-11-08 Thread Sandhya Viswanathan
On Sun, 6 Oct 2024 10:24:53 GMT, Quan Anh Mai wrote: >> Quan Anh Mai has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains one commit: >> >> [vectorapi] Refactor VectorShuffle implementation > > I have adapted the patch in accordance

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out [v2]

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 16:59:48 GMT, Quan Anh Mai wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scope >>

Re: RFR: 8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double

2024-11-08 Thread Joe Darcy
On Fri, 8 Nov 2024 10:10:28 GMT, Eirik Bjørsnøs wrote: > Please review this doc-only enhancement which links the word _equivalent_ in > `Float.NaN` and `Double.NaN` constant field descriptions to the > floating-point equivalence discussion in `Double`. > >> It is equivalent to the value retu

Re: RFR: 8327858: Improve spliterator and forEach for single-element immutable collections [v4]

2024-11-08 Thread Chen Liang
On Fri, 11 Oct 2024 15:49:33 GMT, Chen Liang wrote: >> Please review this patch that: >> 1. Implemented `forEach` to optimize for 1 or 2 element collections. >> 2. Implemented `spliterator` to optimize for a single element. >> >> The default implementations for multiple-element immutable collect

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

2024-11-08 Thread Sergey Chernyshev
On Thu, 7 Nov 2024 22:31:21 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 >> system

Re: RFR: 8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking [v10]

2024-11-08 Thread Ioi Lam
> This is an implementation of [JEP 483: Ahead-of-Time Class Loading & > Linking](https://openjdk.org/jeps/483). > > > Note: this is a combined PR of the following individual PRs > - https://github.com/openjdk/jdk/pull/20516 > - https://github.com/openjdk/jdk/pull/20517 > - https://github.co

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

2024-11-08 Thread Phil Race
On Fri, 1 Nov 2024 18:06:47 GMT, Alexey Ivanov wrote: > > I'd not looked at this test before but when I do the thing I noticed is > > that createPrivateValue is no longer used. But I don't see a problem with > > keeping the rest of the test. > > @prrace Do I understand correctly that _“`create

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

2024-11-08 Thread Phil Race
On Fri, 8 Nov 2024 13:49:55 GMT, Sean Mullan wrote: >> This is the implementation of JEP 486: Permanently Disable the Security >> Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The >> [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the >> main cha

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v5]

2024-11-08 Thread Alexander Matveev
On Fri, 8 Nov 2024 13:39:08 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8341137: Optimize long vector multiplication using x86 VPMUL[U]DQ instruction [v2]

2024-11-08 Thread Vladimir Ivanov
On Fri, 8 Nov 2024 08:15:32 GMT, Jatin Bhateja wrote: >> This patch optimizes LongVector multiplication by inferring VPMUL[U]DQ >> instruction for following IR pallets. >> >> >>MulVL ( AndV SRC1, 0x) ( AndV SRC2, 0x) >>MulVL (URShiftVL SRC1 , 32) (U

Integrated: 8343804: Show the default time zone with -XshowSettings option

2024-11-08 Thread Naoto Sato
On Thu, 7 Nov 2024 23:36:39 GMT, Naoto Sato wrote: > A small enhancement in the Java launcher. For diagnostic purposes, display > the default time zone ID with the `-XshowSettings` option. This pull request has now been integrated. Changeset: 03298558 Author:Naoto Sato URL: https:/

Re: RFR: 8343804: Show the default time zone with -XshowSettings option

2024-11-08 Thread Naoto Sato
On Thu, 7 Nov 2024 23:36:39 GMT, Naoto Sato wrote: > A small enhancement in the Java launcher. For diagnostic purposes, display > the default time zone ID with the `-XshowSettings` option. Thank you for your reviews! - PR Comment: https://git.openjdk.org/jdk/pull/21965#issuecommen

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Saint Wesonga
On Fri, 8 Nov 2024 11:31:40 GMT, Magnus Ihse Bursie wrote: >> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 >> Port_](https://openjdk.org/jeps/479). >> >> This is the summary of JEP 479: >>> Remove the source code and build support for the Windows 32-bit x86 port. >>>

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

2024-11-08 Thread Archie Cobbs
> Please review this patch which removes unnecessary `@SuppressWarnings` > annotations. Archie Cobbs has updated the pull request incrementally with one additional commit since the last revision: Put back @SuppressWarnings annotations to be fixed by JDK-8343286. - Changes: - a

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

2024-11-08 Thread Archie Cobbs
> 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 incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ei

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Vladimir Kozlov
On Fri, 8 Nov 2024 11:31:40 GMT, Magnus Ihse Bursie wrote: >> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 >> Port_](https://openjdk.org/jeps/479). >> >> This is the summary of JEP 479: >>> Remove the source code and build support for the Windows 32-bit x86 port. >>>

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Kim Barrett
On Fri, 8 Nov 2024 18:26:25 GMT, Saint Wesonga wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Inline buildJniFunctionName > > src/hotspot/os/posix/include/jvm_md.h line 41: > >> 39: >> 40: #define JNI_ONLO

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Kim Barrett
On Fri, 8 Nov 2024 11:31:40 GMT, Magnus Ihse Bursie wrote: >> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 >> Port_](https://openjdk.org/jeps/479). >> >> This is the summary of JEP 479: >>> Remove the source code and build support for the Windows 32-bit x86 port. >>>

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

2024-11-08 Thread Harshitha Onkar
On Fri, 1 Nov 2024 20:26:45 GMT, Alexey Ivanov wrote: >>> Is it intentional? >> >> It was probably by mistake. but you are right, I see it mentioned already in >> the doc. I don't think we need to mention it again? > > It has a value… when it's mentioned with `@see`, the link is present in the

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Saint Wesonga
On Fri, 8 Nov 2024 11:31:40 GMT, Magnus Ihse Bursie wrote: >> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 >> Port_](https://openjdk.org/jeps/479). >> >> This is the summary of JEP 479: >>> Remove the source code and build support for the Windows 32-bit x86 port. >>>

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

2024-11-08 Thread Alexey Ivanov
On Tue, 29 Oct 2024 17:06:08 GMT, Harshitha Onkar wrote: >> src/java.desktop/share/classes/java/awt/MouseInfo.java line 68: >> >>> 66: * @throws SecurityException if a security manager exists and its >>> 67: *{@code checkPermission} method doesn't allow the >>> operation >

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v13]

2024-11-08 Thread Saint Wesonga
On Wed, 30 Oct 2024 11:05:17 GMT, Magnus Ihse Bursie wrote: >> make/scripts/compare.sh line 1457: >> >>> 1455: THIS_SEC_BIN="$THIS_SEC_DIR/sec-bin.zip" >>> 1456: if [ "$OPENJDK_TARGET_OS" = "windows" ]; then >>> 1457: JGSS_WINDOWS_BIN="jgss-windows-x64-bin.zip" >> >>

Re: RFR: 8317542: Specjvm::xml have scalability issue for high vCPU numbers [v3]

2024-11-08 Thread Joe Wang
On Thu, 7 Nov 2024 18:30:22 GMT, Vladimir Ivanov wrote: >> The synchronization block may be substituted by the 'volatile' variable >> smaller synchronization block. >> It reduce the total blocking time for the specjvm2008::xml.validation >> workload and improve the reported score. >> Scores for

Re: RFR: 8343804: Show the default time zone with -XshowSettings option

2024-11-08 Thread Naoto Sato
On Fri, 8 Nov 2024 04:40:15 GMT, Jaikiran Pai wrote: > Hello Naoto, this looks good to me. The test itself could assert that the > printed timezone is indeed the default timezone, but if you prefer it in its > current form, that's fine too. Thank you, Jai. I considererd that too, i.e. affirmin

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out [v2]

2024-11-08 Thread Quan Anh Mai
> Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k = lock.getAndAdd(1) + 1; > while (k != i * 2) { >

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v48]

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 17:07:55 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v48]

2024-11-08 Thread Severin Gehwolf
> Please review this patch which adds a jlink mode to the JDK which doesn't > need the packaged modules being present. A.k.a run-time image based jlink. > Fundamentally this patch adds an option to use `jlink` even though your JDK > install might not come with the packaged modules (directory `jm

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v4]

2024-11-08 Thread Chen Liang
On Fri, 8 Nov 2024 13:56:38 GMT, Viktor Klang wrote: >> Make final adjustments to drop PreviewFeature and updating the @ since >> markers. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > > Updating the copyright year of the

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

Re: RFR: 8343844: Add benchmarks for superword/autovectorization in FFM BulkOperations

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 16:13:28 GMT, Per Minborg wrote: > This PR proposed to add a few benchmarks using superword/autovectorization Marked as reviewed by mcimadamore (Reviewer). - PR Review: https://git.openjdk.org/jdk/pull/21988#pullrequestreview-2424305115

Integrated: 8343844: Add benchmarks for superword/autovectorization in FFM BulkOperations

2024-11-08 Thread Per Minborg
On Fri, 8 Nov 2024 16:13:28 GMT, Per Minborg wrote: > This PR proposed to add a few benchmarks using superword/autovectorization This pull request has now been integrated. Changeset: 2fb0c1dd Author:Per Minborg URL: https://git.openjdk.org/jdk/commit/2fb0c1dd62f1c690cf6b78f5cdfe18b

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v47]

2024-11-08 Thread Severin Gehwolf
On Fri, 8 Nov 2024 10:42:15 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v4]

2024-11-08 Thread Chen Liang
On Fri, 8 Nov 2024 13:56:38 GMT, Viktor Klang wrote: >> Make final adjustments to drop PreviewFeature and updating the @ since >> markers. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > > Updating the copyright year of the

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v4]

2024-11-08 Thread Viktor Klang
On Fri, 8 Nov 2024 16:17:39 GMT, Chen Liang wrote: >> Viktor Klang has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updating the copyright year of the Gatherer benchmarks > > The removal of preview toggles look good. Confirmed that since

RFR: 8343844: Add benchmarks for superword/autovectorization in FFM BulkOperations

2024-11-08 Thread Per Minborg
This PR proposed to add a few benchmarks using superword/autovectorization - Commit messages: - Add benchmarks Changes: https://git.openjdk.org/jdk/pull/21988/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21988&range=00 Issue: https://bugs.openjdk.org/browse/JDK-834384

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

2024-11-08 Thread Sergey Chernyshev
On Thu, 7 Nov 2024 22:31:21 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 >> system

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Jorn Vernee
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 12:22:54 GMT, Maurizio Cimadamore wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scop

RFR: 8343780: Add since checker tests to the Tools area modules and add missing @since to jdk.jfr.Recording

2024-11-08 Thread Nizar Benalla
Can I please get a review for this PR that add tests to verify the value of `@since` tags to the Tools area modules. The test is described in this [email](https://mail.openjdk.org/pipermail/jdk-dev/2024-October/009474.html). The benefit from this is helping API authors and reviewer validate the

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v47]

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 10:42:15 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v47]

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 10:42:15 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v4]

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 13:56:38 GMT, Viktor Klang wrote: >> Make final adjustments to drop PreviewFeature and updating the @ since >> markers. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > > Updating the copyright year of the

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
On Fri, 8 Nov 2024 12:22:54 GMT, Maurizio Cimadamore wrote: >> Hi, >> >> This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. >> The lock-step spin lock is implemented as with `lock` being an >> `AtomicInteger`: >> >> // Keep the 2 threads operating on the same scop

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v5]

2024-11-08 Thread Alexey Semenyuk
On Fri, 8 Nov 2024 13:39:08 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> un

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v4]

2024-11-08 Thread Viktor Klang
> Make final adjustments to drop PreviewFeature and updating the @ since > markers. Viktor Klang has updated the pull request incrementally with one additional commit since the last revision: Updating the copyright year of the Gatherer benchmarks - Changes: - all: https://git.

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-11-08 Thread Patricio Chilano Mateo
On Fri, 8 Nov 2024 13:43:14 GMT, Patricio Chilano Mateo wrote: >> src/hotspot/share/oops/stackChunkOop.inline.hpp line 189: >> >>> 187: inline ObjectMonitor* stackChunkOopDesc::current_pending_monitor() >>> const { >>> 188: ObjectWaiter* waiter = object_waiter(); >>> 189: if (waiter != nul

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v47]

2024-11-08 Thread Severin Gehwolf
On Fri, 8 Nov 2024 10:42:15 GMT, Severin Gehwolf wrote: >> Please review this patch which adds a jlink mode to the JDK which doesn't >> need the packaged modules being present. A.k.a run-time image based jlink. >> Fundamentally this patch adds an option to use `jlink` even though your JDK >> i

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-11-08 Thread Patricio Chilano Mateo
On Wed, 30 Oct 2024 17:23:31 GMT, Coleen Phillimore wrote: >> Patricio Chilano Mateo has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Fix in JvmtiEnvBase::get_locked_objects_in_frame() >> - Add ObjectWaiter::at_monitorenter > > src/hot

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

2024-11-08 Thread Sean Mullan
> This is the implementation of JEP 486: Permanently Disable the Security > Manager. See [JEP 486](https://openjdk.org/jeps/486) for more details. The > [CSR](https://bugs.openjdk.org/browse/JDK-8338412) describes in detail the > main changes in the JEP and also includes an apidiff of the specif

Re: RFR: 8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning [v4]

2024-11-08 Thread Patricio Chilano Mateo
> This is the implementation of JEP 491: Synchronize Virtual Threads without > Pinning. See [JEP 491](https://bugs.openjdk.org/browse/JDK-8337395) for > further details. > > In order to make the code review easier the changes have been split into the > following initial 4 commits: > > - Change

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v3]

2024-11-08 Thread Viktor Klang
On Fri, 8 Nov 2024 13:43:26 GMT, Viktor Klang wrote: >> Make final adjustments to drop PreviewFeature and updating the @ since >> markers. > > Viktor Klang has updated the pull request with a new target base due to a > merge or a rebase. The pull request now contains three commits: > > - Upda

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v3]

2024-11-08 Thread Viktor Klang
> Make final adjustments to drop PreviewFeature and updating the @ since > markers. Viktor Klang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits: - Updating copyright years and removing an unneccessary import for Gathe

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v4]

2024-11-08 Thread Julian Waters
On Fri, 8 Nov 2024 13:10:48 GMT, Alexey Semenyuk wrote: >> Julian Waters has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove global memHandle, would've liked to keep it as a comment :( > > src/jdk.jpackage/windows/native/libjpackage/V

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v5]

2024-11-08 Thread Julian Waters
> After 8339120, gcc began catching many different instances of unused code in > the Windows specific codebase. Some of these seem to be bugs. I've taken the > effort to mark out all the relevant globals and locals that trigger the > unused warnings and addressed all of them by commenting out th

Re: RFR: 8342682: Errors related to unused code on Windows after 8339120 in dt_shmem jdwp security and jpackage [v4]

2024-11-08 Thread Alexey Semenyuk
On Thu, 31 Oct 2024 07:18:35 GMT, Julian Waters wrote: >> After 8339120, gcc began catching many different instances of unused code in >> the Windows specific codebase. Some of these seem to be bugs. I've taken the >> effort to mark out all the relevant globals and locals that trigger the >> u

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v46]

2024-11-08 Thread Severin Gehwolf
On Fri, 8 Nov 2024 11:02:10 GMT, Alan Bateman wrote: >> There already is. See: >> https://github.com/openjdk/jdk/pull/14787/files#diff-b6b47eacb6060eb0a583a253f322f5d274063e082a12a72e8628a6e1ba6cdd3eR466-R471 >> >> It's also tested with >> [PatchedJDKModuleJlinkTest.java](https://github.com/ope

Re: RFR: 8342707: Prepare Gatherers for graduation from Preview [v2]

2024-11-08 Thread Alan Bateman
On Mon, 4 Nov 2024 16:10:47 GMT, Viktor Klang wrote: >> Make final adjustments to drop PreviewFeature and updating the @ since >> markers. > > Viktor Klang has updated the pull request incrementally with one additional > commit since the last revision: > > Updating copyright years and removi

Re: RFR: 8342979: Start of release updates for JDK 25 [v5]

2024-11-08 Thread Pavel Rappo
> Prepare for JDK 25. Pavel Rappo 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 seven additional commits since the last revision: - Update --releas

Re: RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Maurizio Cimadamore
On Fri, 8 Nov 2024 11:56:08 GMT, Quan Anh Mai wrote: > Hi, > > This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. > The lock-step spin lock is implemented as with `lock` being an > `AtomicInteger`: > > // Keep the 2 threads operating on the same scope > int k =

RFR: 8343793: Test java/foreign/TestMemorySession.java is timing out

2024-11-08 Thread Quan Anh Mai
Hi, This patch fixes the deadlock in `TestMemorySession#testAcquireCloseRace`. The lock-step spin lock is implemented as with `lock` being an `AtomicInteger`: // Keep the 2 threads operating on the same scope int k = lock.getAndAdd(1) + 1; while (k != i * 2) { Thread.onSpinWa

Re: RFR: 8211033: Clean up the processing -classpath argument not to set LM_CLASS

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 08:51:38 GMT, Jaikiran Pai wrote: > Can I please get a review of this change which addresses > https://bugs.openjdk.org/browse/JDK-8211033? > > As noted in that issue, this is a clean up of the code which determines the > "mode" through with the `java` application is being l

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v33]

2024-11-08 Thread Magnus Ihse Bursie
> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 > Port_](https://openjdk.org/jeps/479). > > This is the summary of JEP 479: >> Remove the source code and build support for the Windows 32-bit x86 port. >> This port was [deprecated for removal in JDK >> 21](https://openjd

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v30]

2024-11-08 Thread Magnus Ihse Bursie
On Wed, 6 Nov 2024 21:24:14 GMT, Kim Barrett wrote: >> @kimbarrett I added this to https://bugs.openjdk.org/browse/JDK-8343703. You >> are not as explicit here as the other places you commented that it is okay >> to do as a follow-up, but I'll assume that was what you meant. If not, let >> me

Re: RFR: 8339783: Implement JEP 479: Remove the Windows 32-bit x86 Port [v32]

2024-11-08 Thread Magnus Ihse Bursie
> This is the implementation of [JEP 479: _Remove the Windows 32-bit x86 > Port_](https://openjdk.org/jeps/479). > > This is the summary of JEP 479: >> Remove the source code and build support for the Windows 32-bit x86 port. >> This port was [deprecated for removal in JDK >> 21](https://openjd

RFR: 8343819: Link Float.NaN and Double.NaN to equivalence discussion in Double

2024-11-08 Thread Eirik Bjørsnøs
Please review this doc-only enhancement which links the word _equivalent_ in `Float.NaN` and `Double.NaN` constant field descriptions to the floating-point equivalence discussion in `Double`. > It is equivalent to the value returned by{@code > Float.intBitsToFloat(0x7fc0)}. For readers n

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Fri, 9 Aug 2024 10:14:10 GMT, Johan Sjölen wrote: >> - `VMATree` is used instead of `SortedLinkList` in new class >> `VirtualMemoryTrackerWithTree`. >> - A wrapper/helper `RegionTree` is made around VMATree to make some calls >> easier. >> - Both old and new versions exist in the code an

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Tue, 20 Aug 2024 07:33:06 GMT, Afshin Zafari wrote: >> src/hotspot/share/nmt/nmtNativeCallStackStorage.hpp line 94: >> >>> 92: if (si._stack_index < 0 || si._stack_index >= _stacks.length()) { >>> 93: return _fake_stack; >>> 94: } >> >> Is that a leftover from debugging? >> >>

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Tue, 6 Aug 2024 07:12:13 GMT, Johan Sjölen wrote: >> When it is said that an algorithm has the log(n) time-complexity, it means >> that if the input grows n times, the times grows log(n) times. The tree >> data-structure has log(n) time-complexity. VMATree may have not exactly >> log(n) res

Re: RFR: 8311302: Implement JEP 493: Linking Run-Time Images without JMODs [v46]

2024-11-08 Thread Alan Bateman
On Fri, 8 Nov 2024 10:34:43 GMT, Severin Gehwolf wrote: >> That's okay, I wasn't initially sure why they were changed. I'm looking at >> JRTArchiveFile.toEntry and wondering there should be a follow-up issue (not >> this PR) to fail early if running on a patched run-time even though it would

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 5 Aug 2024 17:23:46 GMT, Afshin Zafari wrote: >> It is considered that `malloc` or other external events are the same for two >> cases. If we know that there might be some noise for one or another, we >> should check and disable them. This is the approach I have talked. How can >> we a

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Mon, 5 Aug 2024 17:20:24 GMT, Afshin Zafari wrote: >> Why would the execution time grow logarithmically when we do linearly more >> work? When we run this with `N2` we will perform `10_000 * log(10_000, 2)` >> units of work, and for `N1` we will perform `1_000 * log(1_000, 2)` units of >> w

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Fri, 9 Aug 2024 10:03:52 GMT, Johan Sjölen wrote: >> The main purpose of the `if (...)` cases is to find if the request to apply >> the delta is valid or not. There are related assertions in VirtualMemory but >> not so informative. Also, using `log_debug` lets the build proceed and just >>

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 5 Aug 2024 16:54:40 GMT, Afshin Zafari wrote: >> This applies the reserve/commit regardless of outcome, so slightly different. > > The main purpose of the `if (...)` cases is to find if the request to apply > the delta is valid or not. There are related assertions in VirtualMemory but >

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Mon, 5 Aug 2024 08:42:43 GMT, Johan Sjölen wrote: >> Yeah, that doesn't seem like a problem. >> >> ```c++ >> for (int i = 0; i < mt_number_of_types; i++) { >> r = diff.flag[i].reserve; >> c = diff.flag[i].commit; >> flag = NMTUtil::index_to_flag(i); >> VirtualMemory* mem = V

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 5 Aug 2024 08:41:49 GMT, Johan Sjölen wrote: >> In `MemoryFileTracker`, the changes in commit/reserve are applied to a local >> `VirtualMemorySnapshot`. Here we have to apply them to the global >> `VirtualMemorySummary`. > > Yeah, that doesn't seem like a problem. > > ```c++ > for (i

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Fri, 9 Aug 2024 15:05:59 GMT, Johan Sjölen wrote: >> src/hotspot/share/nmt/regionsTree.hpp line 46: >> >>> 44: using Node = VMATree::TreapNode; >>> 45: >>> 46: class NodeHelper : public Node { >> >> This shouldn't inherit from `Node` and then have each instance be cast into >> `NodeHel

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 5 Aug 2024 16:50:00 GMT, Afshin Zafari wrote: >> The bool argument is just passed along. >> >> ```c++ >> RegionsTree(bool with_storage) : VMATree(), _ncs_storage(with_storage) { >> } > > Done. > For my curiosity, what is the advantage? 1. No malloc 2. No indirection, so no cache mis

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Fri, 9 Aug 2024 09:05:37 GMT, Johan Sjölen wrote: >> Done. >> For my curiosity, what is the advantage? > > 1. No malloc > 2. No indirection, so no cache misses > 3. A clear lifetime and clear ownership, both are bound to the `RegionsTree` > object OK. Thanks for your description. --

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 14 Oct 2024 08:50:52 GMT, Afshin Zafari wrote: >> Why is this assert triggered? That sounds like a bug. > > The assertion that happens during building jdk-image: > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # Internal Error > (/home/afshin/scratch/83

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Sat, 12 Oct 2024 14:24:15 GMT, Johan Sjölen wrote: >> No, returned back. >> This assert is triggered: >> >> # Internal Error >> (/home/afshin/scratch/833XX_nmt_VMT_with_tree/src/hotspot/share/utilities/growableArray.hpp:142), >> pid=1972883, tid=1972931 >> # assert(0 <= i && i < _len) fai

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Fri, 27 Sep 2024 09:57:35 GMT, Afshin Zafari wrote: >> Removed. > > No, returned back. > This assert is triggered: > > # Internal Error > (/home/afshin/scratch/833XX_nmt_VMT_with_tree/src/hotspot/share/utilities/growableArray.hpp:142), > pid=1972883, tid=1972931 > # assert(0 <= i && i < _

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Fri, 27 Sep 2024 09:46:27 GMT, Afshin Zafari wrote: >> src/hotspot/share/nmt/nmtNativeCallStackStorage.hpp line 93: >> >>> 91: >>> 92: const inline NativeCallStack& get(StackIndex si) { >>> 93: if (is_invalid(si) || si >= _stacks.length()) { >> >> I don't think this should be here? >

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Gerard Ziemski
On Wed, 14 Aug 2024 19:11:58 GMT, Gerard Ziemski wrote: >> - `VMATree` is used instead of `SortedLinkList` in new class >> `VirtualMemoryTrackerWithTree`. >> - A wrapper/helper `RegionTree` is made around VMATree to make some calls >> easier. >> - Both old and new versions exist in the code

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Gerard Ziemski
On Wed, 14 Aug 2024 19:13:49 GMT, Gerard Ziemski wrote: >> src/hotspot/share/nmt/memReporter.cpp line 467: >> >>> 465: >>> 466: if (reserved_and_committed) >>> 467: return; >> >> This looks better, but now that I got more comfortable with anonymous local >> functions using lambd

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Thomas Stuefe
On Thu, 7 Nov 2024 12:48:12 GMT, Afshin Zafari wrote: >> - `VMATree` is used instead of `SortedLinkList` in new class >> `VirtualMemoryTrackerWithTree`. >> - A wrapper/helper `RegionTree` is made around VMATree to make some calls >> easier. >> - Both old and new versions exist in the code a

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Mon, 14 Oct 2024 18:56:47 GMT, Johan Sjölen wrote: > I think it's actually the opposite: None of the committed regions will > survive after this function. You maybe missed my point when said " ... some extra committed size in NMT reports". I emphasize on the " the NMT reports", since the co

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 14 Oct 2024 13:22:54 GMT, Afshin Zafari wrote: > > Yes, but this code is incorrect. So we should have a test detecting this, > > but we do not, and so this is under-tested. > > This code finds committed regions within a Stack region if they are not > accounted by NMT so far, IIUC. By r

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Mon, 14 Oct 2024 12:37:05 GMT, Johan Sjölen wrote: > Yes, but this code is incorrect. So we should have a test detecting this, but > we do not, and so this is under-tested. This code finds committed regions within a Stack region if they are not accounted by NMT so far, IIUC. By running this

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Afshin Zafari
On Fri, 27 Sep 2024 16:23:29 GMT, Gerard Ziemski wrote: > Should we say then, that this is blocked by those 2 issues? Is it OK then if > I wait till those get checked in before verifying the performance benefits if > the new implementation? The performance was the main motivation here, correct?

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Mon, 14 Oct 2024 10:24:54 GMT, Afshin Zafari wrote: > > ```c++ > > region->add_committed_region(committed_start, committed_size, ncs); // <-- > > LOST! > > ``` > > The `region` is not a VMATree::node, it is a `ReservedMemoryRegion*`. I don't understand what you're trying to say here. Do you

Re: RFR: 8337217: Port VirtualMemoryTracker to use VMATree

2024-11-08 Thread Johan Sjölen
On Fri, 27 Sep 2024 16:10:59 GMT, Gerard Ziemski wrote: > > > Rather than having 2 implementations, I'd like to see us aiming for > > > integration for JDK-25 after forking 24, so integration in December. That > > > would give us 6 months of ensuring stability of the new implementation > > > b

  1   2   >