#include <memory_quota.h>
Definition at line 285 of file memory_quota.h.
◆ GrpcMemoryAllocatorImpl()
grpc_core::GrpcMemoryAllocatorImpl::GrpcMemoryAllocatorImpl |
( |
std::shared_ptr< BasicMemoryQuota > |
memory_quota, |
|
|
std::string |
name |
|
) |
| |
|
explicit |
◆ ~GrpcMemoryAllocatorImpl()
grpc_core::GrpcMemoryAllocatorImpl::~GrpcMemoryAllocatorImpl |
( |
| ) |
|
|
override |
◆ ABSL_GUARDED_BY() [1/2]
◆ ABSL_GUARDED_BY() [2/2]
◆ InsertReclaimer()
template<typename F >
void grpc_core::GrpcMemoryAllocatorImpl::InsertReclaimer |
( |
size_t |
pass, |
|
|
F |
fn |
|
) |
| |
|
inlineprivate |
◆ InstantaneousPressure()
double grpc_core::GrpcMemoryAllocatorImpl::InstantaneousPressure |
( |
| ) |
const |
|
inline |
◆ MaybeDonateBack()
void grpc_core::GrpcMemoryAllocatorImpl::MaybeDonateBack |
( |
| ) |
|
|
private |
◆ MaybeRegisterReclaimer()
void grpc_core::GrpcMemoryAllocatorImpl::MaybeRegisterReclaimer |
( |
| ) |
|
|
private |
◆ name()
◆ PostReclaimer()
template<typename F >
void grpc_core::GrpcMemoryAllocatorImpl::PostReclaimer |
( |
ReclamationPass |
pass, |
|
|
F |
fn |
|
) |
| |
|
inline |
◆ Release()
void grpc_core::GrpcMemoryAllocatorImpl::Release |
( |
size_t |
n | ) |
|
|
inlineoverridevirtual |
◆ Replenish()
void grpc_core::GrpcMemoryAllocatorImpl::Replenish |
( |
| ) |
|
|
private |
◆ Reserve()
size_t grpc_core::GrpcMemoryAllocatorImpl::Reserve |
( |
MemoryRequest |
request | ) |
|
|
overridevirtual |
Reserve bytes from the quota. If we enter overcommit, reclamation will begin concurrently. Returns the number of bytes reserved. If MemoryRequest is invalid, this function will abort. If MemoryRequest is valid, this function is infallible, and will always succeed at reserving the some number of bytes between request.min() and request.max() inclusively.
Implements grpc_event_engine::experimental::internal::MemoryAllocatorImpl.
Definition at line 187 of file memory_quota.cc.
◆ Shutdown()
void grpc_core::GrpcMemoryAllocatorImpl::Shutdown |
( |
| ) |
|
|
overridevirtual |
◆ TryReserve()
◆ free_bytes_
std::atomic<size_t> grpc_core::GrpcMemoryAllocatorImpl::free_bytes_ {0} |
|
private |
◆ memory_quota_
◆ name_
std::string grpc_core::GrpcMemoryAllocatorImpl::name_ |
|
private |
◆ reclaimer_mu_
Mutex grpc_core::GrpcMemoryAllocatorImpl::reclaimer_mu_ |
|
private |
◆ registered_reclaimer_
std::atomic<bool> grpc_core::GrpcMemoryAllocatorImpl::registered_reclaimer_ {false} |
|
private |
◆ taken_bytes_
The documentation for this class was generated from the following files: