Definition at line 853 of file thread_test.cc.
◆ AllocAndGCTask()
dart::AllocAndGCTask::AllocAndGCTask |
( |
IsolateGroup * |
isolate_group, |
|
|
Monitor * |
done_monitor, |
|
|
bool * |
done |
|
) |
| |
|
inline |
Definition at line 855 of file thread_test.cc.
856 : isolate_group_(isolate_group),
857 done_monitor_(done_monitor),
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
◆ Run()
virtual void dart::AllocAndGCTask::Run |
( |
| ) |
|
|
inlinevirtual |
Implements dart::ThreadPool::Task.
Definition at line 860 of file thread_test.cc.
860 {
861 const bool kBypassSafepoint = false;
863 kBypassSafepoint);
864 {
866 StackZone stack_zone(thread);
867 Zone* zone = stack_zone.GetZone();
870 EXPECT(old_str.Equals(
"old"));
871 }
873
874 {
875 MonitorLocker ml(done_monitor_);
877 *done_ = true;
878 ml.Notify();
879 }
880 }
void CollectAllGarbage(GCReason reason=GCReason::kFull, bool compact=false)
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
static Thread * Current()
static void ExitIsolateGroupAsHelper(bool bypass_safepoint)
static bool EnterIsolateGroupAsHelper(IsolateGroup *isolate_group, TaskKind kind, bool bypass_safepoint)
The documentation for this class was generated from the following file: