OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:FakeStack
(Results
1 - 6
of
6
) sorted by null
/external/compiler-rt/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
...]
/external/compiler-rt/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);
128
// Poison the entire
FakeStack
's shadow with the magic value.
158
FakeStack
() { }
170
FakeStack
*GetTLSFakeStack();
171
void SetTLSFakeStack(
FakeStack
*fs)
[
all
...]
asan_thread.h
87
FakeStack
*t = fake_stack_;
97
FakeStack
*fake_stack() {
123
FakeStack
*AsyncSignalSafeLazyInitFakeStack();
136
FakeStack
*fake_stack_;
asan_thread.cc
123
// We want to create the
FakeStack
lazyly on the first use, but not eralier
125
FakeStack
*AsanThread::AsyncSignalSafeLazyInitFakeStack() {
127
if (stack_size == 0) // stack_size is not yet available, don't use
FakeStack
.
145
fake_stack_ =
FakeStack
::Create(stack_size_log);
/external/llvm/lib/Transforms/Instrumentation/
AddressSanitizer.cpp
[
all
...]
Completed in 64 milliseconds