Re: Getting a live view of environment variables (Gradle and JDK 9)

2017-05-10 Thread Martin Buchholz
Since you're OK with doing brain surgery on the JDK and you control the entire process, consider controlling your daemon with a bytecode rewriting agent (e.g. byteman) that changes the definition of System.getenv etc. (Whose side are you on Martin?! ... I confess I also wish for a faster gradle .

Re: RFR: [Updated] Update tables in java.base to be HTML5-friendly.

2017-05-10 Thread Martin Buchholz
Looks good. --- I suspect there's some way to specify the styles more compactly, but I don't know enough css to say. --- +table.borderless thead tr th, table.borderless tbody tr th, table.borderless tr th, +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, I

Re: Getting a live view of environment variables (Gradle and JDK 9)

2017-05-10 Thread David Holmes
Hi Cedric, Like Martin I am somewhat surprised by the recent surge in interest in the JVM environment :) From a pragmatic perspective it is far too late to do anything about this in 9. I am curious what kind of environment variables are being set by the client, how they are shared with the

Re: RFR: [Updated] Update tables in java.base to be HTML5-friendly.

2017-05-10 Thread Mandy Chung
Looks good. Mandy > On May 10, 2017, at 5:36 PM, Jonathan Gibbons > wrote: > > Mandy, > > I have fixed the tables you noted. > > jdk (changes to java.base): > http://cr.openjdk.java.net/~jjg/8179479-8179592/8179592/webrev.02/ > > API showing the effect of these changes: > http://cr.openjdk.

Re: RFR: [Updated] Update tables in java.base to be HTML5-friendly.

2017-05-10 Thread Jonathan Gibbons
Mandy, I have fixed the tables you noted. jdk (changes to java.base): http://cr.openjdk.java.net/~jjg/8179479-8179592/8179592/webrev.02/ API showing the effect of these changes: http://cr.openjdk.java.net/~jjg/8179479-8179592/api.02/java.base-summary.html -- Jon On 05/10/2017 03:50 PM, Mand

Re: RFR: [Updated] Update tables in java.base to be HTML5-friendly.

2017-05-10 Thread Mandy Chung
> On May 5, 2017, at 3:52 PM, Jonathan Gibbons > wrote: > > This is an updated review for the changes to improve tables in java.base. > : > Webrevs: > > langtools (the stylesheet): > http://cr.openjdk.java.net/~jjg/8179479-8179592/8179479/webrev.01/ > > jdk (changes to java.base): > http://cr

Re: RFR 9 JDK-8180075: Javadoc of MethodHandles.Lookup::bind should note the difference from MethodHandle::bindTo introduced by JDK-8177146

2017-05-10 Thread Paul Sandoz
> On 10 May 2017, at 13:46, Ron Pressler wrote: > > Hi. > Please review the following doc-only patch. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8180075 > > There is no change in specification, only an elaboration on a note. > +1 Paul. > Ron > > > > diff -r fc53a0468c1f > sr

Re: Getting a live view of environment variables (Gradle and JDK 9)

2017-05-10 Thread Martin Buchholz
You're already acquiring superpowers and voiding any warranty by calling putenv from JNI. Why not go further and do your reflective shenanigans via JNI as well? In practice, if hotspot has started up and only one java thread is doing anything, putenv is unlikely to cause a crash (and probably non

Re: JDK 9 RFR(xs): 8180128: small errors in String javadoc

2017-05-10 Thread Brian Burkhalter
+1 The missing space after the ‘c’ was hard to “see.” Brian On May 10, 2017, at 3:04 PM, Lance Andersen wrote: > Looks fine Stuart >> On May 10, 2017, at 6:02 PM, Stuart Marks wrote: >> >> Hi all, >> >> Please review a couple really small fixes to the String javadoc. >> >> 1) The String(by

Re: JDK 9 RFR(xs): 8180128: small errors in String javadoc

2017-05-10 Thread Lance Andersen
Looks fine Stuart > On May 10, 2017, at 6:02 PM, Stuart Marks wrote: > > Hi all, > > Please review a couple really small fixes to the String javadoc. > > 1) The String(byte[], int, int, int) constructor refers to converting bytes > to chars as specified "in the method above" except that the me

JDK 9 RFR(xs): 8180128: small errors in String javadoc

2017-05-10 Thread Stuart Marks
Hi all, Please review a couple really small fixes to the String javadoc. 1) The String(byte[], int, int, int) constructor refers to converting bytes to chars as specified "in the method above" except that the method "above" has never converted bytes to chars as far as I can see. It really shou

Re: Getting a live view of environment variables (Gradle and JDK 9)

2017-05-10 Thread Martin Buchholz
It seems to be the day for environment variable mutation. System.getenv was always designed as an immutable snapshot, and more recently there's emerging consensus that one must never ever mutate environment variables in a multi-threaded Unix program. One tends to acquire a biased view on this aft

Getting a live view of environment variables (Gradle and JDK 9)

2017-05-10 Thread Cédric Champeau
Hi all, I'm writing this on behalf of the Gradle team. This email is closely related to the other thread just posted today, but just a timeline coincidence (just like the email exchange I had today about this with Alan Bateman ;)) and not exactly the same issue. We are in the process of making su

Re: RFR 9: 8180082 : Broken javadoc links

2017-05-10 Thread Brian Burkhalter
Hi Roger, Looks all right to me. I assume you will have already built the actual docs and clicked through the updated links. Always a bit painful … Thanks, Brian On May 10, 2017, at 11:22 AM, Roger Riggs wrote: > Please review corrections to broken javadoc links: > - links to the serializati

Re: RFR 10 JDK-8159995: Rename internal Unsafe.compare methods

2017-05-10 Thread Ron Pressler
Thank you. Your comments, and Paul's, have all been addressed in a revised patch (same webrev). Ron On 08/05/2017 08:30, David Holmes wrote: Hi Ron, On 6/05/2017 5:27 AM, Ron Pressler wrote: Hi, Please review the following core/hotspot change: Bug: https://bugs.openjdk.java.net/browse/JDK

RFR 9 JDK-8180075: Javadoc of MethodHandles.Lookup::bind should note the difference from MethodHandle::bindTo introduced by JDK-8177146

2017-05-10 Thread Ron Pressler
Hi. Please review the following doc-only patch. Bug: https://bugs.openjdk.java.net/browse/JDK-8180075 There is no change in specification, only an elaboration on a note. Ron diff -r fc53a0468c1f src/java.base/share/classes/java/lang/invoke/MethodHandles.java --- a/src/java.base/share/cl

Re: RFR: 8175131: sun.rmi.transport.tcp.TCPChannel.createConnection close connection on timeout

2017-05-10 Thread Rob McKenna
Good point, I was nervous that there may have been a reason for not closing the connection and completely overlooked the obvious. http://cr.openjdk.java.net/~robm/8175131/webrev.02/ Thanks, -Rob On 10/05/17 03:38, Roger Riggs wrote: > Hi Rob, > > If an exception is thrown in createConnecti

Re: RFR: 8175131: sun.rmi.transport.tcp.TCPChannel.createConnection close connection on timeout

2017-05-10 Thread Roger Riggs
Hi Rob, If an exception is thrown in createConnection, it can't return the connection that was created and so it should close it. I would close the connection at line 298, before throwing the exception. Roger On 5/10/2017 3:25 PM, Rob McKenna wrote: Hi folks, Looking for a review of the fo

RFR: 8175131: sun.rmi.transport.tcp.TCPChannel.createConnection close connection on timeout

2017-05-10 Thread Rob McKenna
Hi folks, Looking for a review of the following simple change: https://bugs.openjdk.java.net/browse/JDK-8175131 http://cr.openjdk.java.net/~robm/8175131/webrev.01/ Note: I've deliberately limited the connection closure to the described case. If however you feel that it should be applied generall

RFR: JDK-8179697: Fix Html5 errors in java.naming, java.logging, jdk.httpserver, jdk.net, jdk.sctp

2017-05-10 Thread Kumar Srinivasan
Hello, Please review HTML5 related changes to the above modules, please note there are no changes to the verbiage. Thanks Kumar Webrev: http://cr.openjdk.java.net/~ksrini/8179697/webrev.0/ JBS: https://bugs.openjdk.java.net/browse/JDK-8179697

Re: RFR: 8180041 Fix HTML 5 issues in java.corba

2017-05-10 Thread Alan Bateman
On 10/05/2017 01:58, Jonathan Gibbons wrote: Another review for HTML 5 fixes, this time in the java.corba module. As usual, changes are just to the markup, and not to any specification text. JBS: https://bugs.openjdk.java.net/browse/JDK-8180041 Webrev: http://cr.openjdk.java.net/~jjg/8180041

RFR: JDK-8179631: Fix Html5 errors in java.management, jdk.management, jdk.jdi and jdk.attach

2017-05-10 Thread Kumar Srinivasan
Hi All, Please review fixes to make the API doc comments HTML5 clean, there are no changes to the verbiage, and mostly fixes for the table styles defined here: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/ee84b7d44339 For tables with many entries I have used "striped", there are few tables

Re: RFR 9: 8180082 : Broken javadoc links

