Skip to content

List & stack allocator#2

Open
Annarrchy wants to merge 4 commits into
mainfrom
List-&-StackAllocator
Open

List & stack allocator#2
Annarrchy wants to merge 4 commits into
mainfrom
List-&-StackAllocator

Conversation

@Annarrchy

Copy link
Copy Markdown
Owner

No description provided.

@Annarrchy Annarrchy requested a review from FlyLikeSoarin June 18, 2022 14:53
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp Outdated
Comment thread stackallocator.cpp
@@ -12,7 +12,10 @@ class StackStorage {

char* allocate(int64_t n, const int64_t align) {
char* copy = finish;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

finish
делаешь align finish'а и запоминаешь
finish += n;
Возращаешь значение которое запомнила

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants