Re: Collection Design FAQ

2016-09-22 Thread Remi Forax
On September 23, 2016 8:13:36 AM GMT+02:00, Kasper Nielsen wrote: >Hi, > >I accidently bumped into an old friend today >https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html >There are couple of questions that might need an update after Java 8. >Such >as > >Why don'

Re: We need to add blocking methods to CompletionStage!

2016-09-22 Thread Kasper Nielsen
On 21 September 2016 at 22:43, Martin Buchholz wrote: > (Sorry to re-open this discussion) > > The separation of a read-only CompletionStage from CompletableFuture is > great. I'm a fan of the scala style Promise/Future split as described in > http://docs.scala-lang.org/overviews/core/futures.ht

Collection Design FAQ

2016-09-22 Thread Kasper Nielsen
Hi, I accidently bumped into an old friend today https://docs.oracle.com/javase/8/docs/technotes/guides/collections/designfaq.html There are couple of questions that might need an update after Java 8. Such as Why don't you provide an "apply" method in Collection to apply a given method ("upcall")

Re: RFR(M): 8166560: [s390] Basic enablement of s390 port.

2016-09-22 Thread David Holmes
Hi Goetz, I see a change not related directly to S390 ie change from ARM to ARM32 in src/os/linux/vm/os_linux.cpp It will be a while before I can go through this in any detail. David On 23/09/2016 3:52 PM, Lindenmaier, Goetz wrote: Hi, This change is part of the s390 port. It contains some

RFR(M): 8166560: [s390] Basic enablement of s390 port.

2016-09-22 Thread Lindenmaier, Goetz
Hi, This change is part of the s390 port. It contains some basic adaptions needed for a full hotspot port for linux s390x. It defines the required macros, platform names and includes. The s390 port calles CodeCache::contains() in current_frame(), which is used in NMT. As NMT already collects

Re: RFR 8166501 : compilation error in stackwalk.cpp on some gccs

2016-09-22 Thread David Holmes
This is the second example I've seen in two days concerning misuse of CHECK_ macros. They expand into an if statement after the call, so can not appear on calls that are part of a return statement, or a conditional statement, or likely a number of other places, as the if code either becomes unr

Re: [concurrency-interest] We need to add blocking methods to CompletionStage!

2016-09-22 Thread Martin Buchholz
Thanks for the lesson, James! On Wed, Sep 21, 2016 at 3:57 PM, James Roper wrote: > On 22 September 2016 at 06:43, Martin Buchholz > wrote: > >> What is happening instead is API providers not using CompletionStage as >> return values in public APIs because of the lack of convenient blocking, >>

Re: RFR: 8151832: Improve exception messages in exceptions thrown by jigsaw code

2016-09-22 Thread Mandy Chung
That’d be fine. Mandy > On Sep 22, 2016, at 11:43 AM, Sean Coffey wrote: > > Thanks Mandy. I pushed this change earlier today. If BasicImageReader.java is > being edited again in the near future, we might be able to make your > suggested edits then. > > regards, > Sean. > > On 22/09/2016 19

Re: RFR 8166501 : compilation error in stackwalk.cpp on some gccs

2016-09-22 Thread Dmitry Samersoff
Brent, Looks good for me. -Dmitry On 2016-09-22 19:04, Brent Christian wrote: > Hi, > > Looks like my 8165372 change broke the slowdebug build. Please review > my fix (which also breaks up a pretty long line): > > --- a/src/share/vm/prims/stackwalk.cpp > +++ b/src/share/vm/prims/stackwalk.cpp

Re: RFR: 8151832: Improve exception messages in exceptions thrown by jigsaw code

2016-09-22 Thread Sean Coffey
Thanks Mandy. I pushed this change earlier today. If BasicImageReader.java is being edited again in the near future, we might be able to make your suggested edits then. regards, Sean. On 22/09/2016 19:23, Mandy Chung wrote: On Sep 21, 2016, at 8:56 AM, Seán Coffey wrote: Resurrecting this o

Re: RFR: 8151832: Improve exception messages in exceptions thrown by jigsaw code

2016-09-22 Thread Mandy Chung
> On Sep 21, 2016, at 8:56 AM, Seán Coffey wrote: > > Resurrecting this old review thread. After some internal discussion, I've > dropped the minor edit that was made in StackTraceElementCompositeData. It > could be noisy data for exception purposes. I've corrected the other issues > raised b

Re: RFR(L): 8161211: better inlining support for loop bytecode intrinsics

2016-09-22 Thread John Rose
On Sep 22, 2016, at 12:23 AM, Michael Haupt wrote: > thanks for your review, and thanks Vladimir! I've had another go at the > implementation to use a dedicated loop clause holder class with a stable > array; performance is roughly on par with that of the BMHs-as-arrays approach > (see below).

RFR 8166501 : compilation error in stackwalk.cpp on some gccs

2016-09-22 Thread Brent Christian
Hi, Looks like my 8165372 change broke the slowdebug build. Please review my fix (which also breaks up a pretty long line): --- a/src/share/vm/prims/stackwalk.cpp +++ b/src/share/vm/prims/stackwalk.cpp @@ -331,10 +331,12 @@ assert (use_frames_array(mode), "Bad mode for get live frame");

Re: RFR: 8166398: CatalogSupport tests need to be fixed -> Re: RFR: 8166220: Catalog API: JAXP XML Processor Support - add StAX test coverage

2016-09-22 Thread Joe Wang
Thanks Daniel! I'm glad the issue was caught! I'm also making sure any the debugging method shall throw Exception as well :-) Best, Joe On 9/22/16, 2:09 AM, Daniel Fuchs wrote: Hi Joe, Looks good to me. Thanks for having taken the time to take a second look :-) best regards, -- daniel O

Re: RFR: 8151832: Improve exception messages in exceptions thrown by jigsaw code

2016-09-22 Thread Sean Coffey
On 22/09/2016 14:14, Alan Bateman wrote: This looks okay to me. You may want to change the bug message to drop "thrown by jigsaw code" as most of the changed files are jimage or other areas. Thanks Alan - Yes - will correct that before I push then. regards, Sean.

Re: RFR: jsr166 jdk9 integration wave 11

2016-09-22 Thread Martin Buchholz
On Thu, Sep 22, 2016 at 5:39 AM, Chris Hegarty wrote: > > Can you please check the indentation in testCopy_normalCompletion > and testCopy_exceptionalCompletion. > CompletableFutureTest.java has a unique experimental indentation style, that is not clearly worse than the alternatives.

Re: RFR: 8151832: Improve exception messages in exceptions thrown by jigsaw code

2016-09-22 Thread Alan Bateman
On 21/09/2016 08:56, Seán Coffey wrote: Resurrecting this old review thread. After some internal discussion, I've dropped the minor edit that was made in StackTraceElementCompositeData. It could be noisy data for exception purposes. I've corrected the other issues raised by Alan and Jim has l

Re: RFR: jsr166 jdk9 integration wave 11

2016-09-22 Thread Chris Hegarty
On 21 Sep 2016, at 20:33, Martin Buchholz wrote: > > http://cr.openjdk.java.net/~martin/webrevs/openjdk9/jsr166-jdk9-integration/ > > Notable here is an attempt to make a minimal completion stage more acceptable > as a return value from APIs, by making > completableFuture.minimalCompletionStag

Re: We need to add blocking methods to CompletionStage!

2016-09-22 Thread Chris Hegarty
Until now CS and CF have not appeared in Java SE API signatures, outside of the j.u.c package. They are, however, currently being proposed for use in API signatures for Java SE 9 [1][2], namely j.l.Process[Handle]::onExit, and more extensively in the proposed new HTTP Client. CF was chosen, in som

Re: RFR: 8166398: CatalogSupport tests need to be fixed -> Re: RFR: 8166220: Catalog API: JAXP XML Processor Support - add StAX test coverage

2016-09-22 Thread Daniel Fuchs
Hi Joe, Looks good to me. Thanks for having taken the time to take a second look :-) best regards, -- daniel On 21/09/16 17:47, Joe Wang wrote: Hi Daniel, Here's the fix for the test issues, a couple of errors including missing handler in StAX test, and dtd was mistakingly typed as xsd . Th

Re: RFR(L): 8161211: better inlining support for loop bytecode intrinsics

2016-09-22 Thread Michael Haupt
Hi John, thanks for your review, and thanks Vladimir! I've had another go at the implementation to use a dedicated loop clause holder class with a stable array; performance is roughly on par with that of the BMHs-as-arrays approach (see below). The new webrev is at http://cr.openjdk.java.net/~

Re: RFR: 8166189: Fix for Bug 8165524 breaks AIX build

2016-09-22 Thread Thomas Stüfe
Hi Kumar, > On 9/16/2016 10:34 AM, Volker Simonis wrote: > >> Hi Christoph, >> >> I think your change is fine as a quick-fix to fix the build. But >> you're completely right that this should be reworked in the long term. >> I hate to see that we now have the third version of these routines in >>