Skip to content

Use VarHandle if available, failing over to AtomicIntegerFieldUpdater.#597

Draft
kennethshackleton wants to merge 8 commits into
bloomberg:mainfrom
kennethshackleton:varhandle
Draft

Use VarHandle if available, failing over to AtomicIntegerFieldUpdater.#597
kennethshackleton wants to merge 8 commits into
bloomberg:mainfrom
kennethshackleton:varhandle

Conversation

@kennethshackleton

@kennethshackleton kennethshackleton commented Dec 31, 2025

Copy link
Copy Markdown
Member

The VarHandle optimization provides some performance improvements for server/JVM deployments without regressing performance on Android. MethodHandles requires Android SDK 26.

… having to convert Int to Boolean seems to hurt reads.

Signed-off-by: kshackleton1 <[email protected]>
Signed-off-by: kshackleton1 <[email protected]>
JMH is not compatible with KSP.

Signed-off-by: kshackleton1 <[email protected]>
Signed-off-by: kshackleton1 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@kennethshackleton kennethshackleton changed the title Use VarHandle if available, failing over to AtomiciIntegerFieldUpdater. Use VarHandle if available, failing over to AtomicIntegerFieldUpdater. Jan 21, 2026
@kennethshackleton kennethshackleton added the question Further information is requested label Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant