buffer: centralize VarHandle byte[] access in VarHandleByteBufferAccess#15670
Conversation
Motivation: Follow-up to #15661. Move signature-polymorphic VarHandle calls out of HeapByteBufUtil to avoid class verification issues on older Android runtimes when VarHandle is disabled. Modifications: - Add byte[] getters/setters to VarHandleByteBufferAccess that wrap PlatformDependent.*ArrayView() VarHandles. - Use these methods from HeapByteBufUtil when VarHandle is enabled, preserving existing bitwise fallbacks otherwise. - Remove direct signature-polymorphic calls from HeapByteBufUtil. Result: No direct references to signature-polymorphic VarHandle methods remain in HeapByteBufUtil. Behavior is unchanged when VarHandle is disabled.
|
@ajith211 can you please try 4.2.7.Final-SNAPSHOT again now that this one was merged ? |
|
Related to #15654 |
Somehow artifactory download is taking bit longer time than earlier during build. Will update you after generating the integrated build |
|
@normanmaurer @yawkat Good news. With latest 4.2.7.Final-SNAPSHOT, we can see issue is resolved. |
|
@yawkat thanks 🙏 |
End of next week |
Motivation:
Follow-up to #15661. Move signature-polymorphic VarHandle calls out of HeapByteBufUtil to avoid class verification issues on older Android runtimes when VarHandle is disabled.
Modifications:
Result:
No direct references to signature-polymorphic VarHandle methods remain in HeapByteBufUtil. Behavior is unchanged when VarHandle is disabled.
AI-generated PR again, FYI