Class AdaptivePoolingAllocator.AllocationStatistics

    • Field Detail

      • HISTO_MIN_BUCKET_SHIFT

        private static final int HISTO_MIN_BUCKET_SHIFT
        See Also:
        Constant Field Values
      • HISTO_MAX_BUCKET_SHIFT

        private static final int HISTO_MAX_BUCKET_SHIFT
        See Also:
        Constant Field Values
      • shareable

        private final boolean shareable
      • histos

        private final short[][] histos
      • histo

        private short[] histo
      • sums

        private final int[] sums
      • histoIndex

        private int histoIndex
      • datumCount

        private int datumCount
      • datumTarget

        private int datumTarget
      • sharedPrefChunkSize

        protected volatile int sharedPrefChunkSize
      • localPrefChunkSize

        protected volatile int localPrefChunkSize
    • Method Detail

      • recordAllocationSize

        protected void recordAllocationSize​(int bucket)
      • sizeBucket

        static int sizeBucket​(int size)
      • rotateHistograms

        private void rotateHistograms()
      • preferredChunkSize

        protected int preferredChunkSize()
        Get the preferred chunk size, based on statistics from the recorded allocation sizes.

        This method must be thread-safe.

        Returns:
        The currently preferred chunk allocation size.