Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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.

30 { \
31 Thread* __cur = Thread::Current(); \
32 ASSERT(__cur == nullptr || __cur == __thread); \
33 } while (0)

◆ 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.

20 { \
21 ASSERT(__thread->top() <= __thread->end()); \
22 ASSERT(__thread->end() <= __thread->true_end()); \
23 if (next_tlab_offset_ != kUninitialized) { \
24 ASSERT(__thread->end() == __thread->true_end()); \
25 ASSERT(next_tlab_offset_ > 0); \
26 } \
27 } while (0)