Re: RFR(S): 8249198: Faster Math.signum(fp) for positive and negative numbers

2020-07-12 Thread Dmitry Chuyko
Hello, After much more thorough analysis of benchmarks on different platforms I tend to cancel this patch proposal. As Brian rightly remarked [3], the benchmark has peculiar explicit iteration over the data. This is more like 2nd anti-pattern in safe looping JMH sample [4]. This actually cam

Re: RFR(S): 8249198: Faster Math.signum(fp) for positive and negative numbers

2020-07-10 Thread Dmitry Chuyko
d) zero is present at that point in the code. -Joe On 7/10/2020 11:11 AM, Dmitry Chuyko wrote: Hello, Please review a small change in Math.signum(double d) and Math.signum(float f) that improves performance for positive and negative numbers. Current version first checks if the number is NaN or

RFR(S): 8249198: Faster Math.signum(fp) for positive and negative numbers

2020-07-10 Thread Dmitry Chuyko
Hello, Please review a small change in Math.signum(double d) and Math.signum(float f) that improves performance for positive and negative numbers. Current version first checks if the number is NaN or zero, and for all other numbers it extracts sign bit and constructs fp result. That makes a

Re: RFR: 8224974: Implement JEP 352

2019-08-20 Thread Dmitry Chuyko
On 8/20/19 11:02 AM, Andrew Dinn wrote: On 19/08/2019 19:38, Dmitry Chuyko wrote: Just a minor style thing in MapSyncFail test: can "true" and "false" (the mode) be "READ_WRITE_SYNC" and "READ_ONLY_SYNC" instead? Are you referring to the arguments pa

Re: RFR: 8224974: Implement JEP 352

2019-08-19 Thread Dmitry Chuyko
Hi Andrew, Just a minor style thing in MapSyncFail test: can "true" and "false" (the mode) be "READ_WRITE_SYNC" and "READ_ONLY_SYNC" instead? -Dmitry On 8/19/19 2:29 PM, Andrew Dinn wrote: Hi Alan, ... I renamed the test to MapSyncFail and modified it to run without restrict

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
On 8/7/19 4:29 PM, Andrew Dinn wrote: On 07/08/2019 13:04, Dmitry Chuyko wrote: On 8/7/19 2:02 PM, Dmitry Chuyko wrote: Andrew, New code is buildable and new MapFail test passes on different platforms except it fails on linux i386: Ah, that even was x86_64 (sorry, mixed up results from

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
/sun.nio.ch.FileChannelImpl.map0(Native Method) at java.base/sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:1062) at MapFail.main(MapFail.java:48) ... 6 more -Dmitry On 8/7/19 3:04 PM, Dmitry Chuyko wrote: On 8/7/19 2:02 PM, Dmitry Chuyko wrote: Andrew, New code is buildable and new MapFail test passes on

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
On 8/7/19 2:02 PM, Dmitry Chuyko wrote: Andrew, New code is buildable and new MapFail test passes on different platforms except it fails on linux i386: Ah, that even was x86_64 (sorry, mixed up results from automated system). I'll try to reproduce it by hand to see if there ar

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
": " before actual unexpected message. -Dmitry On 8/7/19 12:31 PM, Dmitry Chuyko wrote: On 8/6/19 6:58 PM, Andrew Dinn wrote: .. No this behaviour is not currently tested. However, the only client at present will never exercise that path so it is not critical to test it n

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
On 8/6/19 7:09 PM, Andrew Dinn wrote: Hello Dmitry, On 06/08/2019 15:25, Dmitry Chuyko wrote: One quick question about synchronization in unmappers. One of preliminary steps for Loom was to replace monitor usage by j.u.c locks for I/O to let fibers release carrier threads. For instance see JDK

Re: RFR: 8224974: Implement JEP 352

2019-08-07 Thread Dmitry Chuyko
On 8/6/19 6:58 PM, Andrew Dinn wrote: .. No this behaviour is not currently tested. However, the only client at present will never exercise that path so it is not critical to test it now. I'd be happy to address testing of this behaviour as part of a follow-up JIRA issue if yo

Re: RFR: 8224974: Implement JEP 352

2019-08-06 Thread Dmitry Chuyko
Hi Andrew, Thanks for previous detailed explanations, and great, there are now checks for exceptions in webrev.11. Let me add just a few comments about that. On 8/1/19 12:49 PM, Andrew Dinn wrote: Hello Dmitry, On 01/08/2019 05:09, Dmitry Chuyko wrote: Just a small comment about the tests

Re: RFR: 8224974: Implement JEP 352

2019-08-06 Thread Dmitry Chuyko
Hi Andrew, One quick question about synchronization in unmappers. One of preliminary steps for Loom was to replace monitor usage by j.u.c locks for I/O to let fibers release carrier threads. For instance see JDK-8222774. Does it make sense to do the same in your new unmappers code? -Dmitry

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Dmitry Chuyko
Hi Andrew, Just a small comment about the tests. As you can see, some of tests in jdk/java/nio/channels/FileChannel check various modes, arguments, and expected exceptions. E.g. see MapTest, Mode and Args. I noticed that in your changes for the new map mode there are new exceptions thrown in

RFR (XXS): 8228722: jpackage RPM tests fail on some versions of rpmbuild

2019-07-29 Thread Dmitry Chuyko
Hello, Please review a tiny fix of a test bug that appears in some environments. While extending jpackage platforms support in JDK-8222778 I used "-E" rpmbuild shortcut for arch detection. It seems to be missing in some versions while full "--eval" flag name is more generic. bug: https://bug

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-25 Thread Dmitry Chuyko
DK-8228402. -Dmitry On 7/25/19 12:56 AM, Alexander Matveev wrote: Looks good. On 7/24/2019 7:30 AM, Dmitry Chuyko wrote: Webrev without chdir() and write() changes: http://cr.openjdk.java.net/~dchuyko/8222778/webrev.03/ When it is applied together with webrev.01 [1] from JDK-8228402, sandbox i

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-24 Thread Dmitry Chuyko
/~herrick/8228402/ On 7/19/19 11:31 AM, Andrew Haley wrote: On 7/19/19 12:36 AM, Dmitry Chuyko wrote: On 7/18/19 11:57 AM, Andrew Haley wrote: Hi, On 7/17/19 10:19 PM, Dmitry Chuyko wrote: On 7/17/19 11:52 AM, Andrew Haley wrote: This is weird: --- old/src/jdk.jpackage/linux/native

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-18 Thread Dmitry Chuyko
On 7/18/19 11:57 AM, Andrew Haley wrote: Hi, On 7/17/19 10:19 PM, Dmitry Chuyko wrote: On 7/17/19 11:52 AM, Andrew Haley wrote: This is weird: --- old/src/jdk.jpackage/linux/native/libapplauncher/LinuxPlatform.cpp 2019-07-16 22:11:30.200258978 +0300 +++ new/src/jdk.jpackage/linux/native

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-17 Thread Dmitry Chuyko
On 7/18/19 12:19 AM, Dmitry Chuyko wrote: .. 2. LinuxDebBundler.getArch() now maps only x86_64 to amd64, x86 is still mapped to i386, and other archs map to themselves. 3. In tests, new method getRpmArch() was added to linux/base/Base.java, it maps JVMs os.arch to default

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-17 Thread Dmitry Chuyko
Hi Andrew, On 7/17/19 11:52 AM, Andrew Haley wrote: On 7/16/19 8:55 PM, Dmitry Chuyko wrote: Hello, Please review a small patch that mostly fixes jpackage test for Linux aarch64 and also arm,x86,power. It is prepared for 'JDK-8200758-branch' branch of open 'sandbox' repo.

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-17 Thread Dmitry Chuyko
, Dmitry Chuyko wrote: Alexander, thanks for having a look, On 7/17/19 12:30 AM, Alexander Matveev wrote: Hi Dmitry, http://cr.openjdk.java.net/~dchuyko/8222778/webrev.00/src/jdk.jpackage/unix/native/libapplauncher/PosixPlatform.cpp.frames.html Why code between lines 215 and 219 was disabled

Re: RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-16 Thread Dmitry Chuyko
55 PM, Dmitry Chuyko wrote: Hello, Please review a small patch that mostly fixes jpackage test for Linux aarch64 and also arm,x86,power. It is prepared for 'JDK-8200758-branch' branch of open 'sandbox' repo. There are few parts: 1. LinuxPlatform.cpp and IniFile.cpp got

RFR (S): JDK-8222778: Packaging Tool (JEP 343) on Linux/AArch64

2019-07-16 Thread Dmitry Chuyko
Hello, Please review a small patch that mostly fixes jpackage test for Linux aarch64 and also arm,x86,power. It is prepared for 'JDK-8200758-branch' branch of open 'sandbox' repo. There are few parts: 1. LinuxPlatform.cpp and IniFile.cpp got small fixes for compiler warnings. 2. LinuxDebBun

Re: RFR(XS): 8220072: GCC 8.3 reports errors in java.base

2019-05-22 Thread Dmitry Chuyko
Thanks for the review, pushed with copyright update. -Dmitry On 5/22/19 8:36 PM, Roger Riggs wrote: Hi Dmitry, Looks ok. Roger On 05/21/2019 04:24 PM, Dmitry Chuyko wrote: Hello, Please review a small fix for compilation error reported by recent compiler in canonicalize() from

RFR(XS): 8220072: GCC 8.3 reports errors in java.base

