Skip to content

Commit

Permalink
make updatePeak private
Browse files Browse the repository at this point in the history
  • Loading branch information
roberttoyonaga committed Feb 28, 2024
1 parent 2d69f44 commit 8ef5550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void track(UnsignedWord allocationSize) {
}

@Uninterruptible(reason = CALLED_FROM_UNINTERRUPTIBLE_CODE, mayBeInlined = true)
void updatePeak(long newUsed, long newCount) {
private void updatePeak(long newUsed, long newCount) {
long expectedPeakUsage = peakUsage;
while (expectedPeakUsage < newUsed) {
long originalValue = U.compareAndExchangeLong(this, PEAK_USAGE_OFFSET, expectedPeakUsage, newUsed);
Expand Down

0 comments on commit 8ef5550

Please sign in to comment.