v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Heap::ExternalMemoryAccounting Class Reference

#include <heap.h>

Collaboration diagram for v8::internal::Heap::ExternalMemoryAccounting:

Public Member Functions

uint64_t total () const
 
uint64_t limit_for_interrupt () const
 
uint64_t soft_limit () const
 
uint64_t low_since_mark_compact () const
 
uint64_t UpdateAmount (int64_t delta)
 
void UpdateLimitForInterrupt (uint64_t amount)
 
void UpdateLowSinceMarkCompact (uint64_t amount)
 
uint64_t AllocatedSinceMarkCompact () const
 

Static Public Attributes

static constexpr size_t kExternalAllocationLimitForInterrupt = 128 * KB
 

Private Member Functions

void set_total (uint64_t value)
 
void set_limit_for_interrupt (uint64_t value)
 
void set_low_since_mark_compact (uint64_t value)
 

Private Attributes

std::atomic< uint64_t > total_ {0}
 
std::atomic< uint64_t > limit_for_interrupt_
 
std::atomic< uint64_t > low_since_mark_compact_ {0}
 

Detailed Description

Definition at line 219 of file heap.h.

Member Function Documentation

◆ AllocatedSinceMarkCompact()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::AllocatedSinceMarkCompact ( ) const
inline

Definition at line 250 of file heap.h.

Here is the caller graph for this function:

◆ limit_for_interrupt()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::limit_for_interrupt ( ) const
inline

Definition at line 224 of file heap.h.

Here is the caller graph for this function:

◆ low_since_mark_compact()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::low_since_mark_compact ( ) const
inline

Definition at line 230 of file heap.h.

Here is the caller graph for this function:

◆ set_limit_for_interrupt()

void v8::internal::Heap::ExternalMemoryAccounting::set_limit_for_interrupt ( uint64_t value)
inlineprivate

Definition at line 265 of file heap.h.

◆ set_low_since_mark_compact()

void v8::internal::Heap::ExternalMemoryAccounting::set_low_since_mark_compact ( uint64_t value)
inlineprivate

Definition at line 269 of file heap.h.

◆ set_total()

void v8::internal::Heap::ExternalMemoryAccounting::set_total ( uint64_t value)
inlineprivate

Definition at line 261 of file heap.h.

◆ soft_limit()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::soft_limit ( ) const
inline

Definition at line 227 of file heap.h.

Here is the caller graph for this function:

◆ total()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::total ( ) const
inline

Definition at line 223 of file heap.h.

Here is the caller graph for this function:

◆ UpdateAmount()

uint64_t v8::internal::Heap::ExternalMemoryAccounting::UpdateAmount ( int64_t delta)
inline

Definition at line 234 of file heap.h.

Here is the caller graph for this function:

◆ UpdateLimitForInterrupt()

void v8::internal::Heap::ExternalMemoryAccounting::UpdateLimitForInterrupt ( uint64_t amount)
inline

Definition at line 241 of file heap.h.

Here is the caller graph for this function:

◆ UpdateLowSinceMarkCompact()

void v8::internal::Heap::ExternalMemoryAccounting::UpdateLowSinceMarkCompact ( uint64_t amount)
inline

Definition at line 245 of file heap.h.

Here is the caller graph for this function:

Member Data Documentation

◆ kExternalAllocationLimitForInterrupt

size_t v8::internal::Heap::ExternalMemoryAccounting::kExternalAllocationLimitForInterrupt = 128 * KB
staticconstexpr

Definition at line 221 of file heap.h.

◆ limit_for_interrupt_

std::atomic<uint64_t> v8::internal::Heap::ExternalMemoryAccounting::limit_for_interrupt_
private
Initial value:

Definition at line 277 of file heap.h.

◆ low_since_mark_compact_

std::atomic<uint64_t> v8::internal::Heap::ExternalMemoryAccounting::low_since_mark_compact_ {0}
private

Definition at line 281 of file heap.h.

◆ total_

std::atomic<uint64_t> v8::internal::Heap::ExternalMemoryAccounting::total_ {0}
private

Definition at line 274 of file heap.h.


The documentation for this class was generated from the following file: