Skip to content

Do not disturb buffer positions on OffheapStorageArea writes #70

@cschanck

Description

@cschanck

Currently, all the write methods in OffheapStorageArea disturb the buffer position of the underlying ByteBuffer. This has the unfortunate side effect of not allowing read operations to proceed while a write is happening, even if they are on non-colliding memory addresses, if those reads/writes happen to share an underyling buffer.

If this is fixed (simple application of slice() or duplicate()), then you could let can allow for reads to happen coincident with writes, assuming you know they are different spans. StampedLocks and optimistic reads, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions