RFR(xs): 8220786: Create new switch to redirect error reporting output to stdout or stderr

David Holmes david.holmes at oracle.com
Tue Mar 26 07:10:47 UTC 2019


Hi Thomas,

Thanks for your patience on this one re the CSR discussions.

On 25/03/2019 6:39 pm, Thomas Stüfe wrote:
> May I please have reviews for this addition:
> 
> cr:
> http://cr.openjdk.java.net/~stuefe/webrevs/8220786--create-new-switch-to-redirect-error-reporting-output-to-stdout-or-stderr/webrev.00/webrev/
> issue: https://bugs.openjdk.java.net/browse/JDK-8220786
> csr: https://bugs.openjdk.java.net/browse/JDK-8220787
> 
> This implements the new switches -XX:ErrorFileToStdout/ToStderr. For
> details please see the associated CSR and this mailthread:
> 
> https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-March/033160.html

Changes look fine to me. One query in vmError.cpp:

1490     if (fd_log != -1) {
1491       close(fd_log);
1492       fd_log = -1;
1493     }

Do we need to skip the above if using stdout/err ?

And in the test:

  2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All 
rights reserved.

2013 ??

67         throw new RuntimeException("Expection mention of hs-err file 
but none fount.");

Typo: fount -> found

> Note that I am not sure yet about the CSR state. It has two reviewers, one
> of them part of the CSR group. But it is still in proposed state.

CSR reviews are distinct from CSR approval. Joe Darcy will approve the 
CSR once he gets to it. Then you can push (assuming RFR completed).

Thanks,
David


> Cheers, Thomas
> 


More information about the hotspot-runtime-dev mailing list