From duke at openjdk.java.net Tue Oct 12 21:23:03 2021 From: duke at openjdk.java.net (Sherzod Mamadaliev) Date: Tue, 12 Oct 2021 21:23:03 GMT Subject: RFR: 7903023: Update Kotlin in Maven archetypes to the latest stable version In-Reply-To: References: Message-ID: <99gz97xeMF34MQCTvfDo_a-kyeBki1i_CQRbl5iBUtI=.5313ce54-3279-4839-8d6e-f3cea630abfa@github.com> On Fri, 10 Sep 2021 12:40:28 GMT, Vsevolod Tolstopyatov wrote: > Testing: > > * `mvn install` in the JMH > * `mvn archetype:generate -DarchetypeCatalog=local -DinteractiveMode=false -DarchetypeGroupId=org.openjdk.jmh -DarchetypeArtifactId=jmh-kotlin-benchmark-archetype -DgroupId=org.qwwdfsad -DartifactId=qtest` in CMD > * `cd qtest` > * Ensure that `mvn install && java -jar target/benchmarks.jar` passes > * Ensure that `grep "1.5.30|1.33-SNAPSHOT" pom.xml` prints two lines Marked as reviewed by mamadaliev at github.com (no known OpenJDK username). ------------- PR: https://git.openjdk.java.net/jmh/pull/51 From shade at openjdk.java.net Thu Oct 14 08:18:05 2021 From: shade at openjdk.java.net (Aleksey Shipilev) Date: Thu, 14 Oct 2021 08:18:05 GMT Subject: RFR: 7903023: Update Kotlin in Maven archetypes to the latest stable version In-Reply-To: References: Message-ID: <6wkdvSC4RHc_5CCMJKPpH9dGgu3dlgemRQR32PoVPfU=.24aa023e-9be9-4054-9915-e0c41bcf08de@github.com> On Fri, 10 Sep 2021 12:40:28 GMT, Vsevolod Tolstopyatov wrote: > Testing: > > * `mvn install` in the JMH > * `mvn archetype:generate -DarchetypeCatalog=local -DinteractiveMode=false -DarchetypeGroupId=org.openjdk.jmh -DarchetypeArtifactId=jmh-kotlin-benchmark-archetype -DgroupId=org.qwwdfsad -DartifactId=qtest` in CMD > * `cd qtest` > * Ensure that `mvn install && java -jar target/benchmarks.jar` passes > * Ensure that `grep "1.5.30|1.33-SNAPSHOT" pom.xml` prints two lines You gotta say "/integrate", @qwwdfsad ;) ------------- PR: https://git.openjdk.java.net/jmh/pull/51 From shade at openjdk.java.net Thu Oct 14 08:24:34 2021 From: shade at openjdk.java.net (Aleksey Shipilev) Date: Thu, 14 Oct 2021 08:24:34 GMT Subject: git: openjdk/jmh: 7903023: Update Kotlin in Maven archetypes to the latest stable version Message-ID: Changeset: 730f02b2 Author: Vsevolod Tolstopyatov Committer: Aleksey Shipilev Date: 2021-10-14 08:24:08 +0000 URL: https://git.openjdk.java.net/jmh/commit/730f02b2af7fe23af5f22c33e36070987788b2de 7903023: Update Kotlin in Maven archetypes to the latest stable version Reviewed-by: shade ! jmh-archetypes/jmh-kotlin-benchmark-archetype/src/main/resources/archetype-resources/pom.xml From duke at openjdk.java.net Thu Oct 14 08:28:05 2021 From: duke at openjdk.java.net (Vsevolod Tolstopyatov) Date: Thu, 14 Oct 2021 08:28:05 GMT Subject: Integrated: 7903023: Update Kotlin in Maven archetypes to the latest stable version In-Reply-To: References: Message-ID: <1QjvTwHDl7fw6-TLmvFk_TkjcbQdUCrDN8nmyGBs4Wo=.a64985dd-77e4-4221-bdc9-c28832ffd0c2@github.com> On Fri, 10 Sep 2021 12:40:28 GMT, Vsevolod Tolstopyatov wrote: > Testing: > > * `mvn install` in the JMH > * `mvn archetype:generate -DarchetypeCatalog=local -DinteractiveMode=false -DarchetypeGroupId=org.openjdk.jmh -DarchetypeArtifactId=jmh-kotlin-benchmark-archetype -DgroupId=org.qwwdfsad -DartifactId=qtest` in CMD > * `cd qtest` > * Ensure that `mvn install && java -jar target/benchmarks.jar` passes > * Ensure that `grep "1.5.30|1.33-SNAPSHOT" pom.xml` prints two lines This pull request has now been integrated. Changeset: 730f02b2 Author: Vsevolod Tolstopyatov Committer: Aleksey Shipilev URL: https://git.openjdk.java.net/jmh/commit/730f02b2af7fe23af5f22c33e36070987788b2de Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod 7903023: Update Kotlin in Maven archetypes to the latest stable version Reviewed-by: shade ------------- PR: https://git.openjdk.java.net/jmh/pull/51 From curtullerich at gmail.com Fri Oct 15 21:21:10 2021 From: curtullerich at gmail.com (Curtis Ullerich) Date: Fri, 15 Oct 2021 14:21:10 -0700 Subject: use OptionsBuilder, but override with args Message-ID: I see the parent(Options other) method of OptionsBuilder and the opposite seems to be what I want. I'd like to have default options set in main with OptionsBuilder, and override any of them with command line options. This could be facilitated several ways, e.g.: - implementing Options.toBuilder() to use CommandLineOptions as the child and built Options as the parent. - implementing OptionsBuilder.fromOptions or OptionsBuilder.merge for the same I'm hoping there's an existing way to accomplish this without implementing a static toBuilder(Options o) in my own package that just gets and sets all possible fields. Is there? Thanks, Curtis From duke at openjdk.java.net Wed Oct 27 12:23:48 2021 From: duke at openjdk.java.net (duke) Date: Wed, 27 Oct 2021 12:23:48 GMT Subject: git: openjdk/jmh: 3 new changesets Message-ID: <738f5b1d-c546-40a8-b19a-0a227c16f14e@openjdk.java.net> Changeset: 066da6a9 Author: Aleksey Shipilev Date: 2021-08-09 12:22:21 +0000 URL: https://git.openjdk.java.net/jmh/commit/066da6a9e8627e097c1c6f253acf74b10e32defe JMH v1.33. ! jmh-archetypes/jmh-groovy-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-java-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-kotlin-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-scala-benchmark-archetype/pom.xml ! jmh-archetypes/pom.xml ! jmh-core-benchmarks/pom.xml ! jmh-core-ct/pom.xml ! jmh-core-it/pom.xml ! jmh-core/pom.xml ! jmh-generator-annprocess/pom.xml ! jmh-generator-asm/pom.xml ! jmh-generator-bytecode/pom.xml ! jmh-generator-reflection/pom.xml ! jmh-samples/pom.xml ! pom.xml Changeset: fa8dec9b Author: Aleksey Shipilev Date: 2021-08-09 12:22:52 +0000 URL: https://git.openjdk.java.net/jmh/commit/fa8dec9bdfafb21c1895eb596255a90b48da8248 Continue in 1.34-SNAPSHOT ! jmh-archetypes/jmh-groovy-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-java-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-kotlin-benchmark-archetype/pom.xml ! jmh-archetypes/jmh-scala-benchmark-archetype/pom.xml ! jmh-archetypes/pom.xml ! jmh-core-benchmarks/pom.xml ! jmh-core-ct/pom.xml ! jmh-core-it/pom.xml ! jmh-core/pom.xml ! jmh-generator-annprocess/pom.xml ! jmh-generator-asm/pom.xml ! jmh-generator-bytecode/pom.xml ! jmh-generator-reflection/pom.xml ! jmh-samples/pom.xml ! pom.xml Changeset: 70513748 Author: Aleksey Shipilev Date: 2021-10-27 14:19:51 +0000 URL: https://git.openjdk.java.net/jmh/commit/7051374877b655c96254f446d21df1b359ada598 Merge branch 'master' of github.com:openjdk/jmh ! pom.xml ! pom.xml From sergei.tsypanov at yandex.ru Fri Oct 29 09:50:17 2021 From: sergei.tsypanov at yandex.ru (=?utf-8?B?0KHQtdGA0LPQtdC5INCm0YvQv9Cw0L3QvtCy?=) Date: Fri, 29 Oct 2021 11:50:17 +0200 Subject: Problem with dtraceasm profiler on openjdk-17 Message-ID: <1283321635501017@sas2-069b76546e72.qloud-c.yandex.net> Hello, I'm running a benchmark with sudo ... -f 1 -prof dtraceasm -jvmArgsAppend "-XX:+UnlockDiagnosticVMOptions -XX:+PrintAssembly" on MacOS and openjdk-17 the output doesn't show actual assembly commands. This is an example: c2, level 4, org.springframework.util.ConcurrentReferenceHashMap::<init>, version 484 (57 bytes) 0x000000011ba08498: 7df3 4180 | 7f38 000f | 8521 0400 | 004d 8bd6 | 4d8b c849 | c1e9 0345 | 894e 204d | 8bd8 4d33 0x000000011ba084b8: da49 c1eb | 154d 85db | 741a 49c1 | ea09 48bf | 0040 e003 | 0100 0000 | 4903 fa80 | 3f04 0f85 0x000000011ba084d8: 6b05 0000 | f083 4424 0x000000011ba084e0: ;*putfield references {reexecute=0 rethrow=0 return_oop=0} ; - org.springframework.util.ConcurrentReferenceHashMap$Segment::<init>@43 (line 487) ; - org.springframework.util.ConcurrentReferenceHashMap::<init>@141 (line 184) 0x000000011ba084e0: c000 458b 0x000000011ba084e4: ;*getfield references {reexecute=0 rethrow=0 return_oop=0} ; - org.springframework.util.ConcurrentReferenceHashMap$Segment::<init>@48 (line 488) ; - org.springframework.util.ConcurrentReferenceHashMap::<init>@141 (line 184) 0x000000011ba084e4: 5620 478b To fix this I've built hsdis from JDK sources as follows: cd ~/IdeaProjects/jdk/src/utils/hsdis/ wget http://ftpmirror.gnu.org/gnu/binutils/binutils-2.37.tar.gz tar zxvf binutils-2.37.tar.gz export BINUTILS=binutils-2.37 make ARCH=i586 The last command was a bit confusing to me, as when I execute 'uname -p' on my Mac I see 'i386', but 'make ARCH=i386' fails and plain 'make' creates a build config for 'i586'. Anyway, after successful build for i586 I've copied hsdis-i586.dylib into the same folder where I have libjvm.dylib, but there's still no assembly code in the output. I've tried the same with openjdk-8_312 and liberica-11.0.13, but there I don't have any output at all, instead JMH issues this warning: ERROR: No address lines detected in assembly capture. Make sure your JDK is properly configured to print generated assembly. The most probable cause for this failure is that hsdis is not available, or resides at the wrong path within the JDK. Try to run the same JDK with -XX:+PrintAssembly with a simple non-JMH program and look for warning messages. Is there a misconfiguration somewhere, or I've made wrong build? Regards, Sergey Tsypanov