Re: RFR: 8284161: Implementation of Virtual Threads (Preview) [v8]

2022-04-27 Thread Alex Menkov
On Wed, 27 Apr 2022 14:24:20 GMT, Alan Bateman wrote: >> This is the implementation of JEP 425: Virtual Threads (Preview); TBD which >> JDK version to target. >> >> We will refresh this PR periodically to pick up changes and fixes from the >> loom repo. >> >> Most of the new mechanisms in the

RFR: 8282241: Invalid generic signature for redefined classes

2022-03-03 Thread Alex Menkov
JDK-8238048 (fixed in jdk15) moved major_version, minor_version, generic_signature_index and source_file_name_index from InstanceKlass to ConstantPool. We still have some incorrect code in CP merge during class redefinition. rewrite_cp_refs(scratch_class) updates generic_signature_index and sou

RFR: 8240908: RetransformClass does not know about MethodParameters attribute

2022-01-21 Thread Alex Menkov
Changes: - ClassFileReconstituter is updated to restore "MethodParameters" attribute; - handling of the attribute in VM_RedefineClasses is moved to be consistent with other code (like local variable table); - copied ClassTransformer class (from test/jdk/com/sun/jdi/lib/jdb) to /test/lib as it's u

Re: RFR: 8280010: Remove double buffering of InputStream for Properties.load

2022-01-14 Thread Alex Menkov
On Mon, 10 Jan 2022 20:46:36 GMT, Andrey Turbanov wrote: > `Properties.load` uses `java.util.Properties.LineReader`. LineReader already > buffers input stream. Hence wrapping InputStream in BufferedInputStream is > redundant. Marked as reviewed by amenkov (Reviewer). - PR: https:

Re: RFR: JDK-8274930: sun/tools/jps/TestJps.java can fail with long VM arguments string

2021-10-27 Thread Alex Menkov
On Thu, 7 Oct 2021 21:46:47 GMT, Alex Menkov wrote: > The fix adds "-XX:PerfMaxStringConstLength" argument running target app > (default is 1024, 8K should be enough for any environments) Ping. Need 2nd reviewer - PR: https://git.openjdk.java.net/jdk/pull/5858

RFR: JDK-8274930: sun/tools/jps/TestJps.java can fail with long VM arguments string

2021-10-07 Thread Alex Menkov
The fix adds "-XX:PerfMaxStringConstLength" argument running target app (default is 1024, 8K should be enough for any environments) - Commit messages: - JDK-8274930 Changes: https://git.openjdk.java.net/jdk/pull/5858/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5858

Re: RFR: 8274464: Remove redundant stream() call before forEach in java.* modules

2021-09-29 Thread Alex Menkov
On Wed, 15 Sep 2021 07:12:25 GMT, Andrey Turbanov wrote: > 8274464: Remove redundant stream() call before forEach in java.* modules Marked as reviewed by amenkov (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/5520

RFR: 8260540: serviceability/jdwp/AllModulesCommandTest.java failed with "Debuggee error: 'ERROR: transport error 202: bind failed: Address already in use'"

2021-06-22 Thread Alex Menkov
Updated AllModulesCommandTest to use dynamic port launching debuggee. Parsing debuggee listening address functionality is required in several tests (and we have other tests which need to be fixed the same way), so moved the code to new class in jdk.test.lib - Commit messages: - JDK

RFR: 8262002: java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh failed with "TestCaseScaffoldException: DummyClassWithLVT did not match .class file"

2021-04-09 Thread Alex Menkov
The test actually failed starting from jdk13, but the error is masked by JDK-8264667 (and shell part of the test didn't verify result of the java execution) The fix: - updates JvmtiClassFileReconstituter to add attributes in the same order as javac does - makes the test java instead of shell - a

Re: RFR: 8262002: java/lang/instrument/VerifyLocalVariableTableOnRetransformTest.sh failed with "TestCaseScaffoldException: DummyClassWithLVT did not match .class file"

2021-04-09 Thread Alex Menkov
On Sat, 10 Apr 2021 01:10:37 GMT, Alex Menkov wrote: > The test actually failed starting from jdk13, but the error is masked by > JDK-8264667 (and shell part of the test didn't verify result of the java > execution) > The fix: > - updates JvmtiClassFileReconstituter to a

RFR: 8262001: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"

2021-03-08 Thread Alex Menkov
The fix updates ResetPeakThreadCount.java test - increases number of threads, but relaxes conditions so start/termination of system threads don't cause failures. Additional changes: - store threads in a list instead of array (we need only to start/terminate some number of threads, so linked list

RFR: 8248162: serviceability/attach/RemovingUnixDomainSocketTest.java failed

2021-02-05 Thread Alex Menkov
JDK-8258917 fixed non-java launchers ("wrong launcher" VM warning for tools). The fix un-problemlists RemovingUnixDomainSocketTest and changes serviceability tests to use OutputAnalyzer.stderrShouldBeEmptyIgnoreDeprecatedWarnings instead of stderrShouldBeEmptyIgnoreVMWarnings - Comm

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v3]

2021-01-29 Thread Alex Menkov
On Thu, 28 Jan 2021 13:45:15 GMT, Zhengyu Gu wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Updated comment > > Sorry, I overlooked some of details. Final change looks fine to me.

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v2]

2021-01-27 Thread Alex Menkov
On Tue, 19 Jan 2021 23:18:04 GMT, David Holmes wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Non-lava launchers should process all "-J" arguments > > Hi Alex, >

Integrated: 8258917: NativeMemoryTracking is handled by launcher inconsistenly

2021-01-22 Thread Alex Menkov
On Fri, 15 Jan 2021 23:50:16 GMT, Alex Menkov wrote: > The fix adds NMT handling for non-java launchers This pull request has now been integrated. Changeset: bdc305e1 Author: Alex Menkov URL: https://git.openjdk.java.net/jdk/commit/bdc305e1 Stats: 30 lines in 2 files changed:

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v3]

