Flutter Engine
The Flutter Engine
Namespaces | Macros
sampler.cc File Reference
#include <math.h>
#include <algorithm>
#include "vm/heap/safepoint.h"
#include "vm/heap/sampler.h"
#include "vm/isolate.h"
#include "vm/lockers.h"
#include "vm/os.h"
#include "vm/random.h"
#include "vm/thread.h"
#include "vm/thread_registry.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define ASSERT_TLAB_BOUNDARIES_VALID(__thread)
 
#define ASSERT_THREAD_STATE(__thread)
 

Macro Definition Documentation

◆ ASSERT_THREAD_STATE

#define ASSERT_THREAD_STATE (   __thread)
Value:
do { \
Thread* __cur = Thread::Current(); \
ASSERT(__cur == nullptr || __cur == __thread); \
} while (0)

Definition at line 29 of file sampler.cc.

◆ ASSERT_TLAB_BOUNDARIES_VALID

#define ASSERT_TLAB_BOUNDARIES_VALID (   __thread)
Value:
do { \
ASSERT(__thread->top() <= __thread->end()); \
ASSERT(__thread->end() <= __thread->true_end()); \
if (next_tlab_offset_ != kUninitialized) { \
ASSERT(__thread->end() == __thread->true_end()); \
ASSERT(next_tlab_offset_ > 0); \
} \
} while (0)

Definition at line 19 of file sampler.cc.