Re: RFR(m): updated: JEP 269 initial API and skeleton implementation (JDK-8139232)

2015-12-07 Thread Michael Hixson
On Mon, Dec 7, 2015 at 4:19 PM, Stuart Marks wrote: > Hi Maurizio, > > Well, maybe we should add five more overloads to EnumSet.of()? (Only > slightly joking here.) > > Setting aside the number of overloads, it would add N more overloads to > Set.of(). I guess the erasure of > would be Enum, so th

Re: Potential performance improvement for java.util.AbstractList?

2015-12-07 Thread David Holmes
On 8/12/2015 1:39 AM, Rafael Winterhalter wrote: In this case, one might consider: if (o instanceof java.util.RandomAccess && (List)o).size() != size()) return false; You'd also have to check the type of 'this'. Type checks are cheap, so the overhead of this additional statement should no

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread David Holmes
On 7/12/2015 9:39 PM, Erik Joelsson wrote: On 2015-12-07 12:18, David Holmes wrote: On 7/12/2015 6:33 PM, Erik Joelsson wrote: On 2015-12-04 22:00, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8144677 http://cr.openjdk.java.net/~cjplu

Re: RFR 8144675: Add a filtering collector

2015-12-07 Thread ShinyaYoshida
Hi, Another way have been found to satisfy the requirement(Thank you, @gaku). FYI, we can write it easy using toMap in this case: Map map = emps.stream() .collect(toMap(Employee::getDepartment, e -> e.getSalary() > 2000 ? 1L : 0L, Long::sum)); However, filtering is still necessar

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread Chris Plummer
Thanks Mikael! Chris On 12/7/15 3:22 PM, Mikael Vidstedt wrote: Thumbs up! Cheers, Mikael On 2015-12-07 14:27, Chris Plummer wrote: Thanks David! Can I get a second reviewer please? thanks, Chris On 12/6/15 3:52 PM, David Holmes wrote: Hi Chris, On 5/12/2015 7:00 AM, Chris Plummer wro

Re: RFR(m): update 2: JEP 269 initial API and skeleton implementation (JDK-8139232)

2015-12-07 Thread Stuart Marks
Hi Chris, Yes, absolutely, my plan is to introduce a serial proxy in a subsequent round of changes. The serial proxy will be the only new serial form introduced; the optimized implementations won't have a serial form of their own exposed. The skeleton implementations are in fact serializable

Re: RFR(m): updated: JEP 269 initial API and skeleton implementation (JDK-8139232)

2015-12-07 Thread Stuart Marks
Hi Maurizio, Well, maybe we should add five more overloads to EnumSet.of()? (Only slightly joking here.) Setting aside the number of overloads, it would add N more overloads to Set.of(). I guess the erasure of > would be Enum, so there wouldn't be any overload ambiguity To me the quest

Re: [9] RFR of 8143394: PushbackReader throws NullPointerException

2015-12-07 Thread Brian Burkhalter
On Dec 4, 2015, at 3:34 AM, Alan Bateman wrote: > On 04/12/2015 00:23, Brian Burkhalter wrote: >> Please review at your convenience. >> >> Issue: https://bugs.openjdk.java.net/browse/JDK-8143394 >> Patch: http://cr.openjdk.java.net/~bpb/8143394/webrev.00/ >> >> The NPE apparently o

Re: [9] RFR of 8143394: PushbackReader throws NullPointerException

2015-12-07 Thread Brian Burkhalter
On Dec 4, 2015, at 12:48 AM, Daniel Fuchs wrote: > The only other possible issue I spotted is in the test: > > Because readers[0] is set by one thread and read by both then using > an array without synchronization is not thread safe. I would > advise using an AtomicReference instead. The only

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread Mikael Vidstedt
Thumbs up! Cheers, Mikael On 2015-12-07 14:27, Chris Plummer wrote: Thanks David! Can I get a second reviewer please? thanks, Chris On 12/6/15 3:52 PM, David Holmes wrote: Hi Chris, On 5/12/2015 7:00 AM, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.jav

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread Chris Plummer
Thanks David! Can I get a second reviewer please? thanks, Chris On 12/6/15 3:52 PM, David Holmes wrote: Hi Chris, On 5/12/2015 7:00 AM, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8144677 http://cr.openjdk.java.net/~cjplummer/8144677/w

Re: JDK 9 RFR of JDK-8144880: Instrument intermittently failing test ConfigChanges.java

2015-12-07 Thread Martin Buchholz
Thanks! I'm not seeing this fail recently. On Mon, Dec 7, 2015 at 1:39 PM, joe darcy wrote: > Hello, > > Please review the changes to address > > JDK-8144880: Instrument intermittently failing test ConfigChanges.java > > The test > > java/util/concurrent/ThreadPoolExecutor/ConfigChanges.j

Re: JDK 9 RFR of JDK-8144880: Instrument intermittently failing test ConfigChanges.java

2015-12-07 Thread joe darcy
Hi Martin, FYI, within the past month, we've seen this test fail at least once on 64-bit windows and at least once more on Solaris x64. Thanks for the review, -Joe On 12/7/2015 2:07 PM, Martin Buchholz wrote: Thanks! I'm not seeing this fail recently. On Mon, Dec 7, 2015 at 1:39 PM, joe da

Re: JDK 9 RFR of JDK-8144880: Instrument intermittently failing test ConfigChanges.java

2015-12-07 Thread Lance Andersen
Hi Joe +1 Best Lance On Dec 7, 2015, at 4:39 PM, joe darcy wrote: > Hello, > > Please review the changes to address > >JDK-8144880: Instrument intermittently failing test ConfigChanges.java > > The test > >java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java > > fails interm

JDK 9 RFR of JDK-8144880: Instrument intermittently failing test ConfigChanges.java

2015-12-07 Thread joe darcy
Hello, Please review the changes to address JDK-8144880: Instrument intermittently failing test ConfigChanges.java The test java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java fails intermittently and uses randomness. In the patch below, It is marked accordingly and downgraded

Re: RFR: JDK-8057804: AnnotatedType interfaces provide no way to get annotations on owner type

2015-12-07 Thread Alan Bateman
On 07/12/2015 20:43, Joel Borggrén-Franck wrote: : Good question. Anyone? I'll grep for 1.9 if it is still there in lots of places I would expect "someone else" to do a big cleanup job. I think Iris is planning a bulk update to change them to 9 soon, might need a couple of rounds to ensure th

Re: RFR: JDK-8057804: AnnotatedType interfaces provide no way to get annotations on owner type

2015-12-07 Thread Joel Borggrén-Franck
Hi Paul, See inline, On Mon, 7 Dec 2015 at 21:39 Paul Benedict wrote: > Joel, some comments on AnnotatedType#getAnnotatedOwnerType(): > > * Is it convention to use tags to describe the complexity of the > return value vs. just explaining it all in the @return tag? > > It is for the Core Reflec

Re: RFR: JDK-8057804: AnnotatedType interfaces provide no way to get annotations on owner type

2015-12-07 Thread Paul Benedict
Joel, some comments on AnnotatedType#getAnnotatedOwnerType(): * Is it convention to use tags to describe the complexity of the return value vs. just explaining it all in the @return tag? * What is the convention for @see nowadays? Is it 1.9 or 9? Cheers, Paul On Mon, Dec 7, 2015 at 2:29 PM, Jo

Re: RFR: JDK-8057804: AnnotatedType interfaces provide no way to get annotations on owner type

2015-12-07 Thread Joel Borggrén-Franck
Hi, Thanks for the comments. I removed the allocations and fixed the quadratic copy in popAllLocations. New webrev: http://cr.openjdk.java.net/~jfranck/8057804/webrev.01/ cheers /Joel On Thu, Nov 19, 2015 at 2:07 PM, Claes Redestad wrote: > Hi Joel, > > looks good. I see a CCC has been filed.

Re: RFR 8143404: Remove apple script engine code in jdk repository

2015-12-07 Thread Mandy Chung
On 12/06/2015 07:17 PM, Sundararajan Athijegannathan wrote: Hi, Please review the updated webrevs http://cr.openjdk.java.net/~sundar/8143404/jdk/webrev.01/ http://cr.openjdk.java.net/~sundar/8143404/top/webrev.01/ http://cr.openjdk.java.net/~sundar/8143404/langtools/webrev.00/ Looks good.

Re: RFR: JDK-8142508: To bring j.u.z.ZipFile's native implementation to Java to remove the expensive jni cost and mmap crash risk

2015-12-07 Thread Xueming Shen
Hi Sean, Thanks for the review. Webrev has been updated accordingly. The only suggestion I did not follow is to append the file name into the zip error/exception message. I would assume it might have vuln concern if the file name is published in such exception. It might be OK to only publish the

Re: RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization

2015-12-07 Thread Roger Riggs
Hi David, Thanks for the comments, Updated the javadoc and webrev with editorial changes. [1]http://cr.openjdk.java.net/~rriggs/webrev-cleaner-8138696/ [2]http://cr.openjdk.java.net/~rriggs/cleaner-doc/index.html On 12/6/15 7:46 PM, David Holmes wrote: Hi Roger, Sorry to be late here but w

Re: Reference.reachabilityFence

2015-12-07 Thread mark . reinhold
2015/12/4 5:47 -0800, paul.san...@oracle.com: >> On 3 Dec 2015, at 22:33, Mandy Chung wrote: >>> On Nov 26, 2015, at 8:22 AM, Paul Sandoz wrote: >>> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8133348-reachability-fence-jdk/webrev/ >>> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8133348-reachab

Re: [concurrency-interest] Spin Loop Hint support: Draft JEP proposal

2015-12-07 Thread mark . reinhold
2015/11/30 6:58 -0800, g...@azul.com: > Update: After some significant back-and-forth between Doug and I on > naming and JavaDoc'ing, and with Martin (Thompson) stepping in to > help, we have what we think is a good spec and name selection for this > thing. We're proposing to add a new static metho

Re: RFR: JDK-8142508: To bring j.u.z.ZipFile's native implementation to Java to remove the expensive jni cost and mmap crash risk

2015-12-07 Thread Seán Coffey
Hi Sherman, Nice work. It'll certainly help protect the VM from bad application code. I've no major issues with the new code. Some comments below. src/java.base/share/classes/java/util/zip/ZipFile.java unused import : import java.nio.file.Path; line 840 : This could be marked final private

Re: Pattern.splitAsStream JavaDoc doubt

2015-12-07 Thread Paul Sandoz
> On 7 Dec 2015, at 16:23, Tagir F. Valeev wrote: > > Hello, Chris, Paul! > > Thank you for the review. > >>> Tagir, >>> >>> It would seem most useful to update the implementation to >>> match the current spec. > > PS> Yes, it’s an oversight and lacked a test for such case. > > PS> Tagir, t

Re: Potential performance improvement for java.util.AbstractList?

2015-12-07 Thread Rafael Winterhalter
In this case, one might consider: if (o instanceof java.util.RandomAccess && (List)o).size() != size()) return false; Type checks are cheap, so the overhead of this additional statement should not be too big. Yet, maybe many list comparisons in practice involve lists of equal size. Otherwise, t

Re: Potential performance improvement for java.util.AbstractList?

2015-12-07 Thread Cédric Champeau
I assume one reason it's done this way is that depending on the list implementation you are using, getting the size might involve iterating over all elements, so you would be iterating twice at worst case. 2015-12-07 16:28 GMT+01:00 Langer, Christoph : > Hi all, > > a Java application developer o

Potential performance improvement for java.util.AbstractList?

2015-12-07 Thread Langer, Christoph
Hi all, a Java application developer of our company has indicated that it might yield some performance benefit to modify the coding of java.util.AbstractList.equals() that it would first compare the size of the lists before iterating the elements. It would for sure be better in cases where one

Re: Pattern.splitAsStream JavaDoc doubt

2015-12-07 Thread Tagir F. Valeev
Hello, Chris, Paul! Thank you for the review. >> Tagir, >> >> It would seem most useful to update the implementation to >> match the current spec. PS> Yes, it’s an oversight and lacked a test for such case. PS> Tagir, thanks for finding this. Would it be possible for you to PS> also add a test

Re: Pattern.splitAsStream JavaDoc doubt

2015-12-07 Thread Chris Hegarty
On 07/12/15 13:55, Paul Sandoz wrote: On 7 Dec 2015, at 11:18, Chris Hegarty wrote: Tagir, It would seem most useful to update the implementation to match the current spec. Yes, it’s an oversight and lacked a test for such case. Tagir, thanks for finding this. Would it be possible for you

Re: Pattern.splitAsStream JavaDoc doubt

2015-12-07 Thread Paul Sandoz
> On 7 Dec 2015, at 11:18, Chris Hegarty wrote: > > Tagir, > > It would seem most useful to update the implementation to > match the current spec. Yes, it’s an oversight and lacked a test for such case. Tagir, thanks for finding this. Would it be possible for you to also add a test to jdk/te

Re: RFR: 8071507: (ref) Clear phantom reference as soft and weak references do

2015-12-07 Thread Sergey Bylokhov
On 05.12.15 21:23, Peter Levart wrote: Digging up the src.jar of JDK 1.2.2, here's what the constructor of PhantomReference looked like: /** * Creates a new phantom reference that refers to the given object and * is registered with the given queue. * * @throws NullP

Re: RFR(S): 8144723: MethodHandleImpl.initStatics is no longer needed

2015-12-07 Thread Claes Redestad
Hi Remi, On 2015-12-07 12:42, Remi Forax wrote: Hi Claes, Makers should be declared 'private', so the constructor by default will be private. You should remove 'private' in front of TYPED_COLLECTORS, PRODUCE_BLOCK_INLINING_FORM and PRODUCE_REINVOKER_FORM because otherwise the compiler will g

Re: RFR(S): 8144723: MethodHandleImpl.initStatics is no longer needed

2015-12-07 Thread Remi Forax
Hi Claes, Makers should be declared 'private', so the constructor by default will be private. You should remove 'private' in front of TYPED_COLLECTORS, PRODUCE_BLOCK_INLINING_FORM and PRODUCE_REINVOKER_FORM because otherwise the compiler will generate methods access$xxx inside Makers to access

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread Erik Joelsson
On 2015-12-07 12:18, David Holmes wrote: On 7/12/2015 6:33 PM, Erik Joelsson wrote: On 2015-12-04 22:00, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8144677 http://cr.openjdk.java.net/~cjplummer/8144677/webrev.01/webrev/ Tested with J

Re: RFR(m): update 2: JEP 269 initial API and skeleton implementation (JDK-8139232)

2015-12-07 Thread Chris Hegarty
102 * They are serializable if all elements are serializable. To avoid any ambiguity or "leaking", would it make sense to have the serial form of these types be defined, in a similar manner to what was done for Serializable types in the java.time package [1]. This can be done as a follow up,

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread David Holmes
On 7/12/2015 6:33 PM, Erik Joelsson wrote: On 2015-12-04 22:00, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8144677 http://cr.openjdk.java.net/~cjplummer/8144677/webrev.01/webrev/ Tested with JPRT with: • "-testset hotspot" • "-tests

Re: Pattern.splitAsStream JavaDoc doubt

2015-12-07 Thread Chris Hegarty
Tagir, It would seem most useful to update the implementation to match the current spec. To that end, your first patch looks like the most appropriate change, pattern-patch.txt. -Chris. On 06/12/15 12:21, Tagir F. Valeev wrote: Hello! Currently Pattern.splitAsStream JavaDoc says [1]: * If

Re: RFR 8143404: Remove apple script engine code in jdk repository

2015-12-07 Thread Alan Bateman
On 07/12/2015 03:17, Sundararajan Athijegannathan wrote: Hi, Please review the updated webrevs http://cr.openjdk.java.net/~sundar/8143404/jdk/webrev.01/ http://cr.openjdk.java.net/~sundar/8143404/top/webrev.01/ http://cr.openjdk.java.net/~sundar/8143404/langtools/webrev.00/ Updated patches l

Re: RFR 8144675: Add a filtering collector

2015-12-07 Thread ShinyaYoshida
Hi Paul, Thank you for your answer. I've just updated my webrev to use 9: http://cr.openjdk.java.net/~shinyafox/8144675/webrev.01/ Regards, shinyafox(Shinya Yoshida) 2015-12-07 17:31 GMT+09:00 Paul Sandoz : > > On 7 Dec 2015, at 03:45, ShinyaYoshida wrote: > > Hi, > I'd like to wait for the r

Re: RFR(S): 8144723: MethodHandleImpl.initStatics is no longer needed

2015-12-07 Thread Michael Haupt
Hi Claes, this is a lower-case review, but thumbs up. Truth or dare. ;-) Best, Michael > Am 04.12.2015 um 17:28 schrieb Claes Redestad : > > Hi, > > please review this issue to remove explicit initialization of > MethodHandleImpl, which doesn't seem to be needed after recent j.l.invoke > bo

Re: [RFR] (XS) 8144677: jprt.properties should allow creating a user specified testset with custom build flavors and build targets

2015-12-07 Thread Erik Joelsson
On 2015-12-04 22:00, Chris Plummer wrote: Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8144677 http://cr.openjdk.java.net/~cjplummer/8144677/webrev.01/webrev/ Tested with JPRT with: • "-testset hotspot" • "-testset svc" • "-testset chris" from the exampl

Re: RFR 8144675: Add a filtering collector

2015-12-07 Thread Paul Sandoz
> On 7 Dec 2015, at 03:45, ShinyaYoshida wrote: > > Hi, > I'd like to wait for the review, but I have a trivial question: > > Which @since is preferred, 1.9 or 9? > @since 9 > For ex, at Optional#or and stream, @since 9 is used. > On the other hand, at Collectors#flatMap, @since 1.9 is used