On Mon, 26 Oct 2026 13:06:49 GMT, Aleksey Shipilev <[email protected]> wrote:

>> Our ongoing audit flags that newly added code (and recently modified by 
>> [JDK-8394802](https://bugs.openjdk.org/browse/JDK-8394802)) in Unsafe lacks 
>> @ForceInline, like some of their siblings do. It is both a code discipline 
>> issue, and potential performance roadbump if we somehow decide not to inline 
>> through these methods.
>> 
>> I marked methods that AFAICS end up calling `@IntrinsicCandidate`, so 
>> forcing inlining for them pays off when we reach the intrinsic.
>> 
>> Additional testing:
>>  - [x] Eyeballing Valhalla additions to Unsafe, no other hits
>>  - [x] Linux x86_64 server fastdebug, `java/lang/invoke compiler/unsafe`
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Aleksey Shipilev has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains four additional 
> commits since the last revision:
> 
>  - Merge branch 'master' into JDK-8395827-unsafe-forceinline
>  - A few more paths
>  - Merge branch 'master' into JDK-8395827-unsafe-forceinline
>  - Fix

Marked as reviewed by ayang (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/33564#pullrequestreview-5691878781

Reply via email to