Skip to main content

GCReason

Enum GCReason 

Source
#[repr(i32)]
pub enum GCReason {
Show 68 variants FIRST_FIREFOX_REASON = 33, LAST_FIREFOX_REASON = 57, FIRST_RESERVED_REASON = 90, API = 0, EAGER_ALLOC_TRIGGER = 1, DESTROY_RUNTIME = 2, ROOTS_REMOVED = 3, LAST_DITCH = 4, TOO_MUCH_MALLOC = 5, ALLOC_TRIGGER = 6, DEBUG_GC = 7, COMPARTMENT_REVIVED = 8, RESET = 9, OUT_OF_NURSERY = 10, EVICT_NURSERY = 11, SHARED_MEMORY_LIMIT = 13, EAGER_NURSERY_COLLECTION = 14, BG_TASK_FINISHED = 15, ABORT_GC = 16, FULL_WHOLE_CELL_BUFFER = 17, FULL_GENERIC_BUFFER = 18, FULL_VALUE_BUFFER = 19, FULL_CELL_PTR_OBJ_BUFFER = 20, FULL_SLOT_BUFFER = 21, FULL_SHAPE_BUFFER = 22, TOO_MUCH_WASM_MEMORY = 23, DISABLE_GENERATIONAL_GC = 24, FINISH_GC = 25, PREPARE_FOR_TRACING = 26, FULL_WASM_ANYREF_BUFFER = 27, FULL_CELL_PTR_STR_BUFFER = 28, TOO_MUCH_JIT_CODE = 29, FULL_CELL_PTR_BIGINT_BUFFER = 30, NURSERY_TRAILERS = 31, NURSERY_MALLOC_BUFFERS = 32, COMPONENT_UTILS = 34, MEM_PRESSURE = 35, CC_FINISHED = 36, CC_FORCED = 37, LOAD_END = 38, UNUSED3 = 39, PAGE_HIDE = 40, NSJSCONTEXT_DESTROY = 41, WORKER_SHUTDOWN = 42, SET_DOC_SHELL = 43, DOM_UTILS = 44, DOM_IPC = 45, DOM_WORKER = 46, INTER_SLICE_GC = 47, UNUSED1 = 48, FULL_GC_TIMER = 49, SHUTDOWN_CC = 50, UNUSED2 = 51, USER_INACTIVE = 52, XPCONNECT_SHUTDOWN = 53, DOCSHELL = 54, HTML_PARSER = 55, DOM_TESTUTILS = 56, RESERVED2 = 91, RESERVED3 = 92, RESERVED4 = 93, RESERVED5 = 94, RESERVED6 = 95, RESERVED7 = 96, RESERVED8 = 97, RESERVED9 = 98, NO_REASON = 99, NUM_REASONS = 100,
}

Variants§

§

FIRST_FIREFOX_REASON = 33

§

LAST_FIREFOX_REASON = 57

§

FIRST_RESERVED_REASON = 90

§

API = 0

§

EAGER_ALLOC_TRIGGER = 1

§

DESTROY_RUNTIME = 2

§

ROOTS_REMOVED = 3

§

LAST_DITCH = 4

§

TOO_MUCH_MALLOC = 5

§

ALLOC_TRIGGER = 6

§

DEBUG_GC = 7

§

COMPARTMENT_REVIVED = 8

§

RESET = 9

§

OUT_OF_NURSERY = 10

§

EVICT_NURSERY = 11

§

SHARED_MEMORY_LIMIT = 13

§

EAGER_NURSERY_COLLECTION = 14

§

BG_TASK_FINISHED = 15

§

ABORT_GC = 16

§

FULL_WHOLE_CELL_BUFFER = 17

§

FULL_GENERIC_BUFFER = 18

§

FULL_VALUE_BUFFER = 19

§

FULL_CELL_PTR_OBJ_BUFFER = 20

§

FULL_SLOT_BUFFER = 21

§

FULL_SHAPE_BUFFER = 22

§

TOO_MUCH_WASM_MEMORY = 23

§

DISABLE_GENERATIONAL_GC = 24

§

FINISH_GC = 25

§

PREPARE_FOR_TRACING = 26

§

FULL_WASM_ANYREF_BUFFER = 27

§

FULL_CELL_PTR_STR_BUFFER = 28

§

TOO_MUCH_JIT_CODE = 29

§

FULL_CELL_PTR_BIGINT_BUFFER = 30

§

NURSERY_TRAILERS = 31

§

NURSERY_MALLOC_BUFFERS = 32

§

COMPONENT_UTILS = 34

§

MEM_PRESSURE = 35

§

CC_FINISHED = 36

§

CC_FORCED = 37

§

LOAD_END = 38

§

UNUSED3 = 39

§

PAGE_HIDE = 40

§

NSJSCONTEXT_DESTROY = 41

§

WORKER_SHUTDOWN = 42

§

SET_DOC_SHELL = 43

§

DOM_UTILS = 44

§

DOM_IPC = 45

§

DOM_WORKER = 46

§

INTER_SLICE_GC = 47

§

UNUSED1 = 48

§

FULL_GC_TIMER = 49

§

SHUTDOWN_CC = 50

§

UNUSED2 = 51

§

USER_INACTIVE = 52

§

XPCONNECT_SHUTDOWN = 53

§

DOCSHELL = 54

§

HTML_PARSER = 55

§

DOM_TESTUTILS = 56

§

RESERVED2 = 91

§

RESERVED3 = 92

§

RESERVED4 = 93

§

RESERVED5 = 94

§

RESERVED6 = 95

§

RESERVED7 = 96

§

RESERVED8 = 97

§

RESERVED9 = 98

§

NO_REASON = 99

§

NUM_REASONS = 100

Implementations§

Source§

impl GCReason

Source

pub const DOM_WINDOW_UTILS: GCReason = GCReason::FIRST_FIREFOX_REASON

Source§

impl GCReason

Source

pub const PREPARE_FOR_PAGELOAD: GCReason = GCReason::LAST_FIREFOX_REASON

Source§

impl GCReason

Source

pub const RESERVED1: GCReason = GCReason::FIRST_RESERVED_REASON

Source§

impl GCReason

Source

pub const NUM_TELEMETRY_REASONS: GCReason = GCReason::NUM_REASONS

Trait Implementations§

Source§

impl Clone for GCReason

Source§

fn clone(&self) -> GCReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GCReason

Source§

impl Debug for GCReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for GCReason

Source§

impl Hash for GCReason

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for GCReason

Source§

fn eq(&self, other: &GCReason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for GCReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.