Re: RFR: 8342662: C2: Add new phase for backend-specific lowering

2024-10-20 Thread Quan Anh Mai
On Mon, 21 Oct 2024 04:11:03 GMT, Jasmine Karthikeyan wrote: > Hi all, > This patch adds a new pass to consolidate lowering of complex > backend-specific code patterns, such as `MacroLogicV` and the optimization > proposed by #21244. Moving these optimizations to backend code can simplify > s

Re: RFR: 8318446: C2: implement StoreNode::Ideal_merge_stores

2024-01-16 Thread Quan Anh Mai
On Wed, 25 Oct 2023 06:31:05 GMT, Emanuel Peter wrote: >> I imagine it would be beneficial if we could merge stores to fields and >> stores from loads, which are common in object constructions. >> >> Thanks. > > @merykitty do you have examples for both? Maybe stores to fields already > works.

Re: RFR: 8318446: C2: implement StoreNode::Ideal_merge_stores

2024-01-16 Thread Quan Anh Mai
On Wed, 18 Oct 2023 13:04:35 GMT, Emanuel Peter wrote: > This is a feature requiested by @RogerRiggs and @cl4es . > > **Idea** > > Merging multiple consecutive small stores (e.g. 8 byte stores) into larger > stores (e.g. one long store) can lead to speedup. > Recently, @cl4es and @RogerRiggs h

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v42]

2023-10-13 Thread Quan Anh Mai
On Sat, 14 Oct 2023 03:21:52 GMT, himichael wrote: >>> my question is that this feature should improve performance several times, >>> but it doesn't look like there's much difference between open jdk 22.19 and >>> jdk 8. is there a problem with my configuration ? >> >> Hello @himichael, >> >>

Re: RFR: 8309130: x86_64 AVX512 intrinsics for Arrays.sort methods (int, long, float and double arrays) [v42]

2023-10-13 Thread Quan Anh Mai
On Fri, 13 Oct 2023 07:02:18 GMT, himichael wrote: >> Srinivas Vamsi Parasa has updated the pull request with a new target base >> due to a merge or a rebase. The pull request now contains 45 commits: >> >> - fix code style and formatting >> - Merge branch 'master' of https://git.openjdk.java

Re: RFR: 8307058: Implementation of Generational ZGC [v8]

2023-05-08 Thread Quan Anh Mai
On Mon, 8 May 2023 09:01:07 GMT, Erik Ă–sterlund wrote: >> I think we use the flag `UseStoreImmI16` for these kinds of situations. > > We did indeed run into the predecoder issue when we used testw for normal > store barriers, so I changed to testl. However, this cmpw is only taken when > we use

Re: RFR: 8307058: Implementation of Generational ZGC [v8]

2023-05-06 Thread Quan Anh Mai
On Sat, 6 May 2023 04:08:42 GMT, Quan Anh Mai wrote: >> Stefan Karlsson has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 917 commits: >> >> - ZGC: Generational >> >>Co-authored-by: S

Re: RFR: 8307058: Implementation of Generational ZGC [v8]

2023-05-05 Thread Quan Anh Mai
On Fri, 5 May 2023 07:43:17 GMT, Stefan Karlsson wrote: >> Hi all, >> >> Please review the implementation of Generational ZGC, which can be turned on >> by adding -XX:+ZGenerational in addition to using -XX:+UseZGC. Generational >> ZGC is a major rewrite of the non-generational ZGC version tha

Re: RFR: 8305425: Thread.isAlive0 doesn't need to call into the VM [v2]

2023-04-03 Thread Quan Anh Mai
On Mon, 3 Apr 2023 09:36:39 GMT, David Holmes wrote: >> We have the strange situation where calling `t.isAlive()` on a >> `java.lang.Thread` `t`, will call into the VM (via `alive()` then >> `isAlive0()`) where the VM then examines the `eetop` field of `t` to extract >> its `JavaThread` pointe