This table is thread-safe, but not very efficient. It uses a single lock to protect its internal data structure from concurrent access, and stores all data as byte arrays. To reduce memory usage, the arrays passed by the caller during put or compareAndSet are used as-is in the internal data structure, and may be returned later. Callers should not modify byte arrays once they are stored in the table, or when obtained from the table.
|
|