Re: Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

2014-01-07 Thread David Holmes
On 8/01/2014 4:19 PM, David Holmes wrote: On 8/01/2014 7:33 AM, srikalyan chandrashekar wrote: Hi David, TraceExceptions with fastdebug build produced some nice trace . The native method wait(long) is where the OOME if being throw

Re: Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

2014-01-07 Thread David Holmes
On 8/01/2014 7:33 AM, srikalyan chandrashekar wrote: Hi David, TraceExceptions with fastdebug build produced some nice trace . The native method wait(long) is where the OOME if being thrown, the deepest call is in src/share/vm/gc_

Re: JDK 9 RFR of JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache}

2014-01-07 Thread Lance Andersen - Oracle
looks good Joe On Jan 7, 2014, at 6:58 PM, Joe Darcy wrote: > Hello, > > Please review the fix below to address > >JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache} > > by a quick-and-dirty generification and deprecation of some very old classes > >http://cr.openjdk.ja

RFR for JDK-8030089: java/util/zip/ZipFile/FinalizeZipFile.java intermittently fails with fastdebug builds

2014-01-07 Thread Tristan Yan
Hi All Please help to review code fix for bug JDK-8030089. http://cr.openjdk.java.net/~tyan/JDK-8030089/webrev.00/ Description: 1. Set test running on othervm mode. 2. Use infinite wait to the CountDownLatch. Thank you Tristan

Re: JDK 9 proposal: remove sun.misc.Ref

2014-01-07 Thread Stuart Marks
On 1/7/14 2:26 PM, Joe Darcy wrote: public abstract class Ref { So the type has been deprecated for at least 10 years. Rather than fixing the warning in the class, I think the best course of action is to remove the file in JDK 9. A build of OpenJDK without this file builds fine; if a build of t

Re: JDK 9 RFR of JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache}

2014-01-07 Thread Joe Darcy
Hi Mike, On 01/07/2014 05:23 PM, Mike Duigou wrote: Can you add the javadoc @deprecated deprecation notice as well? Sure; for Cache I'll point to LinkedHashMap and I'll look into finding a alternative to SoftCache. Thanks for the review, -Joe Otherwise looks good. Mike On Jan 7 2014,

Re: JDK 9 RFR of JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache}

2014-01-07 Thread Mike Duigou
Can you add the javadoc @deprecated deprecation notice as well? Otherwise looks good. Mike On Jan 7 2014, at 15:58 , Joe Darcy wrote: > Hello, > > Please review the fix below to address > >JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache} > > by a quick-and-dirty generi

Re: RFR: JDK-8028726 - (prefs) Check src/solaris/native/java/util/FileSystemPreferences.c for JNI pending exceptions

2014-01-07 Thread Dan Xu
Hi All, Thanks for your good review. I have dropped the change in FileSystemPreferences.java , and created the new webrev which only changes FileSystemPreferences.c. Please help review it. Thanks! Webrev: http://cr.openjdk.java.net/~dxu/8028726/webrev.01/ When changing FileSystemPreferences.

JDK 9 RFR of JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache}

2014-01-07 Thread Joe Darcy
Hello, Please review the fix below to address JDK-8031369: Fix raw types warnings in sun.misc.{Cache, SoftCache} by a quick-and-dirty generification and deprecation of some very old classes http://cr.openjdk.java.net/~darcy/8031369.0/ Corresponding patch below. In the fullness of tim

Re: JDK 9 RFR of raw type lint fix to java.lang.management

2014-01-07 Thread Mandy Chung
On 1/7/2014 12:30 PM, Joe Darcy wrote: Hello, Please review another minor lint fix of a raw type issues in the core libraries: Looks good. cc'ing serviceability-dev as java.lang.management is owned by the serviceability team. Mandy

JDK 9 proposal: remove sun.misc.Ref

2014-01-07 Thread Joe Darcy
Hello, As part of the lint clean up of core libraries, I noticed a number of warnings in the class sun.misc.Ref. Notable excerpts from the file: /* * Copyright (c) 1995, 2004, Oracle and/or its affiliates. All rights reserved. ... * @deprecated This class has been replaced by * java.uti

Re: Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

2014-01-07 Thread srikalyan chandrashekar
Hi David, TraceExceptions with fastdebug build produced some nice trace . The native method wait(long) is where the OOME if being thrown, the deepest call is in src/share/vm/gc_interface/collectedHeap.inline.hpp, line 157 -

Re: JDK 9 RFR of raw type lint fix to java.lang.management

2014-01-07 Thread Lance Andersen - Oracle
+1 On Jan 7, 2014, at 3:30 PM, Joe Darcy wrote: > Hello, > > Please review another minor lint fix of a raw type issues in the core > libraries: > >diff -r 2647b91dbc2a > src/share/classes/java/lang/management/ManagementFactory.java > --- a/src/share/classes/java/lang/management/ManagementF

Re: JDK 9 RFR of raw type lint fix to java.lang.management

2014-01-07 Thread Alan Bateman
On 07/01/2014 20:30, Joe Darcy wrote: Hello, Please review another minor lint fix of a raw type issues in the core libraries: Looks good. -Alan.

Re: Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

2014-01-07 Thread srikalyan chandrashekar
Peter, getting state info out(to console or otherwise) from within Reference Handler's exceptions handlers have been unsuccessful. However David's suggestion produced some useful trace with fast debug build and could get some information , see the log here

Re: JDK 9 RFR of raw type lint fix to java.lang.management

2014-01-07 Thread Paul Sandoz
+1 Paul. On Jan 7, 2014, at 9:30 PM, Joe Darcy wrote: > Hello, > > Please review another minor lint fix of a raw type issues in the core > libraries: > >diff -r 2647b91dbc2a > src/share/classes/java/lang/management/ManagementFactory.java > --- a/src/share/classes/java/lang/management/Man

JDK 9 RFR of raw type lint fix to java.lang.management

2014-01-07 Thread Joe Darcy
Hello, Please review another minor lint fix of a raw type issues in the core libraries: diff -r 2647b91dbc2a src/share/classes/java/lang/management/ManagementFactory.java --- a/src/share/classes/java/lang/management/ManagementFactory.java Tue Jan 07 09:58:16 2014 -0800 +++ b/src/share/cl

hg: jdk8/tl/jdk: 8031103: java.time.Duration has wrong Javadoc Comments in toDays() and toHours()

2014-01-07 Thread roger . riggs
Changeset: 1b503dd54b95 Author:rriggs Date: 2014-01-07 11:50 -0500 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/1b503dd54b95 8031103: java.time.Duration has wrong Javadoc Comments in toDays() and toHours() Summary: Correct specification for Duration.toDays, toHours Reviewed-by: l

RE: Optimization in collections API

2014-01-07 Thread Jason Mehrens
Robert, If you can create a micro benchmark that fools all of the core-libs-dev or real world benchmark that actually shows performance improvements you might be able to get this patch in to the source code. Previous attempts are covered under https://bugs.openjdk.java.net/browse/JDK-437552

Re: RFR for JDK-6772009 Intermittent test failure: java/util/concurrent/locks/ReentrantLock/CancelledLockLoops.java test failed with 'Completed != 2'

2014-01-07 Thread Sandeep Konchady
Hi David/Martin, If you agree with Kalyan's fix for this issue, could one of you please sponsor the push. Thanks, Sandeep On Dec 23, 2013, at 11:17 AM, srikalyan chandrashekar wrote: > Hi David/Martin, could any one of you sponsor this change for me? > > --- > Thanks > kalyan > > On 12/20/

Re: RFR for JDK-7027502: Test failures in demo/jvmti/hprof testcases, need to be othervm

2014-01-07 Thread David Holmes
On 7/01/2014 8:36 PM, Tristan Yan wrote: Hi David You're totally right. Sorry I ask you review it again. http://cr.openjdk.java.net/~tyan/JDK-7027502/webrev.02/ Looks good now. Thanks, David Thank you very much. Tristan On 01/07/2014 05:18 PM, David Holmes wrote: On 7/01/2014 6:16 PM, Tri

Re: JDK 9 RFR - 8031142 [was: Re: Using @implSpec in AbstractMap, AbstractCollection, AbstractList, etc]

2014-01-07 Thread Chris Hegarty
On 6 Jan 2014, at 21:19, Martin Buchholz wrote: > Your change looks good, except there's one more trailing to remove. Thanks for the review. I found the trailing and removed it. -Chris.

Re: RFR for JDK-7027502: Test failures in demo/jvmti/hprof testcases, need to be othervm

2014-01-07 Thread Tristan Yan
Hi David You're totally right. Sorry I ask you review it again. http://cr.openjdk.java.net/~tyan/JDK-7027502/webrev.02/ Thank you very much. Tristan On 01/07/2014 05:18 PM, David Holmes wrote: On 7/01/2014 6:16 PM, Tristan Yan wrote: Thank you, David I fixed copyright and change back sleep. p

Re: RFR java.time.Duration spec correction (8031103)

2014-01-07 Thread Alan Bateman
On 06/01/2014 19:09, roger riggs wrote: Please review this minor specification correction to the java.time.Duration.toDays() and toHours() methods. Only the javadoc is corrected, no code or tests are affected. Webrev: http://cr.openjdk.java.net/~rriggs/webrev-duration-javadoc-8031103/ This l

Re: Theoretical data race on java.util.logging.Handler.sealed

2014-01-07 Thread Peter Levart
Hi Mandy, Daniel, Thanks for reviews. I just pushed this change to jdk9-dev/jdk ... Regards, Peter On 12/23/2013 05:50 AM, Mandy Chung wrote: On 12/22/2013 5:23 AM, Peter Levart wrote: Hi Mandy, On 12/19/2013 10:38 PM, Mandy Chung wrote: On 12/19/13 7:49 AM, Peter Levart wrote: Hi Mandy,

Re: RFR: JDK-8028726 - (prefs) Check src/solaris/native/java/util/FileSystemPreferences.c for JNI pending exceptions

2014-01-07 Thread Alan Bateman
On 06/01/2014 22:29, Dan Xu wrote: Hi All, Please review the simple fix for JNI pending exceptions in FileSystemPreferences.c. Thanks! Bug: https://bugs.openjdk.java.net/browse/JDK-8028726 Webrev: http://cr.openjdk.java.net/~dxu/8028726/webrev/ The update to FIleSystemPreferences.c looks okay

Re: RFR: JDK-8028726 - (prefs) Check src/solaris/native/java/util/FileSystemPreferences.c for JNI pending exceptions

2014-01-07 Thread Chris Hegarty
On 6 Jan 2014, at 22:29, Dan Xu wrote: > Hi All, > > Please review the simple fix for JNI pending exceptions in > FileSystemPreferences.c. Thanks! > > Bug: https://bugs.openjdk.java.net/browse/JDK-8028726 > Webrev: http://cr.openjdk.java.net/~dxu/8028726/webrev/ Looks good to me Dan. Trivial

Re: RFR for JDK-7027502: Test failures in demo/jvmti/hprof testcases, need to be othervm

2014-01-07 Thread David Holmes
On 7/01/2014 6:16 PM, Tristan Yan wrote: Thank you, David I fixed copyright and change back sleep. println was intended to be left in. This test was failed with timeout, printf could help us to detect the value of total_turns_taken and expected_turns_taken. Please review it again http://cr.openj

Re: ObjectIn/OutputStream improvements

2014-01-07 Thread Chris Hegarty
On 15 Dec 2013, at 10:29, Robert Stupp wrote: > Hi, > > I digged through the object serialization code and found some lines that > could be optimized to reduce the number of calls to System.arraycopy() and > temporary object allocations especially during string (de)serialization. > In short se

Re: Analysis on JDK-8022321 java/lang/ref/OOMEInReferenceHandler.java fails intermittently

2014-01-07 Thread Peter Levart
On 01/07/2014 03:15 AM, srikalyan chandrashekar wrote: Sure David will give that a try, we have so far attempted to 1. Print state data(as per the test creator peter.levart's inputs), Hi Kalyan, Have you been able to reproduce the OOME in that set-up? What was the result? Regards, Peter 2

Re: RFR for JDK-7027502: Test failures in demo/jvmti/hprof testcases, need to be othervm

2014-01-07 Thread Tristan Yan
Thank you, David I fixed copyright and change back sleep. println was intended to be left in. This test was failed with timeout, printf could help us to detect the value of total_turns_taken and expected_turns_taken. Please review it again http://cr.openjdk.java.net/~tyan/JDK-7027502/webrev.01