38 static const int kSweeperThreadStackSize = 64 *
KB;
43 heap_(isolate->heap()),
44 collector_(heap_->mark_compact_collector()),
45 start_sweeping_semaphore_(0),
46 end_sweeping_semaphore_(0),
48 ASSERT(!FLAG_job_based_sweeping);
54 Isolate::SetIsolateThreadLocals(isolate_,
NULL);
60 start_sweeping_semaphore_.Wait();
63 stop_semaphore_.Signal();
69 end_sweeping_semaphore_.Signal();
76 start_sweeping_semaphore_.Signal();
77 stop_semaphore_.Wait();
83 start_sweeping_semaphore_.Signal();
88 end_sweeping_semaphore_.Wait();
93 if (!FLAG_concurrent_sweeping && !FLAG_parallel_sweeping)
return 0;
94 if (FLAG_sweeper_threads > 0)
return FLAG_sweeper_threads;
95 if (FLAG_concurrent_sweeping)
return max_available - 1;
96 ASSERT(FLAG_parallel_sweeping);
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
void WaitForSweeperThread()
#define ASSERT(condition)
static int NumberOfThreads(int max_available)
void NoBarrier_Store(volatile Atomic32 *ptr, Atomic32 value)
SweeperThread(Isolate *isolate)
OldSpace * old_pointer_space()
void Release_Store(volatile Atomic32 *ptr, Atomic32 value)
Atomic32 Acquire_Load(volatile const Atomic32 *ptr)
void SweepInParallel(PagedSpace *space)
OldSpace * old_data_space()