Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
53ad5ac9
Commit
53ad5ac9
authored
Dec 26, 2025
by
PanZezhong
Browse files
issue/809 add more size classes
parent
ced3fc03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/infinicore/context/allocators/pinnable_block_allocator.cc
...infinicore/context/allocators/pinnable_block_allocator.cc
+5
-0
No files found.
src/infinicore/context/allocators/pinnable_block_allocator.cc
View file @
53ad5ac9
...
@@ -19,11 +19,16 @@ inline size_t align_up(size_t size, size_t alignment) {
...
@@ -19,11 +19,16 @@ inline size_t align_up(size_t size, size_t alignment) {
PinnableBlockAllocator
::
PinnableBlockAllocator
(
Device
device
)
PinnableBlockAllocator
::
PinnableBlockAllocator
(
Device
device
)
:
device_
(
device
)
{
:
device_
(
device
)
{
size_classes_
=
{
size_classes_
=
{
{
32
*
1024
,
{}},
// 32 KB
{
256
*
1024
,
{}},
// 256 KB
{
256
*
1024
,
{}},
// 256 KB
{
1
*
1024
*
1024
,
{}},
// 1 MB
{
1
*
1024
*
1024
,
{}},
// 1 MB
{
2
*
1024
*
1024
,
{}},
// 2 MB
{
4
*
1024
*
1024
,
{}},
// 4 MB
{
4
*
1024
*
1024
,
{}},
// 4 MB
{
8
*
1024
*
1024
,
{}},
// 8 MB
{
16
*
1024
*
1024
,
{}},
// 16 MB
{
16
*
1024
*
1024
,
{}},
// 16 MB
{
32
*
1024
*
1024
,
{}},
// 32 MB
{
64
*
1024
*
1024
,
{}},
// 64 MB
{
64
*
1024
*
1024
,
{}},
// 64 MB
{
128
*
1024
*
1024
,
{}},
// 128 MB
{
256
*
1024
*
1024
,
{}},
// 256 MB
{
256
*
1024
*
1024
,
{}},
// 256 MB
};
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment