"unsafe" instances in sun.nio.fs.WindowsFileSystem

2017-04-18 Thread Chan, Sunny
While reading the code for sun.nio.fs.WindowsFileSystemProvider and sun.nio.fs.WindowsUserDefinedFileAttributeView, I noticed that there is a private static variable to the Unsafe instance but it doesn't seems to be used anywhere in the code - am I missing something here or should I propose a pa

Proposed patch: further wrapping of FileInputStream's native method

2016-11-09 Thread Chan, Sunny
Hello all, I proposed a patch to provide wrapping for some native methods in FileInputStream a while ago in May, and the patch has been reviewed but it has not been integrated. I have checked the patch again with the latest JDK9 dev builds and it still works correctly passing java.io regression

RE: Proposed patch: further wrapping of FileInputStream's native method

2016-05-10 Thread Chan, Sunny
r this is more complex and will involve a much bigger change and we will propose a JEP once we are confident that can be done. -Original Message- From: Chris Hegarty [mailto:chris.hega...@oracle.com] Sent: 09 May 2016 21:26 To: Chan, Sunny [Tech]; 'core-libs-dev@openjdk.java.net

Proposed patch: further wrapping of FileInputStream's native method

2016-05-08 Thread Chan, Sunny
Previously in JDK-8054720, a number of native methods has been wrapped in order to allow instrumentation. We would like to propose to wrap a number of other methods (available(), skip()) so that we can perform further instrumentation. I have atta

RE: Patch to improve primitives Array.sort()

2015-05-25 Thread Chan, Sunny
May 2015 22:24 To: Rezaei, Mohammad A. [Tech] Cc: 'core-libs-dev@openjdk.java.net Libs'; Chan, Sunny [Tech]; O'Leary, Kristen [Tech] Subject: Re: Patch to improve primitives Array.sort() On May 22, 2015, at 3:55 PM, "Rezaei, Mohammad A." mailto:mohammad.rez...@gs.com>

RE: Patch to improve primitives Array.sort()

2015-05-19 Thread Chan, Sunny
2015 00:13 To: Chan, Sunny [Tech] Cc: O'Leary, Kristen [Tech]; 'Alan Bateman'; 'core-libs-dev@openjdk.java.net'; Rezaei, Mohammad A. [Tech] Subject: Re: Patch to improve primitives Array.sort() On May 15, 2015, at 11:48 AM, "Chan, Sunny" mailto:sunny.c...@gs.

RE: Patch to improve primitives Array.sort()

2015-05-15 Thread Chan, Sunny
en [Tech] Sent: 11 May 2015 23:33 To: 'Alan Bateman'; Paul Sandoz; Chan, Sunny [Tech] Cc: 'core-libs-dev@openjdk.java.net'; Rezaei, Mohammad A. [Tech] Subject: RE: Patch to improve primitives Array.sort() Hi Alan, For MAX_RUN_LENGTH, the constant was used to limit the size of

RE: Patch to improve primitives Array.sort()

2015-05-04 Thread Chan, Sunny
http://permalink.gmane.org/gmane.comp.java.openjdk.core-libs.devel/2628) Sunny -Original Message- From: Alan Bateman [mailto:alan.bate...@oracle.com] Sent: 24 April 2015 17:09 To: Paul Sandoz; Chan, Sunny [Tech] Cc: 'core-libs-dev@openjdk.java.net'; O'Leary, Kristen [Tech] S

RE: Patch to improve primitives Array.sort()

2015-04-24 Thread Chan, Sunny
I have privately sent the webrev to Paul. I will make the JMH tests available once I have clear up with the compliance. Sunny -Original Message- From: Paul Sandoz [mailto:paul.san...@oracle.com] Sent: 24 April 2015 15:31 To: Chan, Sunny [Tech] Cc: 'core-libs-dev@openjdk.jav

RE: Patch to improve primitives Array.sort()

2015-04-24 Thread Chan, Sunny
Sorry the spam filter we use didn't like the webrev.zip so I have attached the text patch file instead. From: Chan, Sunny [Tech] Sent: 24 April 2015 15:17 To: 'core-libs-dev@openjdk.java.net' Cc: O'Leary, Kristen [Tech] Subject: Patch to improve primitives Array.sort()

Patch to improve primitives Array.sort()

2015-04-24 Thread Chan, Sunny
We are proposing a patch to improve the performance for the DualPivotQuickSort use by Array.sort to sort primitives array. We have identified two area for optimization: Firstly, we have changed the algorithm to determine what a "run" is. A "run" is how long you go through the array with it bein