Home
last modified time | relevance | path

Searched refs:slab (Results 1 – 25 of 43) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/common/
DSlabAllocator.cpp45 Slab* slab = this->next; in ~SentinelSlab() local
46 while (slab != nullptr) { in ~SentinelSlab()
47 Slab* next = slab->next; in ~SentinelSlab()
48 ASSERT(slab->blocksInUse == 0); in ~SentinelSlab()
50 delete[] slab->allocation; in ~SentinelSlab()
51 slab = next; in ~SentinelSlab()
107 bool SlabAllocatorImpl::IsNodeInSlab(Slab* slab, IndexLinkNode* node) const { in IsNodeInSlab() argument
108 char* firstObjectPtr = reinterpret_cast<char*>(slab) + mSlabBlocksOffset; in IsNodeInSlab()
114 void SlabAllocatorImpl::PushFront(Slab* slab, IndexLinkNode* node) const { in PushFront() argument
115 ASSERT(IsNodeInSlab(slab, node)); in PushFront()
[all …]
DSlabAllocator.h114 bool IsNodeInSlab(Slab* slab, IndexLinkNode* node) const;
118 void PushFront(Slab* slab, IndexLinkNode* node) const;
119 IndexLinkNode* PopFront(Slab* slab) const;
155 void Prepend(Slab* slab);
/third_party/libuv/test/
Dtest-udp-try-send.c43 static char slab[65536]; in alloc_cb() local
45 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
46 buf->base = slab; in alloc_cb()
47 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-send-immediate.c43 static char slab[65536]; in alloc_cb() local
45 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
46 buf->base = slab; in alloc_cb()
47 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-multicast-join.c48 static char slab[65536]; in alloc_cb() local
50 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
51 buf->base = slab; in alloc_cb()
52 buf->len = sizeof(slab); in alloc_cb()
Dtest-close-fd.c31 static char slab[1]; in alloc_cb() local
32 buf->base = slab; in alloc_cb()
33 buf->len = sizeof(slab); in alloc_cb()
Dtest-not-readable-nor-writable-on-read-error.c44 static char slab[64]; in alloc_cb() local
45 buf->base = slab; in alloc_cb()
46 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-multicast-join6.c60 static char slab[65536]; in alloc_cb() local
62 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
63 buf->base = slab; in alloc_cb()
64 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-send-and-recv.c47 static char slab[65536]; in alloc_cb() local
49 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
50 buf->base = slab; in alloc_cb()
51 buf->len = sizeof(slab); in alloc_cb()
Dtest-watcher-cross-stop.c37 static char slab[1]; variable
43 buf->base = slab; in alloc_cb()
44 buf->len = sizeof(slab); in alloc_cb()
Dtest-readable-on-eof.c44 static char slab[64]; in alloc_cb() local
45 buf->base = slab; in alloc_cb()
46 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-send-unreachable.c47 static char slab[65536]; in alloc_cb() local
49 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
50 buf->base = slab; in alloc_cb()
51 buf->len = sizeof(slab); in alloc_cb()
Dblackhole-server.c66 static char slab[65536]; in alloc_cb() local
67 buf->base = slab; in alloc_cb()
68 buf->len = sizeof(slab); in alloc_cb()
Dtest-tcp-shutdown-after-write.c55 static char slab[64]; in alloc_cb() local
56 buf->base = slab; in alloc_cb()
57 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-connect6.c46 static char slab[65536]; in alloc_cb() local
48 ASSERT_LE(suggested_size, sizeof(slab)); in alloc_cb()
49 buf->base = slab; in alloc_cb()
50 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-connect.c46 static char slab[65536]; in alloc_cb() local
48 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
49 buf->base = slab; in alloc_cb()
50 buf->len = sizeof(slab); in alloc_cb()
Dbenchmark-udp-pummel.c65 static char slab[65536]; in alloc_cb() local
66 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
67 buf->base = slab; in alloc_cb()
68 buf->len = sizeof(slab); in alloc_cb()
Dtest-osx-select.c34 static char slab[1024]; in alloc_cb() local
35 buf->base = slab; in alloc_cb()
36 buf->len = sizeof(slab); in alloc_cb()
Dtest-tcp-read-stop-start.c59 static char slab[65536]; in on_alloc() local
60 buf->base = slab; in on_alloc()
61 buf->len = sizeof(slab); in on_alloc()
Dtest-tcp-write-to-half-open-connection.c71 static char slab[1024]; in alloc_cb() local
72 buf->base = slab; in alloc_cb()
73 buf->len = sizeof(slab); in alloc_cb()
Dbenchmark-ping-udp.c53 static char slab[64 * 1024]; in buf_alloc() local
54 buf->base = slab; in buf_alloc()
55 buf->len = sizeof(slab); in buf_alloc()
Dtest-udp-alloc-cb-fail.c47 static char slab[65536]; in sv_alloc_cb() local
49 buf->base = slab; in sv_alloc_cb()
50 buf->len = sizeof(slab); in sv_alloc_cb()
Dtest-tcp-close-accept.c82 static char slab[1]; in alloc_cb() local
83 buf->base = slab; in alloc_cb()
84 buf->len = sizeof(slab); in alloc_cb()
Dtest-udp-open.c86 static char slab[65536]; in alloc_cb() local
87 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb()
88 buf->base = slab; in alloc_cb()
89 buf->len = sizeof(slab); in alloc_cb()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/docs/
DALLOCATION.rst66 this cheap, the Cfg includes a slab allocator from which these objects are
70 providing the container with an allocator that uses the Cfg-local slab
72 store a pointer to the slab allocator in thread-local storage (TLS). This is
91 This requires maintaining the proper slab allocator pointer in TLS.
94 slab allocator into its own TLS. This is used as the Cfg is built within the
99 When the translation thread grabs a new Cfg pointer, it installs the Cfg's slab
101 assembly buffer, it must take care not to use the Cfg's slab allocator. If
102 there is a slab allocator for the assembler buffer, a pointer to it can also be
106 the Cfg's slab allocator, and clears the allocator pointer from its TLS.

12