Package net.openhft.lang.collection

Examples of net.openhft.lang.collection.SingleThreadedDirectBitSet


            start += align64(sizeOfMultiMap() + sizeOfMultiMapBitSet()) * multiMapsPerSegment();
            final NativeBytes bsBytes = new NativeBytes(
                    NO_OBJECT_SERIALIZER, start, start + sizeOfBitSets(), null);
            // warm memory eagerly.
//            bsBytes.load();
            freeList = new SingleThreadedDirectBitSet(bsBytes);
            start += numberOfBitSets() * sizeOfBitSets();
            entriesOffset = start - bytes.startAddr();
            assert bytes.capacity() >= entriesOffset + entriesPerSegment * entrySize;
        }
View Full Code Here


        capacity = (int) (multiMapBytes.capacity() / ENTRY_SIZE);
        assert capacity == Maths.nextPower2(capacity, 16);
        capacityMask = capacity - 1;
        capacityMask2 = indexToPos(capacity - 1);
        this.bytes = multiMapBytes;
        positions = new SingleThreadedDirectBitSet(multiMapBitSetBytes);
    }
View Full Code Here

TOP

Related Classes of net.openhft.lang.collection.SingleThreadedDirectBitSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.