Re: Integrated: 8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out

2023-09-11 Thread Sergey Bylokhov
On Mon, 11 Sep 2023 20:05:07 GMT, Sergey Bylokhov wrote: >> It's not that simple. Here's my comment from the bug: >> >> https://bugs.openjdk.org/browse/JDK-8307783?focusedCommentId=14582995&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#c

Re: Integrated: 8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out

2023-09-11 Thread Sergey Bylokhov
On Sat, 20 May 2023 16:34:15 GMT, Daniel D. Daugherty wrote: >> test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java line 28: >> >>> 26: * @bug 8297977 >>> 27: * @summary Test that throwing OOM from reflected method gets >>> InvocationTargetException >>> 28: * @run main/othervm/t

Re: RFR: 8313997: The jdi/ListeningConnector/startListening/startlis001 may fail if the hosts file is modified

2023-08-10 Thread Sergey Bylokhov
On Wed, 9 Aug 2023 07:46:58 GMT, Sergey Bylokhov wrote: > The test uses this code to create a list of valid addresses for the localhost: > > String hostname = "localhost"; > List validAddresses = new LinkedList<>(); > validAddresses.add(hos

RFR: 8313997: The jdi/ListeningConnector/startListening/startlis001 may fail if the hosts file is modified

2023-08-09 Thread Sergey Bylokhov
The test uses this code to create a list of valid addresses for the localhost: String hostname = "localhost"; List validAddresses = new LinkedList<>(); validAddresses.add(hostname); Arrays.stream(InetAddress.getAllByName(hostname)) .forEach(addre

Integrated: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN

2023-02-26 Thread Sergey Bylokhov
On Thu, 23 Feb 2023 05:16:52 GMT, Sergey Bylokhov wrote: > Implementation of the "ManagementAgent.status" indirectly depends on the size > of "O_BUFLEN". > > The root cause is usage of > [print_cr()](https://github.com/openjdk/jdk/blob/master/src/hotsp

Re: RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN [v2]

2023-02-23 Thread Sergey Bylokhov
cate](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/utilities/ostream.cpp#L101) > the output. > > The solution is similar to the > [JDK-8263640](https://bugs.openjdk.org/browse/JDK-8263640). see discussion > about that approach https://github.com/openjdk/jdk

Re: RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN [v2]

2023-02-23 Thread Sergey Bylokhov
On Thu, 23 Feb 2023 11:34:05 GMT, David Holmes wrote: >> Sergey Bylokhov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update JMXStatusTest.java > > test/jdk/sun/management/jmxremote/startstop/JMXSta

RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN

2023-02-23 Thread Sergey Bylokhov
Implementation of the "ManagementAgent.status" indirectly depends on the size of "O_BUFLEN". The root cause is usage of [print_cr()](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/utilities/ostream.cpp#L153) which may [truncate](https://github.com/openjdk/jdk/blob/master/src/hots

Re: RFR: 8303102: jcmd: ManagementAgent.status truncates the text longer than O_BUFLEN

2023-02-23 Thread Sergey Bylokhov
On Thu, 23 Feb 2023 05:16:52 GMT, Sergey Bylokhov wrote: > Implementation of the "ManagementAgent.status" indirectly depends on the size > of "O_BUFLEN". > > The root cause is usage of > [print_cr()](https://github.com/openjdk/jdk/blob/master/src/hotsp

Re: RFR: 8298380: Clean up redundant array length checks in JDK code base

2022-12-08 Thread Sergey Bylokhov
On Thu, 8 Dec 2022 12:37:17 GMT, Sergey Tsypanov wrote: > Newer version of IntelliJ IDEA introduces new > [inspection](https://youtrack.jetbrains.com/issue/IDEA-301797/IDEA-should-report-redundant-array-length-check-in-certain-cases) > detecting redundant array length check in snippets like >

Re: RFR: 8298047: Remove all non-significant trailing whitespace from properties files

2022-12-04 Thread Sergey Bylokhov
On Fri, 2 Dec 2022 17:06:23 GMT, Magnus Ihse Bursie wrote: > [JDK-8295729](https://bugs.openjdk.org/browse/JDK-8295729) was created in an > attempt to remove all trailing whitespace from properties files, and enable a > jcheck verification that they did not come back, similar to other source >