v8
9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
f
h
i
j
m
n
o
p
r
s
t
u
Variables
i
k
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
c
e
g
i
j
k
m
n
p
r
s
t
w
Enumerator
a
b
c
d
e
g
i
j
k
n
o
p
r
s
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
g
i
m
n
p
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
m
n
o
p
s
t
u
v
w
Enumerator
b
c
d
e
h
j
k
n
o
p
r
s
t
u
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
a
c
s
v
Macros
a
c
s
v
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
heap-state.h
Go to the documentation of this file.
1
// Copyright 2021 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#
ifndef
INCLUDE_CPPGC_HEAP_STATE_H_
6
#
define
INCLUDE_CPPGC_HEAP_STATE_H_
7
8
#
include
"v8config.h"
// NOLINT(build/include_directory)
9
10
namespace
cppgc
{
11
12
class
HeapHandle;
13
14
namespace
subtle
{
15
16
/**
17
* Helpers to peek into heap-internal state.
18
*/
19
class
V8_EXPORT
HeapState
final
{
20
public
:
21
/**
22
* Returns whether the garbage collector is marking. This API is experimental
23
* and is expected to be removed in future.
24
*
25
* \param heap_handle The corresponding heap.
26
* \returns true if the garbage collector is currently marking, and false
27
* otherwise.
28
*/
29
static
bool
IsMarking
(
const
HeapHandle& heap_handle);
30
31
/*
32
* Returns whether the garbage collector is sweeping. This API is experimental
33
* and is expected to be removed in future.
34
*
35
* \param heap_handle The corresponding heap.
36
* \returns true if the garbage collector is currently sweeping, and false
37
* otherwise.
38
*/
39
static
bool
IsSweeping
(
const
HeapHandle& heap_handle);
40
41
/**
42
* Returns whether the garbage collector is in the atomic pause, i.e., the
43
* mutator is stopped from running. This API is experimental and is expected
44
* to be removed in future.
45
*
46
* \param heap_handle The corresponding heap.
47
* \returns true if the garbage collector is currently in the atomic pause,
48
* and false otherwise.
49
*/
50
static
bool
IsInAtomicPause
(
const
HeapHandle& heap_handle);
51
52
private
:
53
HeapState() =
delete
;
54
};
55
56
}
// namespace subtle
57
}
// namespace cppgc
58
59
#
endif
// INCLUDE_CPPGC_HEAP_STATE_H_
cppgc::subtle::HeapState::IsMarking
static bool IsMarking(const HeapHandle &heap_handle)
cppgc::subtle::HeapState::IsInAtomicPause
static bool IsInAtomicPause(const HeapHandle &heap_handle)
cppgc::subtle
Definition:
cross-thread-persistent.h:310
cppgc
Definition:
allocation.h:17
V8_EXPORT
#define V8_EXPORT
Definition:
v8config.h:512
cppgc::subtle::HeapState::IsSweeping
static bool IsSweeping(const HeapHandle &heap_handle)
include
cppgc
heap-state.h
Generated on Tue Apr 20 2021 15:07:22 for v8 by
1.8.17