v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <sweeper-thread.h>
Public Member Functions | |
SweeperThread (Isolate *isolate) | |
~SweeperThread () | |
void | Run () |
void | Stop () |
void | StartSweeping () |
void | WaitForSweeperThread () |
Public Member Functions inherited from Thread | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | StartSynchronously () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
void | NotifyStartedAndRun () |
Static Public Member Functions | |
static int | NumberOfThreads (int max_available) |
Static Public Member Functions inherited from Thread | |
static LocalStorageKey | CreateThreadLocalKey () |
static void | DeleteThreadLocalKey (LocalStorageKey key) |
static void * | GetThreadLocal (LocalStorageKey key) |
static int | GetThreadLocalInt (LocalStorageKey key) |
static void | SetThreadLocal (LocalStorageKey key, void *value) |
static void | SetThreadLocalInt (LocalStorageKey key, int value) |
static bool | HasThreadLocal (LocalStorageKey key) |
static void * | GetExistingThreadLocal (LocalStorageKey key) |
static void | YieldCPU () |
Additional Inherited Members | |
Public Types inherited from Thread | |
enum | LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt } |
Static Public Attributes inherited from Thread | |
static const int | kMaxThreadNameLength = 16 |
Definition at line 43 of file sweeper-thread.h.
|
explicit |
Definition at line 40 of file sweeper-thread.cc.
References ASSERT, and v8::internal::NoBarrier_Store().
|
inline |
Definition at line 46 of file sweeper-thread.h.
|
static |
Definition at line 92 of file sweeper-thread.cc.
References ASSERT.
|
virtual |
Implements Thread.
Definition at line 53 of file sweeper-thread.cc.
References v8::internal::Acquire_Load(), v8::internal::NULL, Heap::old_data_space(), Heap::old_pointer_space(), and MarkCompactCollector::SweepInParallel().
void StartSweeping | ( | ) |
Definition at line 82 of file sweeper-thread.cc.
void Stop | ( | ) |
Definition at line 74 of file sweeper-thread.cc.
References Thread::Join(), and v8::internal::Release_Store().
void WaitForSweeperThread | ( | ) |
Definition at line 87 of file sweeper-thread.cc.
Referenced by MarkCompactCollector::WaitUntilSweepingCompleted().