review request: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-04-21 Thread Neil Toda
Webrev http://cr.openjdk.java.net/~ntoda/8035782/ for bug https://bugs.openjdk.java.net/browse/JDK-8035782 The file : ./jdk/src/share/classes/sun/launcher/LauncherHelper.java has been modified so that the inner class FXHelper is not loaded unnecessarily. FXHelper, which is needed to

Re: review request: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-04-25 Thread Neil Toda
Thanks Kevin. -neil On 4/25/2014 8:22 AM, Kevin Rushforth wrote: The code changes looks fine to me. Also, I ran all JavaFX unit tests with no problems (at least none relating to launching). -- Kevin Neil Toda wrote: Webrev http://cr.openjdk.java.net/~ntoda/8035782/ for bug

Re: review request: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-04-29 Thread Neil Toda
/test/tools/launcher/FXLauncherTest.java#l360 just like jfxrt.jar is being tested now. Kumar On 4/25/2014 6:55 PM, Neil Toda wrote: Thanks Kevin. -neil On 4/25/2014 8:22 AM, Kevin Rushforth wrote: The code changes looks fine to me. Also, I ran all JavaFX unit tests with no problems (at least

Re: review request: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-04-29 Thread Neil Toda
Great. Thanks. On 4/29/2014 9:45 AM, Kumar Srinivasan wrote: On 4/29/2014 8:50 AM, Neil Toda wrote: Thanks Kumar. Will check these. I have FXLauncherTest.java open right now as I type. I started looking at it yesterday. Good that I am looking at the right test case. Good organization

8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-04-30 Thread Neil Toda
Please review Launcher change and test. I've added to the Launcher test : FXLauncherTest.java The test will now check that LauncherHelper$FXHelper is not loaded for non-JavaFX class and jar files. webrev.02 contains only review suggestions from webrev.01 and the new test class.

Re: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-05-01 Thread Neil Toda
to have you fix this. -26 * @bug 8001533 8004547 +26 * @bug 8001533 8004547 8035782 other than that it looks good, I can push this with the above change. Anyone else have any concerns with this change before I push ? Thanks Kumar On 4/30/2014 1:47 PM, Neil Toda wrote: Please review

Re: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-05-01 Thread Neil Toda
can push this with the above change. Anyone else have any concerns with this change before I push ? Thanks Kumar On 4/30/2014 1:47 PM, Neil Toda wrote: Please review Launcher change and test. I've added to the Launcher test : FXLauncherTest.java The test will now check that LauncherHelper

Re: 8035782 : sun/launcher/LauncherHelper$FXHelper loaded unnecessarily

2014-05-02 Thread Neil Toda
have any concerns with this change before I push ? Thanks Kumar On 4/30/2014 1:47 PM, Neil Toda wrote: Please review Launcher change and test. I've added to the Launcher test : FXLauncherTest.java The test will now check that LauncherHelper$FXHelper is not loaded for non-JavaFX class and jar

Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-19 Thread Neil Toda
Launcher support for modified Native Memory Tracking mechanism in JVM in JDK9. Webrev : http://cr.openjdk.java.net/~ntoda/8042469/webrev-03/ bug : https://bugs.openjdk.java.net/browse/JDK-8042469 CCC : http://ccc.us.oracle.com/8042469 Thanks. -neil

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-19 Thread Neil Toda
I'd mention it. Sent from my phone On Jun 19, 2014 8:30 PM, Neil Toda neil.t...@oracle.com mailto:neil.t...@oracle.com wrote: Launcher support for modified Native Memory Tracking mechanism in JVM in JDK9. Webrev : http://cr.openjdk.java.net/~ntoda/8042469/webrev-03/ http

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-20 Thread Neil Toda
Thanks Joe. It would have checked for NULL for me. I'll use the JLI wrapper. -neil On 6/20/2014 4:04 PM, Joe Darcy wrote: Memory allocation in the launcher should use one of the JLI_MemAlloc wrappers, if possible. -Joe On 06/20/2014 09:50 AM, Neil Toda wrote: They should complain

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-20 Thread Neil Toda
to post another iteration ? Kumar On 6/20/2014 4:27 PM, Neil Toda wrote: Thanks Joe. It would have checked for NULL for me. I'll use the JLI wrapper. -neil On 6/20/2014 4:04 PM, Joe Darcy wrote: Memory allocation in the launcher should use one of the JLI_MemAlloc wrappers, if possible. -Joe

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-23 Thread Neil Toda
, Kumar Srinivasan wrote: Neil, Generally looks good, yes JLI_* functions must be used, I missed that one. Are you going to post another iteration ? Kumar On 6/20/2014 4:27 PM, Neil Toda wrote: Thanks Joe. It would have checked for NULL for me. I'll use the JLI wrapper. -neil On 6/20/2014 4

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-25 Thread Neil Toda
info); 118 } On 6/24/2014 2:28 PM, Neil Toda wrote: New webrev-05 with Kumar's comments except for the C'ish style. Explained below. http://cr.openjdk.java.net/~ntoda/8042469/webrev-05/ 105 : DONE 146: DONE 168: DONE 106: Your suggestion was the way I had originally coded

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-26 Thread Neil Toda
, Zhengyu Gu wrote: Hi Neil, I tried out this patch with my hotspot, it does not work. The reason is that, the environment variable is setup too late, it has to be set before it launches JavaVM (before calling LoadJavaVM()) method. Thanks, -Zhengyu On 6/25/2014 1:58 PM, Neil Toda wrote

Re: Ready for Review : 8042469 : Launcher changes for native memory tracking scalability enhancement

2014-06-26 Thread Neil Toda
#696 to #681, you will see the test to fail. Linux putenv document says: *putenv*is very widely available, but it might or might not copy its argument, risking memory leaks. Thanks, -Zhengyu On 6/25/2014 4:40 PM, Neil Toda wrote: Okay, Very glad you checked. It really does need to go

RFR : JDK-8046545 launcher fix to check function return values

2014-07-18 Thread Neil Toda
Please review this launcher change. Issue: https://bugs.openjdk.java.net/browse/JDK-8046545 webrev: http://cr.openjdk.java.net/~ntoda/8046545/webrev-01/ Summary: Introduce a set of macros for launcher to be used to check for certain conditions after return from select functions.

Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-18 Thread Neil Toda
be an error or a null value. I suggest making this change to reflect this. Thanks Kumar On 7/18/2014 9:53 AM, Neil Toda wrote: Please review this launcher change. Issue: https://bugs.openjdk.java.net/browse/JDK-8046545 webrev: http://cr.openjdk.java.net/~ntoda/8046545/webrev-01/ Summary

Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-21 Thread Neil Toda
(JNI_RETURN, RETURN_VALUE); Kumar On 7/18/2014 10:40 AM, Neil Toda wrote: Thanks Kumar. Yes, misspoke here. Will correct the comment. On 7/18/2014 10:35 AM, Kumar Srinivasan wrote: Neil, The fix looks good. However there is an inaccuracy in the comment: + * Normally, JNI calls do not return

2d reviewer please . Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-23 Thread Neil Toda
. http://cr.openjdk.java.net/~ntoda/8046545/webrev-02/ Thanks -neil On 7/21/2014 9:31 AM, Neil Toda wrote: Hi Kumar Actually, the null check macros have different parameters. NCRV_return_value is an integer. RETURNVALUE in CHECK_JNI_RETURN is a macro, which allows us to have only the two macros

Re: 2d reviewer please . Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-24 Thread Neil Toda
also just send e-mail to 2d-...@openjdk.java.net and ask for a volunteer (I am not a Reviewer for 2D). -- Kevin Neil Toda wrote: I'm hoping some one will volunteer to be a 2d reviewer so we can satisfy jcheck requirement for a 2d review for this 8u patch. It is a very simple set

Re: 2d reviewer please . Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-24 Thread Neil Toda
for RETURN(N) #define RETURN(N) return N -neil On 7/23/2014 4:12 PM, Joe Darcy wrote: Hi Neil, On 07/23/2014 03:50 PM, Neil Toda wrote: I'm hoping some one will volunteer to be a 2d reviewer so we can satisfy jcheck requirement for a 2d review for this 8u patch. It is a very simple set

Re: 2d reviewer please . Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-24 Thread Neil Toda
Got it backwards. Will use #define RETURN(N) return (N) On 7/24/2014 9:06 AM, Neil Toda wrote: Thanks Joe and Kumar It would be better in terms of usability. I'll have these three macros: CHECK_JNI_RETURN_0 CHECK_JNI_RETURN_VOID CHECK_JNI_RETURN_VALUE With this change, I

Re: 2d reviewer please . Re: RFR : JDK-8046545 launcher fix to check function return values

2014-07-24 Thread Neil Toda
suggested before. Kumar Hi Neil, On 07/23/2014 03:50 PM, Neil Toda wrote: I'm hoping some one will volunteer to be a 2d reviewer so we can satisfy jcheck requirement for a 2d review for this 8u patch. It is a very simple set of macros and a couple of applications that we hope to use going

Please View Change : 8044867 : Fix raw and unchecked lint warnings in sun.tools.*

2014-07-31 Thread Neil Toda
Please view this patch cleaning up lint rawtypes, cast, and unchecked warnings in sun.tools.* http://cr.openjdk.java.net/~ntoda/8044867/webrev-04/ jbs: https://bugs.openjdk.java.net/browse/JDK-8044867 Thanks -neil

Re: Please View Change : 8044867 : Fix raw and unchecked lint warnings in sun.tools.*

2014-08-01 Thread Neil Toda
Thanks Joe. -neil On 7/31/2014 4:58 PM, Joe Darcy wrote: Looks fine Neil; thanks, -Joe On 07/31/2014 02:33 PM, Neil Toda wrote: Please view this patch cleaning up lint rawtypes, cast, and unchecked warnings in sun.tools.* http://cr.openjdk.java.net/~ntoda/8044867/webrev-04