2019-05-21 Thread Dmitry Chuyko
Hello, Please review a small fix for compilation error reported by recent compiler in canonicalize() from canonicalize_md.c. PATH_MAX may be passed as num argument to strncpy() and ‘\0’ is added to resulting string. The case of too long name is processed at the beginning of canonicalize() so du

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2019-02-27 Thread Dmitry Chuyko
Thanks for all the reviews. mach5-one-dchuyko-JDK-8215009-4-20190226-2029-850647: PASSED. Pushed. -Dmitry On 2/27/19 12:07 AM, David Holmes wrote: Hi Dmitry, This seems fine to me too - much simpler. Thanks, David On 27/02/2019 6:23 am, Dmitry Chuyko wrote: I made mentioned cleanups in

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2019-02-26 Thread Dmitry Chuyko
y not the place to fix it and it is locally consistent. Thanks, Roger On 02/25/2019 01:16 PM, Mikael Vidstedt wrote: On Feb 25, 2019, at 9:09 AM, Dmitry Chuyko wrote: On 2/22/19 9:55 PM, Roger Riggs wrote: Hi, After a closer look, I'd take the route of the 01 webrev. It is more loc

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2019-02-25 Thread Dmitry Chuyko
n Feb 21, 2019, at 9:55 AM, Dmitry Chuyko wrote: To me thread function wrappers look preferable to platform specific JavaMain signature. Consider this webrev with wrappers: http://cr.openjdk.java.net/~dchuyko/8215009/webrev.01/ In some cases JavaMain is called in the same thread and its resu

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2019-02-21 Thread Dmitry Chuyko
:56 am, Dmitry Chuyko wrote: On 12/18/18 3:39 AM, David Holmes wrote: On 11/12/2018 9:30 pm, Dmitry Chuyko wrote: On 12/11/18 4:03 AM, David Holmes wrote: Hi Dmitry, On 11/12/2018 12:16 am, Dmitry Chuyko wrote: Hello, Please review a small fix in java_md_solinux.c: continuation is not truly

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2018-12-18 Thread Dmitry Chuyko
On 12/18/18 3:39 AM, David Holmes wrote: On 11/12/2018 9:30 pm, Dmitry Chuyko wrote: On 12/11/18 4:03 AM, David Holmes wrote: Hi Dmitry, On 11/12/2018 12:16 am, Dmitry Chuyko wrote: Hello, Please review a small fix in java_md_solinux.c: continuation is not truly compatible with

Re: RFR(XS): 8215009: GCC 8 compilation eror in libjli

2018-12-11 Thread Dmitry Chuyko
On 12/11/18 4:03 AM, David Holmes wrote: Hi Dmitry, On 11/12/2018 12:16 am, Dmitry Chuyko wrote: Hello, Please review a small fix in java_md_solinux.c: continuation is not truly compatible with pthread_create start_routine's signature but we control what actually happens. So it makes

RFR(XS): 8215009: GCC 8 compilation eror in libjli

2018-12-10 Thread Dmitry Chuyko
Hello, Please review a small fix in java_md_solinux.c: continuation is not truly compatible with pthread_create start_routine's signature but we control what actually happens. So it makes sense to add intermediate void* cast to silence the error. bug: https://bugs.openjdk.java.net/browse/JDK

Re: RFR(S)JDK-8214074: Ghash optimization using AVX instructions

2018-12-04 Thread Dmitry Chuyko
Hello, AArch64 aes test runs pass in -Dmode=GCM. -Dmitry On 12/2/18 3:37 AM, Vladimir Kozlov wrote: I am fine with Hotspot changes. But we need to verify changes on all platforms. I see that aarch64 also supports it in addition to SPARC. I will run compiler/codegen/aes/ test to make sure it

Re: RFR (S): JDK-8191328: Avoid unnecessary overhead in CRC32C

2017-11-28 Thread Dmitry Chuyko
same Interpreter before  40844 ± 333  ns/op after   24777 ± 624  ns/op 1.7x -Dmitry On 11/16/2017 07:42 PM, Dmitry Chuyko wrote: On 11/15/2017 09:44 PM, Andrew Haley wrote: On 15/11/17 18:38, Vitaly Davidovich wrote: On Wed, Nov 15, 2017 at 12:40 PM, Andrew Haley wrote: On 15/11/17 15:38

Re: RFR (S): JDK-8191328: Avoid unnecessary overhead in CRC32C

2017-11-16 Thread Dmitry Chuyko
On 11/15/2017 09:44 PM, Andrew Haley wrote: On 15/11/17 18:38, Vitaly Davidovich wrote: On Wed, Nov 15, 2017 at 12:40 PM, Andrew Haley wrote: On 15/11/17 15:38, Alan Bateman wrote: Moving the nativeOrder out of the loop make sense but I'm curious about the context for improving this implement

Re: RFR (S): JDK-8191328: Avoid unnecessary overhead in CRC32C

2017-11-15 Thread Dmitry Chuyko
On 11/15/2017 06:38 PM, Alan Bateman wrote: On 15/11/2017 15:27, Dmitry Chuyko wrote: Hello, Please review a performance enhancement for java.util.CRC32C pure Java implementation. Moving the nativeOrder out of the loop make sense but I'm curious about the context for improving

RFR (S): JDK-8191328: Avoid unnecessary overhead in CRC32C

2017-11-15 Thread Dmitry Chuyko
Hello, Please review a performance enhancement for java.util.CRC32C pure Java implementation. rfe: https://bugs.openjdk.java.net/browse/JDK-8191328 webrev: http://cr.openjdk.java.net/~dchuyko/8191328/webrev.00/ some results: https://bugs.openjdk.java.net/browse/JDK-8191328?focusedCommentId=14