OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Slab
(Results
1 - 7
of
7
) sorted by null
/external/swiftshader/third_party/LLVM/lib/Support/
Allocator.cpp
44
/// StartNewSlab - Allocate a new
slab
and move the bump pointers over into
45
/// the new
slab
. Modifies CurPtr and End.
48
// to allocate more. Increase
slab
size to reduce mallocs and possibly memory
62
void BumpPtrAllocator::DeallocateSlabs(MemSlab *
Slab
) {
63
while (
Slab
) {
64
MemSlab *NextSlab =
Slab
->NextPtr;
68
sys::Memory::setRangeWritable(
Slab
+ 1,
Slab
->Size - sizeof(MemSlab));
69
memset(
Slab
+ 1, 0xCD,
Slab
->Size - sizeof(MemSlab))
[
all
...]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
Allocator.h
51
/// MemSlab - This structure lives at the beginning of every
slab
allocated by
68
virtual void Deallocate(MemSlab *
Slab
) = 0;
71
/// MallocSlabAllocator - The default
slab
allocator for the bump allocator
83
virtual void Deallocate(MemSlab *
Slab
);
99
/// allocate a separate
slab
.
107
/// CurSlab - The
slab
that we are currently allocating into.
111
/// CurPtr - The current pointer into the current
slab
. This points to the
112
/// next free byte in the
slab
.
115
/// End - The end of the current
slab
.
128
/// StartNewSlab - Allocate a new
slab
and move the bump pointers over int
[
all
...]
/external/swiftshader/third_party/LLVM/unittests/Support/
AllocatorTest.cpp
82
// Test allocating just over the
slab
size. This tests a bug where before the
87
// Fill the
slab
right up until the end pointer.
91
// If we don't allocate a new
slab
, then we will have overflowed.
96
// Mock
slab
allocator that returns slabs aligned on 4096 bytes. There is no
105
// Allocate space for the alignment, the
slab
, and a void* that goes right
106
// before the
slab
.
110
// Make the
slab
.
111
MemSlab *
Slab
= (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) &
113
Slab
->Size = Size;
114
Slab
->NextPtr = 0
[
all
...]
/external/llvm/unittests/Support/
AllocatorTest.cpp
103
// Test allocating just over the
slab
size. This tests a bug where before the
108
// Fill the
slab
right up until the end pointer.
112
// If we don't allocate a new
slab
, then we will have overflowed.
117
// Test allocating with a size larger than the initial
slab
size.
125
// Test requesting alignment that goes past the end of the current
slab
.
130
// Aligning the current
slab
pointer is likely to move it past the end of the
131
//
slab
, which would confuse any unsigned comparisons with the difference of
138
// Mock
slab
allocator that returns slabs aligned on 4096 bytes. There is no
147
// Allocate space for the alignment, the
slab
, and a void* that goes right
148
// before the
slab
[
all
...]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
AllocatorTest.cpp
103
// Test allocating just over the
slab
size. This tests a bug where before the
108
// Fill the
slab
right up until the end pointer.
112
// If we don't allocate a new
slab
, then we will have overflowed.
117
// Test allocating with a size larger than the initial
slab
size.
125
// Test requesting alignment that goes past the end of the current
slab
.
130
// Aligning the current
slab
pointer is likely to move it past the end of the
131
//
slab
, which would confuse any unsigned comparisons with the difference of
138
// Mock
slab
allocator that returns slabs aligned on 4096 bytes. There is no
147
// Allocate space for the alignment, the
slab
, and a void* that goes right
148
// before the
slab
[
all
...]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
JITMemoryManager.cpp
262
virtual void Deallocate(MemSlab *
Slab
);
276
/// LastSlab - This points to the last
slab
allocated and is used as the
302
/// last
slab
it allocated, so that subsequent allocations follow it.
314
/// should allocate a separate
slab
.
353
DEBUG(dbgs() << "JIT: Allocating another
slab
of memory for function.");
366
/// allocateNewCodeSlab - Helper method to allocate a new
slab
of code
368
/// FreeRangeHeader at the base of the
slab
.
372
// end of the
slab
.
519
MemSlab *
Slab
= (MemSlab*)B.base();
520
Slab
->Size = B.size()
[
all
...]
/external/jemalloc_new/include/jemalloc/internal/
size_classes.sh
73
# Compute smallest
slab
size that is an integer multiple of reg_size.
297
* pgs:
Slab
page count if a small bin size class, 0 otherwise.
Completed in 2228 milliseconds