JDK-8008240 : (bf) Atomics for ByteBuffers
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2013-02-14
  • Updated: 2018-02-09
  • Resolved: 2018-02-09
Related Reports
Relates :  
Description
Sharing data using RDMA permits the application to perform atomic operations on remote buffers, but there is no way to perform / observe the effects locally.

So if the application shares its buffers, peers can modify the contents atomically, but the application cannot peek the values with volatile semantics, and cannot atomically modify the values the peers can.

The request is to create some API to enable volatile and atomic access to the ByteBuffer contents, the primary use is accessing DirectByteBuffers.
Comments
VarHandles support atomic access to direct buffers.
09-02-2018