2021-01-19 Thread Alex Menkov
> The fix adds NMT handling for non-java launchers Alex Menkov has updated the pull request incrementally with one additional commit since the last revision: Updated comment - Changes: - all: https://git.openjdk.java.net/jdk/pull/2106/files - new: ht

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v2]

2021-01-19 Thread Alex Menkov
On Tue, 19 Jan 2021 23:16:30 GMT, David Holmes wrote: > What do you mean by this? The -J args are not "translated" here but later in > TranslateApplicationArgs. I meant that they are translated in TranslateApplicationArgs. Looks like it's not clear. Updated the comment as you suggested. -

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v2]

2021-01-19 Thread Alex Menkov
On Sun, 17 Jan 2021 12:55:35 GMT, David Holmes wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Non-lava launchers should process all "-J" arguments > > Alex, > > This

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v2]

2021-01-19 Thread Alex Menkov
On Sun, 17 Jan 2021 12:55:35 GMT, David Holmes wrote: >> Alex Menkov has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Non-lava launchers should process all "-J" arguments > > Alex, > > This

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly [v2]

2021-01-19 Thread Alex Menkov
> The fix adds NMT handling for non-java launchers Alex Menkov has updated the pull request incrementally with one additional commit since the last revision: Non-lava launchers should process all "-J" arguments - Changes: - all: https://git.openjdk.java.net/jdk/pu

RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly

2021-01-15 Thread Alex Menkov
The fix adds NMT handling for non-java launchers - Commit messages: - Handle NMT for non-java launchers Changes: https://git.openjdk.java.net/jdk/pull/2106/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2106&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-82

Re: RFR: 8258917: NativeMemoryTracking is handled by launcher inconsistenly

2021-01-15 Thread Alex Menkov
On Fri, 15 Jan 2021 23:50:16 GMT, Alex Menkov wrote: > The fix adds NMT handling for non-java launchers Added serviceability as serviceability tools use launcher functionality - PR: https://git.openjdk.java.net/jdk/pull/2106

RFR: 8255934: JConsole 14 and greater fails to connect to older JVM

2020-11-16 Thread Alex Menkov
OperatingSystemMXBean was changed in jdk14 (see JDK-8226575): New methods getTotalMemorySize and getFreeMemorySize were added, old getTotalPhysicalMemorySize and getFreePhysicalMemorySize were deprecated. The fix adds fallbacks for the values (i.e. if new methods fail, jconsole calls old methods

Re: RFR(S) : 8183040 : update jdk/test/lib/Platform.java to use NIO file API

2020-06-10 Thread Alex Menkov
Hi Igor, LGTM. --alex On 06/10/2020 12:29, Igor Ignatyev wrote: Hi Alex, sure, here is the incremental diff, so now Error is thrown if bb arrays are empty -- http://cr.openjdk.java.net/~iignatyev//8183040/webrev.0-1 Thanks, -- Igor On Jun 10, 2020, at 12:20 PM, Alex Menkov wrote: Hi

Re: RFR(S) : 8183040 : update jdk/test/lib/Platform.java to use NIO file API

2020-06-10 Thread Alex Menkov
went completely wrong. Yes, the test still fails in the case, but if I see IndexOutOfBoundsException (or something similar) as a test failure reason, my first thought that this is the test issue. Could you please add the checks. --alex -- Igor On Jun 9, 2020, at 6:36 PM, Alex Menkov wrote

Re: RFR(S) : 8183040 : update jdk/test/lib/Platform.java to use NIO file API

2020-06-09 Thread Alex Menkov
Hi Igor, In SATestUtils.java you do var bb = ... Files.readAllBytes(...) ... and then use bb[0] if the file has 0 length, old code throws EOFException and new one will throw IndexOutOfBoundsException. And looks like the caller doesn't expect it (it catches IOException). --alex On 06/09/2020

Re: RFR: [small, docs] JDK-8240971 Fix CSS styles in some doc comments

2020-03-12 Thread Alex Menkov
+1 --alex On 03/12/2020 13:53, Mandy Chung wrote: This change looks okay. Mandy On 3/12/20 1:50 PM, Jonathan Gibbons wrote: Please review a simple fix regarding the non-standard use of some CSS in some doc comments. From the JBS Description: Recently, for the display of javadoc block tags

Re: RFR(M) : 8182404 : remove jdk.testlibrary.JDKToolFinder and JDKToolLauncher

2018-09-07 Thread Alex Menkov
Hi Igor, Looks good. --alex On 09/07/2018 15:11, Igor Ignatyev wrote: http://cr.openjdk.java.net/~iignatyev//8182404/webrev.00/index.html 327 lines changed: 13 ins; 270 del; 44 mod; Hi all, could you please review the patch which removes jdk.testlibrary.JDKToolFinder and JDKToolLauncher a