On Sat, 21 Nov 2026 01:21:43 GMT, Weijun Wang <[email protected]> wrote:

>> Matthias Baesken has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Move pw code up
>
> src/java.base/macosx/native/libosxsecurity/KeystoreImpl.m line 794:
> 
>> 792:                 passwordChars = (*env)->GetCharArrayElements(env, 
>> passwordObj, NULL);
>> 793:                 if (passwordChars == NULL) {
>> 794:                     CFRelease(cfDataToImport);
> 
> Can we instead move all password-related code to the beginning of the `@try` 
> block?

okay, I moved the code up. Seems this way we can get rid of some CFRelease 
calls.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33999#discussion_r4663654312

Reply via email to