#vulnerable code 
                                long cleanUpCount()
    {
        return cleanUpCount;
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                OffHeapMap(OHCacheBuilder builder, long capacity, long cleanUpTriggerFree)
    {
        this.capacity = capacity;
        this.freeCapacity = capacity;
        this.cleanUpTriggerFree = cleanUpTriggerFree;

        int hts = builder.getHashTableSize();
        if (hts <= 0)
            hts = 8192;
        if (hts < 256)
            hts = 256;
        table = new Table(roundUpToPowerOf2(hts));

        double lf = builder.getLoadFactor();
        if (lf <= .0d)
            lf = .75d;
        this.loadFactor = lf;
        threshold = (long) ((double) table.size() * loadFactor);
    }