HomeSort by: relevance | last modified time | path
    Searched refs:FakeStack (Results 1 - 5 of 5) sorted by relevancy

  /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
asan_fake_stack_test.cc 12 // Tests for FakeStack.
28 TEST(FakeStack, FlagsSize) {
29 EXPECT_EQ(FakeStack::SizeRequiredForFlags(10), 1U << 5);
30 EXPECT_EQ(FakeStack::SizeRequiredForFlags(11), 1U << 6);
31 EXPECT_EQ(FakeStack::SizeRequiredForFlags(20), 1U << 15);
34 TEST(FakeStack, RequiredSize) {
36 // uptr alloc_size = FakeStack::RequiredSize(i);
39 EXPECT_EQ(FakeStack::RequiredSize(15), 365568U);
40 EXPECT_EQ(FakeStack::RequiredSize(16), 727040U);
41 EXPECT_EQ(FakeStack::RequiredSize(17), 1449984U)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_fake_stack.cc 12 // FakeStack is used to detect use-after-return bugs.
45 FakeStack *FakeStack::Create(uptr stack_size_log) {
53 FakeStack *res = reinterpret_cast<FakeStack *>(
54 flags()->uar_noreserve ? MmapNoReserveOrDie(size, "FakeStack")
55 : MmapOrDie(size, "FakeStack"));
58 VReport(1, "T%d: FakeStack created: %p -- %p stack_size_log: %zd; "
61 p + FakeStack::RequiredSize(stack_size_log), stack_size_log,
66 void FakeStack::Destroy(int tid)
    [all...]
asan_fake_stack.h 12 // ASan-private header for asan_fake_stack.cc, implements FakeStack.
37 // The FakeStack objects is allocated by a single mmap call and has no other
42 // FakeStack has kNumberOfSizeClasses (11) size classes, each size class
57 class FakeStack {
65 // CTOR: create the FakeStack as a single mmap-ed object.
66 static FakeStack *Create(uptr stack_size_log);
129 // Poison the entire FakeStack's shadow with the magic value.
159 FakeStack() { }
171 FakeStack *GetTLSFakeStack();
172 void SetTLSFakeStack(FakeStack *fs)
    [all...]
asan_thread.h 100 FakeStack *t = fake_stack_;
106 void StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, uptr size);
107 void FinishSwitchFiber(FakeStack *fake_stack_save, uptr *bottom_old,
115 FakeStack *fake_stack() {
141 FakeStack *AsyncSignalSafeLazyInitFakeStack();
165 FakeStack *fake_stack_;
asan_thread.cc 118 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom,
129 FakeStack *current_fake_stack = fake_stack_;
134 // if fake_stack_save is null, the fiber will die, delete the fakestack
139 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save,
192 // We want to create the FakeStack lazyly on the first use, but not eralier
194 FakeStack *AsanThread::AsyncSignalSafeLazyInitFakeStack() {
196 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack.
214 fake_stack_ = FakeStack::Create(stack_size_log);
521 t->StartSwitchFiber((FakeStack**)fakestacksave, (uptr)bottom, size);
525 void __sanitizer_finish_switch_fiber(void* fakestack,
    [all...]

Completed in 13 milliseconds