Integrated: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead

2025-04-10 Thread Zihao Lin
On Sat, 5 Apr 2025 14:26:13 GMT, Zihao Lin wrote: > Modify the cache in MethodTypeForm that currently stores the LF_INTERPRET > Lambda form. Instead of caching the entire LambdaForm, change it to store a > SoftReference. This will avoid unnecessary memory usage. This pull request has

Re: RFR: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead [v2]

2025-04-09 Thread Zihao Lin
On Mon, 7 Apr 2025 19:16:11 GMT, Chen Liang wrote: >> OK, removed it. > > Now the index 6 is left unused in the LF cache array - we can leave it empty > and renumber the cache indices when we add a new entry to cache. Got it, thanks for the explanation. - PR Review Comment: https:

Re: RFR: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead [v2]

2025-04-06 Thread Zihao Lin
> Modify the cache in MethodTypeForm that currently stores the LF_INTERPRET > Lambda form. Instead of caching the entire LambdaForm, change it to store a > SoftReference. This will avoid unnecessary memory usage. Zihao Lin has updated the pull request incrementally with one addition

Re: RFR: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead [v2]

2025-04-06 Thread Zihao Lin
On Sun, 6 Apr 2025 00:04:19 GMT, Chen Liang wrote: >> Zihao Lin has updated the pull request incrementally with one additional >> commit since the last revision: >> >> remove LF_INTERPRET > > src/java.base/share/classes/java/lang/invoke/MethodTypeForm.java lin

RFR: 8352171: Arrays.hashCode for sub-range of byte array API addition

2025-04-05 Thread Zihao Lin
Add the java.util.Arrays.hashCode(byte[], int start, int end). Hi team, I am new here, please give me some guidance. Thank you. - Commit messages: - 8352171: Arrays.hashCode for sub-range of byte array API addition Changes: https://git.openjdk.org/jdk/pull/24128/files Webrev: htt

RFR: 8350462: MethodTypeForm.LF_INTERPRET can cache the MemberName instead

2025-04-05 Thread Zihao Lin
Modify the cache in MethodTypeForm that currently stores the LF_INTERPRET Lambda form. Instead of caching the entire LambdaForm, change it to store a SoftReference. This will avoid unnecessary memory usage. - Commit messages: - Merge branch 'openjdk:master' into JDK-8350462 - 8350

Re: RFR: 8352171: Arrays.hashCode for sub-range of byte array API addition

2025-04-04 Thread Zihao Lin
On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin wrote: > Add the java.util.Arrays.hashCode(byte[], int start, int end). > > Hi team, I am new here, please give me some guidance. Thank you. That’s helpful to know, Let's solve this issue after creating the CSR. - PR

Re: RFR: 8352171: Arrays.hashCode for sub-range of byte array API addition [v2]

2025-03-29 Thread Zihao Lin
> Add the java.util.Arrays.hashCode(byte[], int start, int end). > > Hi team, I am new here, please give me some guidance. Thank you. Zihao Lin has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brou

Withdrawn: 8352171: Arrays.hashCode for sub-range of byte array API addition

2025-03-28 Thread Zihao Lin
On Thu, 20 Mar 2025 11:59:58 GMT, Zihao Lin wrote: > Add the java.util.Arrays.hashCode(byte[], int start, int end). > > Hi team, I am new here, please give me some guidance. Thank you. This pull request has been closed without being integrated. - PR: https://git.openjd