RFR: 8313231: Redundant if statement in ZoneInfoFile

2023-07-26 Thread John Jiang
if (i < savingsInstantTransitions.length) { // javazic writes the last GMT offset into index 0! if (i < savingsInstantTransitions.length) { offsets[0] = standardOffsets[standardOffsets.length - 1] * 1000; nOffsets = 1; } ... } The second if statement looks unnecess

Re: RFR: 8312572: JDK 21 RDP2 L10n resource files update

2023-07-26 Thread Justin Lu
On Thu, 27 Jul 2023 00:16:34 GMT, Damon Nguyen wrote: >> Please review this PR which contains the translations for updates to >> localized resources in the JDK since RDP1. >> >> Included in this change are improved translations for certain values, which >> also includes global updates for tran

Integrated: 8311653: Modify -XshowSettings launcher behavior

2023-07-26 Thread Sean Coffey
On Mon, 24 Jul 2023 16:00:52 GMT, Sean Coffey wrote: > Modify the -XshowSettings launcher option to print non-verbose settings > details of all components by default. Verbose settings details will be > printed via the -XshowSettings:all option. Modify the -XshowSettings option > to reject bad

Re: RFR: 8311653: Modify -XshowSettings launcher behavior [v3]

2023-07-26 Thread Sean Coffey
On Wed, 26 Jul 2023 09:22:14 GMT, Sean Coffey wrote: >> Modify the -XshowSettings launcher option to print non-verbose settings >> details of all components by default. Verbose settings details will be >> printed via the -XshowSettings:all option. Modify the -XshowSettings option >> to reject

Re: RFR: 8311517: Add performance information to ArrayList javadoc

2023-07-26 Thread dan1st
On Wed, 26 Jul 2023 21:59:41 GMT, Stuart Marks wrote: > Regarding the text of the change: should getFirst() and getLast() be > mentioned? They were added by Sequenced Collections, and they run in constant > time. Also, while add() and addLast() run in amortized constant time (because > of the

Re: RFR: 8311517: Add performance information to ArrayList javadoc [v2]

2023-07-26 Thread dan1st
> The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add > addFirst(), removeFirst() and reversed() methods to lists. > However, the Javadoc of List mentions: > > The size, isEmpty, get, set, iterator, and listIterator operations run in > constant time. The add operation run

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread Alan Bateman
On Thu, 27 Jul 2023 06:07:42 GMT, David Holmes wrote: >> Yes, if you change it CHECK_EXCEPTION_LEAVE(1)then any pending exception >> will be printed and it will exit with 1; if there is no pending exception >> then it exit with the value of `ret` as the exit status, which will be 0 >> here. >

Re: RFR: 8313023: Return value corrupted when using CCS + isTrivial (mainline)

2023-07-26 Thread Feilong Jiang
On Tue, 25 Jul 2023 21:28:23 GMT, Jorn Vernee wrote: > @TheRealMDoerr @feilongjiang Just a heads up: this patch touches the PPC and > RISC-V ports as well, which I'm not able to test. I've just eye-balled the > needed changes. I don't think there will be an issue since the code structure > is

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread David Holmes
On Thu, 27 Jul 2023 05:45:59 GMT, Alan Bateman wrote: >> I am not incredibly familiar with the java launcher but I believe what I >> have is a mistake. I will change it to `CHECK_EXCEPTION_LEAVE(1)` instead. > > Yes, if you change it CHECK_EXCEPTION_LEAVE(1)then any pending exception will > be

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Alan Bateman
On Thu, 27 Jul 2023 01:30:01 GMT, Serguei Spitsyn wrote: > Nit: normal indent for native code is 2. The .c files I sampled in test/hotspot/jtreg/serviceability/jvmti/** used 4, either is okay as this is just two tiny JNI functions. - PR Review Comment: https://git.openjdk.org/jdk/

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread Alan Bateman
On Wed, 26 Jul 2023 21:52:04 GMT, Matias Saavedra Silva wrote: >> src/java.base/share/native/libjli/java.c line 464: >> >>> 462: if (dumpSharedSpaces) { >>> 463: CHECK_EXCEPTION_LEAVE(0); >>> 464: LEAVE(); >> >> What is exit status ($?) when -Xshare:dump fails. It looks like an

Re: RFR: 8311630: [s390] Implementation of Foreign Function & Memory API (Preview) [v3]

2023-07-26 Thread sid8606
On Tue, 25 Jul 2023 21:26:06 GMT, Jorn Vernee wrote: >> sid8606 has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address suggestions from Jorn Vernee > > src/hotspot/cpu/s390/downcallLinker_s390.cpp line 162: > >> 160: >> 161: assert(

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Serguei Spitsyn
On Fri, 21 Jul 2023 18:01:45 GMT, Alan Bateman wrote: > Thread::getState is an API for monitoring and management purposes to report > the thread state. If a virtual thread is parked with LockSupport.parkNanos, > its state is reported as WAITING when it should be TIMED_WAITING. JVM TI > GetThr

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Serguei Spitsyn
On Fri, 21 Jul 2023 18:01:45 GMT, Alan Bateman wrote: > Thread::getState is an API for monitoring and management purposes to report > the thread state. If a virtual thread is parked with LockSupport.parkNanos, > its state is reported as WAITING when it should be TIMED_WAITING. JVM TI > GetThr

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Serguei Spitsyn
On Wed, 26 Jul 2023 17:38:24 GMT, Alan Bateman wrote: >> I can't see why it would be needed. > >> It would be nice to add a short comment why this is needed. > > It's not needed here, it was needed in another version of the tests. While > benign, I can remove it to avoid any confusion. Thanks.

Re: RFR: 8312572: JDK 21 RDP2 L10n resource files update

2023-07-26 Thread Damon Nguyen
On Wed, 26 Jul 2023 20:41:36 GMT, Justin Lu wrote: > Please review this PR which contains the translations for updates to > localized resources in the JDK since RDP1. > > Included in this change are improved translations for certain values, which > also includes global updates for translations

Re: RFR: 8298095: Refine implSpec for SegmentAllocator [v3]

2023-07-26 Thread Maurizio Cimadamore
On Wed, 26 Jul 2023 14:44:01 GMT, Per Minborg wrote: >> This PR suggests refining the `@implSpec` for the SegmentAllocator::allocate >> methods as well as clarifying the docs a bit more. Also, a local variable is >> renamed. > > Per Minborg has updated the pull request incrementally with one ad

Re: RFR: 8298095: Refine implSpec for SegmentAllocator [v3]

2023-07-26 Thread Maurizio Cimadamore
On Wed, 26 Jul 2023 14:44:01 GMT, Per Minborg wrote: >> This PR suggests refining the `@implSpec` for the SegmentAllocator::allocate >> methods as well as clarifying the docs a bit more. Also, a local variable is >> renamed. > > Per Minborg has updated the pull request incrementally with one ad

Re: RFR: 8310643: Misformatted copyright messages in FFM

2023-07-26 Thread Maurizio Cimadamore
On Wed, 26 Jul 2023 19:28:04 GMT, Jorn Vernee wrote: >> This PR suggests updating some of the ill-formed copyright headers in the >> FFM API and the implementation and test thereof. >> >> Some of the test files will have now the "classpath" exception. Is this >> correct? > >> Some of the test

Re: RFR: 8311517: ArrayList javadoc improvements related to sequenced collection updates

2023-07-26 Thread Stuart Marks
On Wed, 26 Jul 2023 11:02:20 GMT, dan1st wrote: > The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add > addFirst(), removeFirst() and reversed() methods to lists. > However, the Javadoc of List mentions: > > The size, isEmpty, get, set, iterator, and listIterator operati

Re: RFR: 8311517: ArrayList javadoc improvements related to sequenced collection updates

2023-07-26 Thread dan1st
On Wed, 26 Jul 2023 11:02:20 GMT, dan1st wrote: > The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add > addFirst(), removeFirst() and reversed() methods to lists. > However, the Javadoc of List mentions: > > The size, isEmpty, get, set, iterator, and listIterator operati

Re: RFR: 8311517: ArrayList javadoc improvements related to sequenced collection updates

2023-07-26 Thread Stuart Marks
On Wed, 26 Jul 2023 11:02:20 GMT, dan1st wrote: > The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add > addFirst(), removeFirst() and reversed() methods to lists. > However, the Javadoc of List mentions: > > The size, isEmpty, get, set, iterator, and listIterator operati

Re: RFR: 8311517: ArrayList javadoc improvements related to sequenced collection updates

2023-07-26 Thread Stuart Marks
On Wed, 26 Jul 2023 11:02:20 GMT, dan1st wrote: > The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add > addFirst(), removeFirst() and reversed() methods to lists. > However, the Javadoc of List mentions: > > The size, isEmpty, get, set, iterator, and listIterator operati

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread Matias Saavedra Silva
On Wed, 26 Jul 2023 18:52:41 GMT, Alan Bateman wrote: >> Matias Saavedra Silva has updated the pull request with a new target base >> due to a merge or a rebase. The pull request now contains five commits: >> >> - Merge fix >> - Restores java loaders >> - Ioi and David comments >> - Windows

Re: RFR: 8311104: dangling-gsl warning in libwixhelper.cpp

2023-07-26 Thread Alexander Matveev
On Wed, 26 Jul 2023 18:42:47 GMT, Alexey Semenyuk wrote: > 8311104: dangling-gsl warning in libwixhelper.cpp Looks good. - Marked as reviewed by almatvee (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/15044#pullrequestreview-1548666131

Re: [jdk21] Integrated: 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms

2023-07-26 Thread Alan Bateman
On Wed, 26 Jul 2023 19:22:08 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList java/util/concurrent/tck/JSR166TestCase.java on > select platforms. JSR166TestCase.java runs >4000 tests so excluding this discussion is not good. Maybe JDK-8312980 needs to be bumped to a P1/P2 or a w

Re: RFR: 8311104: dangling-gsl warning in libwixhelper.cpp

2023-07-26 Thread Alexey Semenyuk
On Wed, 26 Jul 2023 20:05:11 GMT, Alexander Matveev wrote: >> 8311104: dangling-gsl warning in libwixhelper.cpp > > src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp line 75: > >> 73: void findInstalledProducts(const Guid& upgradeCode, >> 74:

RFR: 8312572: JDK 21 RDP2 L10n resource files update

2023-07-26 Thread Justin Lu
Please review this PR which contains the IPS translations for updates to localized resources in the JDK since RDP1. Included in this change are improved translations for certain values, which also includes global updates for translations of the words 'annotation' and 'file' for zh_CN. The foll

Re: RFR: 8310929: Optimization for Integer.toString [v13]

2023-07-26 Thread Quan Anh Mai
On Tue, 18 Jul 2023 01:49:17 GMT, 温绍锦 wrote: >> Optimization for: >> Integer.toString >> Long.toString >> StringBuilder#append(int) >> >> # Benchmark Result >> >> >> sh make/devkit/createJMHBundle.sh >> bash configure --with-jmh=build/jmh/jars >> make test TEST="micro:java.lang.Integers.toStri

Re: RFR: 8311104: dangling-gsl warning in libwixhelper.cpp

2023-07-26 Thread Alexander Matveev
On Wed, 26 Jul 2023 18:42:47 GMT, Alexey Semenyuk wrote: > 8311104: dangling-gsl warning in libwixhelper.cpp src/jdk.jpackage/windows/native/libwixhelper/libwixhelper.cpp line 75: > 73: void findInstalledProducts(const Guid& upgradeCode, > 74: std::ve

Re: RFR: 8312411: MessageFormat.formatToCharacterIterator() can be improved

2023-07-26 Thread Naoto Sato
On Wed, 26 Jul 2023 07:39:09 GMT, Justin Lu wrote: > Please review this change which makes > `MessageFormat.formatToCharacterIterator` fail fast(er). The return statement > is also modified to call toArray() as `toArray(new T[0])` over `toArray(new > T[size])`. Marked as reviewed by naoto (R

Re: RFR: 8312416: Tests in Locale should have more descriptive names

2023-07-26 Thread Naoto Sato
On Wed, 26 Jul 2023 07:11:16 GMT, Justin Lu wrote: > Please review this change which renames tests for Locale from > `bugNNN.java` to something more descriptive. > > In addition to the name changes, accompanying copyright year, name usage > within the test, and other minor changes were inc

Re: [jdk21] Integrated: 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms

2023-07-26 Thread Daniel D . Daugherty
On Wed, 26 Jul 2023 19:24:33 GMT, Joe Darcy wrote: >> A trivial fix to ProblemList java/util/concurrent/tck/JSR166TestCase.java on >> select platforms. > > Marked as reviewed by darcy (Reviewer). @jddarcy - Thanks for the lightning fast review! - PR Comment: https://git.openjdk.or

[jdk21] Integrated: 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms

2023-07-26 Thread Daniel D . Daugherty
A trivial fix to ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms. - Commit messages: - 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms Changes: https://git.openjdk.org/jdk21/pull/145/files Webrev: https://webrevs.

Re: [jdk21] RFR: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Daniel D . Daugherty
On Wed, 26 Jul 2023 15:47:48 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > java/util/concurrent/SynchronousQueue/Fairness.java on X64. They are (so far), but the fix that Doug Lea integrated did not seem to be specific to ZGC or -Xcomp so I went wider... I'm hoping that Doug

Re: [jdk21] Integrated: 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms

2023-07-26 Thread Joe Darcy
On Wed, 26 Jul 2023 19:22:08 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList java/util/concurrent/tck/JSR166TestCase.java on > select platforms. Marked as reviewed by darcy (Reviewer). - PR Review: https://git.openjdk.org/jdk21/pull/145#pullrequestreview-1548445218

[jdk21] Integrated: 8313208: ProblemList java/util/concurrent/tck/JSR166TestCase.java on select platforms

2023-07-26 Thread Daniel D . Daugherty
On Wed, 26 Jul 2023 19:22:08 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList java/util/concurrent/tck/JSR166TestCase.java on > select platforms. This pull request has now been integrated. Changeset: a10dbcec Author:Daniel D. Daugherty URL: https://git.openjdk.org/jd

Re: RFR: 8310643: Misformatted copyright messages in FFM

2023-07-26 Thread Jorn Vernee
On Wed, 26 Jul 2023 15:43:12 GMT, Per Minborg wrote: > Some of the test files will have now the "classpath" exception. Is this > correct? No. The test files should not have the classpath exception. - PR Comment: https://git.openjdk.org/jdk/pull/15042#issuecomment-1652367609

Re: RFR: 8312416: Tests in Locale should have more descriptive names

2023-07-26 Thread Lance Andersen
On Wed, 26 Jul 2023 07:11:16 GMT, Justin Lu wrote: > Please review this change which renames tests for Locale from > `bugNNN.java` to something more descriptive. > > In addition to the name changes, accompanying copyright year, name usage > within the test, and other minor changes were inc

Re: [jdk21] RFR: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Alan Bateman
On Wed, 26 Jul 2023 15:47:48 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > java/util/concurrent/SynchronousQueue/Fairness.java on X64. Are all the sightings -XX:+UseZGC -Xcomp? Only asking in case you meant to add it to ProblemList-zgc.txt. - PR Comment: https

Re: RFR: 8311104: dangling-gsl warning in libwixhelper.cpp

2023-07-26 Thread Alexey Semenyuk
On Wed, 26 Jul 2023 18:42:47 GMT, Alexey Semenyuk wrote: > 8311104: dangling-gsl warning in libwixhelper.cpp @sashamatveev please review - PR Comment: https://git.openjdk.org/jdk/pull/15044#issuecomment-1652324135

RFR: 8311104: dangling-gsl warning in libwixhelper.cpp

2023-07-26 Thread Alexey Semenyuk
8311104: dangling-gsl warning in libwixhelper.cpp - Commit messages: - 8311104: dangling-gsl warning in libwixhelper.cpp Changes: https://git.openjdk.org/jdk/pull/15044/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15044&range=00 Issue: https://bugs.openjdk.org/browse/JD

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread Alan Bateman
On Tue, 25 Jul 2023 18:48:58 GMT, Matias Saavedra Silva wrote: >> Currently we exit the VM after static dumping with >> `MetaspaceShared::exit_after_static_dump()`. >> >> >> // We have finished dumping the static archive. At this point, there may be >> pending VM >> // operations. We have

[jdk21] Integrated: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Daniel D . Daugherty
On Wed, 26 Jul 2023 15:47:48 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > java/util/concurrent/SynchronousQueue/Fairness.java on X64. This pull request has now been integrated. Changeset: f666e606 Author:Daniel D. Daugherty URL: https://git.openjdk.org/jdk21/co

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Tue, 25 Jul 2023 23:50:07 GMT, Brian Burkhalter wrote: >> Limit native memory allocation and move write loop from the native layer >> into Java. This change should make the OOME reported in the issue much less >> likely. > > Brian Burkhalter has updated the pull request incrementally with th

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Alan Bateman
On Wed, 26 Jul 2023 12:20:49 GMT, David Holmes wrote: >> test/hotspot/jtreg/serviceability/jvmti/vthread/GetThreadState/GetThreadStateTest.java >> line 133: >> >>> 131: } finally { >>> 132: thread.join(); >>> 133: Reference.reachabilityFence(lock); >> >> It woul

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Tue, 25 Jul 2023 23:50:07 GMT, Brian Burkhalter wrote: >> Limit native memory allocation and move write loop from the native layer >> into Java. This change should make the OOME reported in the issue much less >> likely. > > Brian Burkhalter has updated the pull request incrementally with th

Re: RFR: 8306582: Remove MetaspaceShared::exit_after_static_dump() [v2]

2023-07-26 Thread Ioi Lam
On Tue, 25 Jul 2023 18:48:58 GMT, Matias Saavedra Silva wrote: >> Currently we exit the VM after static dumping with >> `MetaspaceShared::exit_after_static_dump()`. >> >> >> // We have finished dumping the static archive. At this point, there may be >> pending VM >> // operations. We have

Re: [jdk21] RFR: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Daniel D . Daugherty
On Wed, 26 Jul 2023 16:44:56 GMT, Roger Riggs wrote: >> A trivial fix to ProblemList >> java/util/concurrent/SynchronousQueue/Fairness.java on X64. > > Marked as reviewed by rriggs (Reviewer). @RogerRiggs - Thanks for the review! - PR Comment: https://git.openjdk.org/jdk21/pull/14

Re: [jdk21] RFR: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Roger Riggs
On Wed, 26 Jul 2023 15:47:48 GMT, Daniel D. Daugherty wrote: > A trivial fix to ProblemList > java/util/concurrent/SynchronousQueue/Fairness.java on X64. Marked as reviewed by rriggs (Reviewer). - PR Review: https://git.openjdk.org/jdk21/pull/144#pullrequestreview-1548184357

Re: RFR: 8311653: Modify -XshowSettings launcher behavior [v3]

2023-07-26 Thread Roger Riggs
On Wed, 26 Jul 2023 09:22:14 GMT, Sean Coffey wrote: >> Modify the -XshowSettings launcher option to print non-verbose settings >> details of all components by default. Verbose settings details will be >> printed via the -XshowSettings:all option. Modify the -XshowSettings option >> to reject

Re: RFR: 8311653: Modify -XshowSettings launcher behavior [v3]

2023-07-26 Thread Mandy Chung
On Wed, 26 Jul 2023 09:22:14 GMT, Sean Coffey wrote: >> Modify the -XshowSettings launcher option to print non-verbose settings >> details of all components by default. Verbose settings details will be >> printed via the -XshowSettings:all option. Modify the -XshowSettings option >> to reject

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Wed, 26 Jul 2023 15:58:15 GMT, Vyom Tewari wrote: >>> please reformat line 173 >> >> Why? > > "buf = (char*)malloc(len*sizeof(char));" --> "buf = (char*)malloc(len * > sizeof(char));" > "buf = (char*)malloc(len_sizeof(char));" --> "buf = (char_)malloc(len * > sizeof(char));" Both sides of

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Vyom Tewari
On Wed, 26 Jul 2023 15:49:38 GMT, Brian Burkhalter wrote: >> src/java.base/share/native/libjava/io_util.c line 173: >> >>> 171: if (len > MAX_MALLOC_SIZE) >>> 172: len = MAX_MALLOC_SIZE; >>> 173: buf = (char*)malloc(len*sizeof(char)); >> >> please reformat line 173 >

[jdk21] RFR: 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64

2023-07-26 Thread Daniel D . Daugherty
A trivial fix to ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64. - Commit messages: - 8313193: ProblemList java/util/concurrent/SynchronousQueue/Fairness.java on X64 Changes: https://git.openjdk.org/jdk21/pull/144/files Webrev: https://webrevs.openjdk.org/

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Wed, 26 Jul 2023 05:31:57 GMT, Vyom Tewari wrote: > please reformat line 173 Why? - PR Review Comment: https://git.openjdk.org/jdk/pull/14981#discussion_r1275174632

RFR: 8310643: Misformatted copyright messages in FFM

2023-07-26 Thread Per Minborg
This PR suggests updating some of the ill-formed copyright headers in the FFM API and the implementation and test thereof. Some of the test files will have now the "classpath" exception. Is this correct? - Commit messages: - Update copyright formatting Changes: https://git.openjdk

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Wed, 26 Jul 2023 09:29:18 GMT, Alan Bateman wrote: > I think the main issue with this version is that it changes behavior of the > read methods to work like "read fully", I don't think we should do that. To me it looks more like `readNBytes`. - PR Comment: https://git.openjdk.o

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Brian Burkhalter
On Wed, 26 Jul 2023 05:26:52 GMT, Vyom Tewari wrote: >> Brian Burkhalter has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - 6478546: Decrease malloc limit to 1.5 MB >> - 6478546: Minor refactoring >> - 6478546: Prevent short read > >

Re: RFR: 8298095: Refine implSpec for SegmentAllocator [v3]

2023-07-26 Thread Per Minborg
> This PR suggests refining the `@implSpec` for the SegmentAllocator::allocate > methods as well as clarifying the docs a bit more. Also, a local variable is > renamed. Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Update after com

Re: RFR: 8313023: Return value corrupted when using CCS + isTrivial (mainline)

2023-07-26 Thread Maurizio Cimadamore
On Tue, 25 Jul 2023 19:17:38 GMT, Jorn Vernee wrote: > Port of: https://github.com/openjdk/panama-foreign/pull/848 from the > panama-foreign repo. > > Copying the PR body here for convenience: > > Due to a bug in the downcall linker stub generation, we don't save the return > value when captu

Integrated: 8313155: Problem list some JUnit-based tests in test/jdk/java/lang/invoke

2023-07-26 Thread Christian Stein
On Wed, 26 Jul 2023 07:25:20 GMT, Christian Stein wrote: > Problem list some JUnit-based tests in > `test/jdk/java/lang/invoke/MethodHandleProxies/` for the time being - until > `jtreg` 7.3 with a fix for the underlying race condition is released. That > fix is tracked via https://bugs.openjdk

Re: RFR: 8313155: Problem list some JUnit-based tests in test/jdk/java/lang/invoke

2023-07-26 Thread Jaikiran Pai
On Wed, 26 Jul 2023 07:25:20 GMT, Christian Stein wrote: > Problem list some JUnit-based tests in > `test/jdk/java/lang/invoke/MethodHandleProxies/` for the time being - until > `jtreg` 7.3 with a fix for the underlying race condition is released. That > fix is tracked via https://bugs.openjdk

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread David Holmes
On Wed, 26 Jul 2023 09:42:10 GMT, Serguei Spitsyn wrote: >> Thread::getState is an API for monitoring and management purposes to report >> the thread state. If a virtual thread is parked with LockSupport.parkNanos, >> its state is reported as WAITING when it should be TIMED_WAITING. JVM TI >>

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread David Holmes
On Tue, 25 Jul 2023 05:50:12 GMT, Alan Bateman wrote: >> src/hotspot/share/classfile/javaClasses.hpp line 536: >> >>> 534: >>> 535: // additional state bits >>> 536: TIMED= 1 << 8, // timed parked >> >> Why handle TIMED this way instead of just making TIMED_PARKED/PARKING sta

RFR: 8313155: Problem list some JUnit-based tests in test/jdk/java/lang/invoke

2023-07-26 Thread Christian Stein
Problem list some JUnit-based tests in `test/jdk/java/lang/invoke/MethodHandleProxies/` for the time being - until `jtreg` 7.3 with a fix for the underlying race condition is released. That fix is tracked via https://bugs.openjdk.org/browse/CODETOOLS-7903507 - Commit messages: - U

Re: RFR: 8313155: Problem list some JUnit-based tests in test/jdk/java/lang/invoke

2023-07-26 Thread David Holmes
On Wed, 26 Jul 2023 07:25:20 GMT, Christian Stein wrote: > Problem list some JUnit-based tests in > `test/jdk/java/lang/invoke/MethodHandleProxies/` for the time being - until > `jtreg` 7.3 with a fix for the underlying race condition is released. That > fix is tracked via https://bugs.openjdk

RFR: 8311517: ArrayList javadoc improvements related to sequenced collection updates

2023-07-26 Thread dan1st
The [JEP for sequenced collections](https://openjdk.org/jeps/431) would add addFirst(), removeFirst() and reversed() methods to lists. However, the Javadoc of List mentions: > The size, isEmpty, get, set, iterator, and listIterator operations run in > constant time. The add operation runs in am

Re: [jdk21] RFR: 8309032: jpackage does not work for module projects unless --module-path is specified

2023-07-26 Thread Alan Bateman
On Tue, 25 Jul 2023 07:09:55 GMT, airsquared wrote: > I see. I'll create a PR there. Thanks. Thanks, I assume this PR can be closed. - PR Comment: https://git.openjdk.org/jdk21/pull/140#issuecomment-1651454738

Re: RFR: 8312498: Thread::getState and JVM TI GetThreadState should return TIMED_WAITING virtual thread is timed parked

2023-07-26 Thread Serguei Spitsyn
On Fri, 21 Jul 2023 18:01:45 GMT, Alan Bateman wrote: > Thread::getState is an API for monitoring and management purposes to report > the thread state. If a virtual thread is parked with LockSupport.parkNanos, > its state is reported as WAITING when it should be TIMED_WAITING. JVM TI > GetThr

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Alan Bateman
On Tue, 25 Jul 2023 23:50:07 GMT, Brian Burkhalter wrote: >> Limit native memory allocation and move write loop from the native layer >> into Java. This change should make the OOME reported in the issue much less >> likely. > > Brian Burkhalter has updated the pull request incrementally with th

Re: RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

2023-07-26 Thread Alan Bateman
On Wed, 26 Jul 2023 00:00:33 GMT, Brian Burkhalter wrote: > There was no dropping of the file system cache. I would think this would have > more of an effect on measuring the throughput of writing than reading. In that case, I assume the benchmarks are just reading from the file system cache s

Re: RFR: 8311653: Modify -XshowSettings launcher behavior [v3]

2023-07-26 Thread Sean Coffey
> Modify the -XshowSettings launcher option to print non-verbose settings > details of all components by default. Verbose settings details will be > printed via the -XshowSettings:all option. Modify the -XshowSettings option > to reject bad values passed to it. Print an error message in such sce

Re: RFR: 8311653: Modify -XshowSettings launcher behavior [v2]

2023-07-26 Thread Sean Coffey
On Tue, 25 Jul 2023 21:01:03 GMT, Mandy Chung wrote: >> Sean Coffey has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Incorporate review feedback >> - modify -X output for :all > > src/java.base/share/classes/sun/launcher/LauncherHelper

RFR: 8312411: MessageFormat.formatToCharacterIterator() can be improved

2023-07-26 Thread Justin Lu
Please review this change which makes `MessageFormat.formatToCharacterIterator` fail fast(er). The return statement is also modified to call toArray() as `toArray(new T[0])` over `toArray(new T[size])`. - Commit messages: - Initial commit Changes: https://git.openjdk.org/jdk/pull

RFR: 8312416: Tests in Locale should have more descriptive names

2023-07-26 Thread Justin Lu
Please review this change which renames tests for Locale from `bugNNN.java` to something more descriptive. In addition to the name changes, accompanying copyright year, name usage within the test, and other minor changes were included. The test `bug4123285.java` was also removed, as it was

Re: RFR: 8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6 [v6]

2023-07-26 Thread David Holmes
On Wed, 19 Jul 2023 10:58:58 GMT, Jaikiran Pai wrote: >> Can I please get a review of this change which proposes to deprecate for >> removal the `-Xdebug` option and `-debug` option of the `java` command? >> This addresses https://bugs.openjdk.org/browse/JDK-8227229. >> >> As noted in the JBS