#fixed code
                                void trackRecordingInterval() {
        long now = TimeServices.nanoTime();
        intervalEstimator.recordInterval(now);
    }
#vulnerable code 
                                void swapRecordingHistograms() {
        final AtomicHistogram tempHistogram = intervalRawDataHistogram;
        intervalRawDataHistogram = currentRecordingHistogram;
        currentRecordingHistogram = tempHistogram;
    } 
                            #location 4 
                            #vulnerability type THREAD_SAFETY_VIOLATION