PageReleaseContext contains all the information needed for determing if a page can be released. Splitting out the context increases the flexibility of heterogenous free lists in the future. Also rename PackedCounterArray to PageMap. Reviewed By: cryptoad, cferris Differential Revision: https://reviews.llvm.org/D133895
17 lines
540 B
C++
17 lines
540 B
C++
//===-- release.cpp ---------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "release.h"
|
|
|
|
namespace scudo {
|
|
|
|
HybridMutex RegionPageMap::Mutex = {};
|
|
uptr RegionPageMap::StaticBuffer[RegionPageMap::StaticBufferCount];
|
|
|
|
} // namespace scudo
|