Re: RFR: 8286182: C2: crash with SIGFPE when executing compiled code

2022-05-18 Thread Tobias Hartmann
On Wed, 18 May 2022 15:44:10 GMT, Quan Anh Mai wrote: > This patch backs out the changes made by > [JDK-8285390](https://bugs.openjdk.java.net/browse/JDK-8285390) and > [JDK-8284742](https://bugs.openjdk.java.net/browse/JDK-8284742) since there > are failures due to div nodes floating above th

Re: RFR: 8281712: [REDO] AArch64: Implement string_compare intrinsic in SVE

2022-05-16 Thread Tobias Hartmann
On Mon, 16 May 2022 07:21:27 GMT, Ningsheng Jian wrote: > This is the REDO of JDK-8269559 and JDK-8275448. Those two backouts finally > turned to be some system zlib issue in AArch64 macOS, and is not related to > the patch itself. See [1][2] for details. > > This patch is generally the same a

Re: RFR: 8284932: [Vector API] Incorrect implementation of LSHR operator for negative byte/short elements

2022-05-16 Thread Tobias Hartmann
On Wed, 27 Apr 2022 09:13:34 GMT, Jie Fu wrote: >> Hi all, >> >> According to the Vector API doc, the `LSHR` operator computes >> `a>>>(n&(ESIZE*8-1))`. >> However, current implementation is incorrect for negative bytes/shorts. >> >> The background is that one of our customers try to vectorize

Re: RFR: 8282221: x86 intrinsics for divideUnsigned and remainderUnsigned methods in java.lang.Integer and java.lang.Long [v13]

2022-04-10 Thread Tobias Hartmann
On Fri, 8 Apr 2022 22:17:23 GMT, Srinivas Vamsi Parasa wrote: >> Optimizes the divideUnsigned() and remainderUnsigned() methods in >> java.lang.Integer and java.lang.Long classes using x86 intrinsics. This >> change shows 3x improvement for Integer methods and upto 25% improvement for >> Long

Re: RFR: 8265768 [aarch64] Use glibc libm impl for dlog,dlog10,dexp iff 2.29 or greater on AArch64.

2022-04-06 Thread Tobias Hartmann
On Fri, 1 Apr 2022 15:38:36 GMT, Andrew Haley wrote: >> Will this patch change `java.lang.Math`, `java.lang.StrictMath` or both? >> I've noticed differences in iterative machine learning algorithms using exp >> & log across different JVMs and architectures which we try to track in >> [Tribuo](

Re: RFR: 8265768 [aarch64] Use glibc libm impl for dlog,dlog10,dexp iff 2.29 or greater on AArch64.

2022-03-30 Thread Tobias Hartmann
On Tue, 25 May 2021 15:32:40 GMT, gregcawthorne wrote: >> Glibc 2.29 onwards provides optimised versions of log,log10,exp. >> These functions have an accuracy of 0.9ulp or better in glibc >> 2.29. >> >> Therefore this patch adds code to parse, store and check >> the runtime glibcs version in os_

Re: RFR: 8279508: Auto-vectorize Math.round API [v18]

2022-03-23 Thread Tobias Hartmann
On Fri, 18 Mar 2022 20:19:08 GMT, Jatin Bhateja wrote: >> Summary of changes: >> - Intrinsify Math.round(float) and Math.round(double) APIs. >> - Extend auto-vectorizer to infer vector operations on encountering scalar >> IR nodes for above intrinsics. >> - Test creation using new IR testing fra

Re: RFR: 8279508: Auto-vectorize Math.round API [v18]

2022-03-22 Thread Tobias Hartmann
On Fri, 18 Mar 2022 20:19:08 GMT, Jatin Bhateja wrote: >> Summary of changes: >> - Intrinsify Math.round(float) and Math.round(double) APIs. >> - Extend auto-vectorizer to infer vector operations on encountering scalar >> IR nodes for above intrinsics. >> - Test creation using new IR testing fra

Re: RFR: 8279508: Auto-vectorize Math.round API [v17]

2022-03-14 Thread Tobias Hartmann
On Sun, 13 Mar 2022 06:36:15 GMT, Jatin Bhateja wrote: >> Summary of changes: >> - Intrinsify Math.round(float) and Math.round(double) APIs. >> - Extend auto-vectorizer to infer vector operations on encountering scalar >> IR nodes for above intrinsics. >> - Test creation using new IR testing fra

[jdk18] Integrated: 8281713: [BACKOUT] AArch64: Implement string_compare intrinsic in SVE

2022-02-14 Thread Tobias Hartmann
On Mon, 14 Feb 2022 10:30:09 GMT, Tobias Hartmann wrote: > We observed several failures on macosx aarch64 after integration of > [JDK-8275448](https://bugs.openjdk.java.net/browse/JDK-8275448). I could > reliably reproduce > [JDK-8281512](https://bugs.openjdk.java.net/browse/JDK-8

Re: [jdk18] RFR: 8281713: [BACKOUT] AArch64: Implement string_compare intrinsic in SVE

2022-02-14 Thread Tobias Hartmann
On Mon, 14 Feb 2022 10:30:09 GMT, Tobias Hartmann wrote: > We observed several failures on macosx aarch64 after integration of > [JDK-8275448](https://bugs.openjdk.java.net/browse/JDK-8275448). I could > reliably reproduce > [JDK-8281512](https://bugs.openjdk.java.net/browse/JDK-8

[jdk18] RFR: 8281713: [BACKOUT] AArch64: Implement string_compare intrinsic in SVE

2022-02-14 Thread Tobias Hartmann
We observed several failures on macosx aarch64 after integration of [JDK-8275448](https://bugs.openjdk.java.net/browse/JDK-8275448). I could reliably reproduce [JDK-8281512](https://bugs.openjdk.java.net/browse/JDK-8281512) with JDK 18 b25-1665 (the first build with [JDK-8275448](https://bugs.

Re: RFR: 8252990: Intrinsify Unsafe.storeStoreFence [v2]

2021-10-28 Thread Tobias Hartmann
On Thu, 28 Oct 2021 08:58:48 GMT, Aleksey Shipilev wrote: >> `Unsafe.storeStoreFence` currently delegates to stronger >> `Unsafe.storeFence`. We can teach compilers to map this directly to already >> existing rules that handle `MemBarStoreStore`. Like explicit >> `LoadFence`/`StoreFence`, we i

Re: RFR: 8274242: Implement fast-path for ASCII-compatible CharsetEncoders on x86 [v6]

2021-09-29 Thread Tobias Hartmann
On Wed, 29 Sep 2021 12:36:23 GMT, Claes Redestad wrote: >> This patch extends the `ISO_8859_1.implEncodeISOArray` intrinsic on x86 to >> work also for ASCII encoding, which makes for example the `UTF_8$Encoder` >> perform on par with (or outperform) similarly getting charset encoded bytes >> f

Re: RFR: 8274242: Implement fast-path for ASCII-compatible CharsetEncoders on x86 [v5]

2021-09-28 Thread Tobias Hartmann
On Tue, 28 Sep 2021 11:49:29 GMT, Claes Redestad wrote: >> This patch extends the `ISO_8859_1.implEncodeISOArray` intrinsic on x86 to >> work also for ASCII encoding, which makes for example the `UTF_8$Encoder` >> perform on par with (or outperform) similarly getting charset encoded bytes >> f

Re: RFR: 8274242: Implement fast-path for ASCII-compatible CharsetEncoders on x86 [v3]

2021-09-27 Thread Tobias Hartmann
On Mon, 27 Sep 2021 11:59:54 GMT, Claes Redestad wrote: > > Should we remove the "iso" part from the method/class names? > > I'm open to suggestions, but I've not been able to think of anything better. > `encodeISOOrASCII` doesn't seem helpful and since ASCII is a subset of the > ISO-8859-1 en

Re: RFR: 8274242: Implement fast-path for ASCII-compatible CharsetEncoders on x86

2021-09-26 Thread Tobias Hartmann
On Tue, 21 Sep 2021 21:58:48 GMT, Claes Redestad wrote: > This patch extends the `ISO_8859_1.implEncodeISOArray` intrinsic on x86 to > work also for ASCII encoding, which makes for example the `UTF_8$Encoder` > perform on par with (or outperform) similarly getting charset encoded bytes > from

Re: RFR: 8267357: build breaks with -Werror option on micro benchmark added for JDK-8256973

2021-05-19 Thread Tobias Hartmann
On Wed, 19 May 2021 08:20:13 GMT, Jatin Bhateja wrote: > Relevant declarations modified and tested with -Werror, no longer see > unchecked conversion warnings. > > Kindly review and approve. Marked as reviewed by thartmann (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/4

Re: [12] RFR(S) 8216151: [Graal] Module jdk.internal.vm.compiler.management has not been granted accessClassInPackage.org.graalvm.compiler.debug

2019-01-14 Thread Tobias Hartmann
Hi Vladimir, looks good to me. Best regards, Tobias On 13.01.19 03:46, Vladimir Kozlov wrote: > http://cr.openjdk.java.net/~kvn/8216151/webrev.00/ > https://bugs.openjdk.java.net/browse/JDK-8216151 > > Have to update default.policy after changes in > jdk.internal.vm.compiler.management files

Re: RFR 8214971 : Replace use of string.equals("") with isEmpty()

2018-12-10 Thread Tobias Hartmann
Hi Claes, the difference is the "array encoding" (ae) argument passed to the intrinsic. See MacroAssembler::string_compare(... int ae). If we compare an UTF16 String, we know that the number of bytes is always even (two byte / char encoding), whereas a Latin1 string has a byte encoding. So basi

Re: Review Request: JDK-8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference

2018-10-21 Thread Tobias Hartmann
Hi Mandy, the compiler related changes look good to me. Please run hs-tier1-3 if you haven't done so yet. Best regards, Tobias On 16.10.18 18:08, Mandy Chung wrote: > Webrev: > http://cr.openjdk.java.net/~mchung/jdk12/webrevs/8207146/webrev.00/ > > Unsafe::getObject returns a reference to an

Re: (M) RFR: 8200167: Validate more special case invocations

2018-04-26 Thread Tobias Hartmann
Hi David, On 27.04.2018 00:04, David Holmes wrote: >> src/hotspot/share/c1/c1_Canonicalizer.cpp >> ... >>   void Canonicalizer::do_CheckCast  (CheckCast*   x) { >> -  if (x->klass()->is_loaded()) { >> +  if (x->klass()->is_loaded() && !x->is_invokespecial_receiver_check()) >> >> It seems

Re: RFR JDK-8193479: test/hotspot/jtreg/compiler/codegen/Test6896617.java fails after JDK-8184947

2017-12-15 Thread Tobias Hartmann
Hi Sherman, On 15.12.2017 10:48, Tobias Hartmann wrote: > I would say it's best to wait for the jdk10 repo to open. I've checked with Jesper and we can/should quarantine this test right away. I'll take care of it [1]. Best regards, Tobias [1] http://mail.openjdk.java.net

Re: RFR JDK-8193479: test/hotspot/jtreg/compiler/codegen/Test6896617.java fails after JDK-8184947

2017-12-15 Thread Tobias Hartmann
Hi Sherman, On 14.12.2017 21:46, Xueming Shen wrote: > I have a webrev out there. But I will probably have to wait for the > new jdk10 repo open next week. > > Or maybe the hs repo is still open for something like this? and > you guys can help get it in directly there? I would say it's best to w

Re: [9] RFR(L) 8158168: SIGSEGV: CollectedHeap::fill_with_objects(HeapWord*, unsigned long, bool)+0xa8

2017-03-30 Thread Tobias Hartmann
On 30.03.2017 20:24, dean.l...@oracle.com wrote: > I would like to go with the webrev.2 version, with asserts removed. All the > reviewers have said they are OK with that version, and it allows more > complete testing than the minimal version. Okay, I'm fine with that! Best regards, Tobias >

Re: [9] RFR(L) 8158168: SIGSEGV: CollectedHeap::fill_with_objects(HeapWord*, unsigned long, bool)+0xa8

2017-03-22 Thread Tobias Hartmann
Hi, On 22.03.2017 06:09, David Holmes wrote: > I wonder if the reviewers have fully realized the potential impact here? This > has exposed a flaw in the way intrinsics are used from core classes. For the record, I'm fine with both the initial fix as well as the simplified version. If we don't a

Re: RFR 8170155: StringBuffer and StringBuilder stream methods are not late-binding

2016-11-25 Thread Tobias Hartmann
Hi, On 24.11.2016 00:56, Xueming Shen wrote: > On 11/23/2016 02:39 PM, Paul Sandoz wrote: >> Hi, >> >> Please review: >> >> >> http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8170155-string-buffer-builder-late-binding/webrev/ >> >> This patch: >> >> 1) updates the StringBuilder/StringBuffer.chars

Re: RFR: 8159035: com/sun/crypto/provider/Cipher/CTS/CTSMode.java test crashed due to unhandled case of cipher length value as 0

2016-11-08 Thread Tobias Hartmann
Hi Rahul, On 07.11.2016 12:21, Rahul Raghavan wrote: > Hi, > > Request review for closed bug fix - JDK-8159035. > > - http://cr.openjdk.java.net/~rraghavan/8159035/webrev.03/ Looks good to me! > Notes: > > 1. - https://bugs.openjdk.java.net/browse/JDK-8159035 - > (com/sun/crypto/provider/C

Re: RFR JDK-8143330: No appropriate CCC request for two new protected methods added in JDK9b93 by JDK-8141132

2015-11-23 Thread Tobias Hartmann
Hi, looks good to me. Best, Tobias On 20.11.2015 19:41, Xueming Shen wrote: > > I missed the override version in StringBuffer.java, thanks > Tobias for catching it. > > http://cr.openjdk.java.net/~sherman/8143553 > https://bugs.openjdk.java.net/browse/JDK-8143553 > > I did re-generate the api

Re: RFR JDK-8143330: No appropriate CCC request for two new protected methods added in JDK9b93 by JDK-8141132

2015-11-20 Thread Tobias Hartmann
Hi Sherman, On 19.11.2015 21:27, Xueming Shen wrote: > Hi > > Please help review the change for 8143330. > > Issue: https://bugs.openjdk.java.net/browse/JDK-8143330 > webrev: http://cr.openjdk.java.net/~sherman/8143330/webrev What about this 733 protected synchronized void getBytes(byte ds

Re: [9] RFR(S): 8005873: JRuby test_respond_to.rb asserts with: MT-unsafe modification of inline cache

2014-06-02 Thread Tobias Hartmann
x27;ll ask help from Sustaining. Thank you! Best, Tobias Best regards, Vladimir Ivanov Best regards, Vladimir Ivanov On 6/2/14 10:04 AM, Tobias Hartmann wrote: On 28.05.2014 12:48, Vladimir Ivanov wrote: Looks good. It should be safe to sync on MTF instance since it's not accessi

Re: [9] RFR(S): 8005873: JRuby test_respond_to.rb asserts with: MT-unsafe modification of inline cache

2014-06-01 Thread Tobias Hartmann
5/28/14 1:49 PM, Tobias Hartmann wrote: Hi, thanks everyone for the feedback! @Remi: I agree with Paul. This is not a problem because if the normal read sees an outdated null value, a new LambdaForm is created and setCachedLambdaForm(...) is executed. This will guarantee that the non-null val

Re: [9] RFR(S): 8005873: JRuby test_respond_to.rb asserts with: MT-unsafe modification of inline cache

2014-05-28 Thread Tobias Hartmann
May 16, 2014, at 4:56 AM, Tobias Hartmann wrote: Is it sufficient then to use synchronized (lambdaForms) { ... } in setCachedLambdaForm(..) and a normal read in cachedLambdaForm(..)? Yes, that is how I see it. The fast path is a racy non-volatile read of a safely-published structure. (If