Re: RFR: 8274318: Replace 'for' cycles with iterator with enhanced-for in java.management [v2]

2021-10-01 Thread Serguei Spitsyn
On Fri, 1 Oct 2021 21:12:57 GMT, Andrey Turbanov wrote: >> There are a few places in code, where manual `for` loop is used with >> Iterator to iterate over Collection. >> Instead of manual `for` cycles, it's preferred to use enhanced-for cycle >> instead: it's less verbose, makes code easier t

Re: RFR: 8274662: Replace 'while' cycles with iterator with enhanced-for in jdk.hotspot.agent

2021-10-01 Thread Serguei Spitsyn
On Wed, 22 Sep 2021 08:58:01 GMT, Andrey Turbanov wrote: > There are few places in code where manual `while` loop is used with Iterator > to iterate over Collection. > Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle > instead: it's less verbose, makes code easier to

Re: RFR: 8274662: Replace 'while' cycles with iterator with enhanced-for in jdk.hotspot.agent

2021-10-01 Thread Chris Plummer
On Wed, 22 Sep 2021 08:58:01 GMT, Andrey Turbanov wrote: > There are few places in code where manual `while` loop is used with Iterator > to iterate over Collection. > Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle > instead: it's less verbose, makes code easier to

Re: RFR: 8273152: Refactor CDS FileMapHeader loading code [v2]

2021-10-01 Thread Calvin Cheung
On Thu, 30 Sep 2021 16:23:34 GMT, Yumin Qi wrote: >> Please review, >> Refactor fundamental CDS FileMapHeader code for reliable reading of basic >> info from shared archive. >> With the change, it makes it possible to read an archive generated by >> different version of hotspot. Also it is

Re: RFR: 8274662: Replace 'while' cycles with iterator with enhanced-for in jdk.hotspot.agent

2021-10-01 Thread Alex Menkov
On Wed, 22 Sep 2021 08:58:01 GMT, Andrey Turbanov wrote: > There are few places in code where manual `while` loop is used with Iterator > to iterate over Collection. > Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle > instead: it's less verbose, makes code easier to

Re: RFR: 8274318: Replace 'for' cycles with iterator with enhanced-for in java.management [v2]

2021-10-01 Thread Andrey Turbanov
> There are a few places in code, where manual `for` loop is used with Iterator > to iterate over Collection. > Instead of manual `for` cycles, it's preferred to use enhanced-for cycle > instead: it's less verbose, makes code easier to read and it's less > error-prone. > It doesn't have any perf

RFR: 8274662: Replace 'while' cycles with iterator with enhanced-for in jdk.hotspot.agent

2021-10-01 Thread Andrey Turbanov
There are few places in code where manual `while` loop is used with Iterator to iterate over Collection. Instead of manual `while` cycles it's preferred to use _enhanced-for_ cycle instead: it's less verbose, makes code easier to read and it's less error-prone. It doesn't have any performance imp

Re: RFR: 8218885: Restore pop_frame and force_early_return functionality for Graal

2021-10-01 Thread Serguei Spitsyn
On Wed, 22 Sep 2021 05:40:40 GMT, Tom Rodriguez wrote: > This logic no longer seems to be necessary since the adjustCompilationLevel > callback has been removed. Marked as reviewed by sspitsyn (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/5625

Re: RFR: 8218885: Restore pop_frame and force_early_return functionality for Graal

2021-10-01 Thread Serguei Spitsyn
On Fri, 1 Oct 2021 17:07:23 GMT, Tom Rodriguez wrote: > Why are we running the jck jvmti tests on this since they weren't failing > originally? The problem test list from the commit > http://hg.openjdk.java.net/jdk/jdk12/rev/f5fd8eefae0f is all nsk and > com.sun.jdi tests. The reason to disab

Re: RFR: 8218885: Restore pop_frame and force_early_return functionality for Graal

2021-10-01 Thread Dean Long
On Wed, 22 Sep 2021 05:40:40 GMT, Tom Rodriguez wrote: > This logic no longer seems to be necessary since the adjustCompilationLevel > callback has been removed. Marked as reviewed by dlong (Reviewer). Make sure to test with -Xcomp. - PR: https://git.openjdk.java.net/jdk/pull/562

Re: RFR: 8218885: Restore pop_frame and force_early_return functionality for Graal

2021-10-01 Thread Vladimir Kozlov
On Wed, 22 Sep 2021 05:40:40 GMT, Tom Rodriguez wrote: > This logic no longer seems to be necessary since the adjustCompilationLevel > callback has been removed. Yes, running locally with GraalVM is fine. - Marked as reviewed by kvn (Reviewer). PR: https://git.openjdk.java.net/jd

Re: RFR: 8218885: Restore pop_frame and force_early_return functionality for Graal

2021-10-01 Thread Tom Rodriguez
On Wed, 22 Sep 2021 05:40:40 GMT, Tom Rodriguez wrote: > This logic no longer seems to be necessary since the adjustCompilationLevel > callback has been removed. I don't see any easy way to run the suggested command at the moment through mach5. We've already pushed this change into our JDK17