2017-05-10 Thread Mandy Chung
> On May 10, 2017, at 11:22 AM, Roger Riggs wrote: > > Please review corrections to broken javadoc links: > - links to the serialization spec now in ./specs/serialization > - links in java.lang to java/util/Spliterator > - link in ModuleLayer to Classloader > - Links using ../../../.. do not wor

RFR 9: 8180082 : Broken javadoc links

2017-05-10 Thread Roger Riggs
Please review corrections to broken javadoc links: - links to the serialization spec now in ./specs/serialization - links in java.lang to java/util/Spliterator - link in ModuleLayer to Classloader - Links using ../../../.. do not work well when they show up in some indexes; they should use @d

Re: 8169425: Values computed by a ClassValue should not strongly reference the ClassValue

2017-05-10 Thread Paul Sandoz
Hi, I would like to still propose this note for 9, we ain’t gonna resolve the underlying issue in 9. It’s currently an api note but it’s more appropriate as an implementation note (e.g. Ephemerons might help). We could amend the note with Peter’s suggestion as follows: @implNote Care should

Re: RFR 10 JDK-8159995: Rename internal Unsafe.compare methods

2017-05-10 Thread Paul Sandoz
Hi, Looks good. Some minor comments. Paul. src/share/vm/classfile/vmSymbols.cpp — A prior bug: in the original code the case statements for the _weakCompareAndSwapLongVolatile were missing, so we need to add: case vmIntrinsics::_weakCompareAndSeLong etc. I think this is mostly benign as

Re: RFR 9 test-only RFR 8177328 : java/lang/ClassLoader/securityManager/ClassLoaderTest.java times out with -Xcomp

2017-05-10 Thread Brent Christian
On 5/9/17 4:39 PM, Brent Christian wrote: On 5/9/17 4:27 PM, Mandy Chung wrote: Webrev: http://cr.openjdk.java.net/~bchristi/8177328/webrev.01/ Can it restore to the default timeout? Yes. Between the additional @runs and no longer testing automated modules, I believe that should be fine.

Re: Proposal: javax.naming.spi.NamingManager.clearInitialContextFactoryBuilder()

2017-05-10 Thread Alan Bateman
On 10/05/2017 14:33, Andrew Guibert wrote: : I need to check with my management to get all the legal approvals before proposing a patch, so it might take a while. Since it's likely a very small code change I won't be offended if someone else proposes the patch for me =) I don't see too ma

Re: Environment variables truth source of the JVM (and how to mutate it)

2017-05-10 Thread Martin Buchholz
More info at https://bugs.openjdk.java.net/browse/JDK-8173654 On Wed, May 10, 2017 at 6:47 AM, Roger Riggs wrote: > providing an unused > facility to provide access to binary values in the environment. > > The design was to not modify environment variables passed to children even if they conta

Re: Environment variables truth source of the JVM (and how to mutate it)

2017-05-10 Thread Roger Riggs
Hi, I'm not sure I have all the history. The current implementation seems more complicated than necessary by trying to avoid copying when not necessary and providing an unused facility to provide access to binary values in the environment. On 5/10/2017 9:30 AM, pie...@2bst.fr wrote: Hi, I've be

Re: Proposal: javax.naming.spi.NamingManager.clearInitialContextFactoryBuilder()

2017-05-10 Thread Andrew Guibert
> From: Alan Bateman > To: Andrew Guibert , core-libs-dev@openjdk.java.net > Date: 05/10/2017 07:32 AM > Subject: Re: Proposal: > javax.naming.spi.NamingManager.clearInitialContextFactoryBuilder() > > On 08/05/2017 23:27, Andrew Guibert wrote: > > > : > > > > I am not sure why the "no resetting"

Environment variables truth source of the JVM (and how to mutate it)

2017-05-10 Thread pierre
Hi, I've been trying to understand how the JVM accesses environment variables and how they can be mutated. I sent an email about this list few hours ago on the general-purpose discuss mailing-list but it appears it would be better posted herein. For this I've made some assumptions and I would li

Re: Proposal: javax.naming.spi.NamingManager.clearInitialContextFactoryBuilder()

2017-05-10 Thread Alan Bateman
On 08/05/2017 23:27, Andrew Guibert wrote: : I am not sure why the "no resetting" restriction is on the NamingManager API in the first place. Is anyone aware why the API has this restriction? In any case, the solution outlined above seems rather messy (as it only solves the problem by mitigati

Re: RFR: 8180041 Fix HTML 5 issues in java.corba

2017-05-10 Thread Lance Andersen
looks fine jon > On May 9, 2017, at 8:58 PM, Jonathan Gibbons > wrote: > > Another review for HTML 5 fixes, this time in the java.corba module. > > As usual, changes are just to the markup, and not to any specification text. > > JBS: https://bugs.openjdk.java.net/browse/JDK-8180041 > Webrev: h