Skip to content
Permalink
Browse files
Merge pull request #10447 from JosJuice/resetcodeptr-on-decrement
Common/CodeBlock: Call ResetCodePtr when decreasing region_size
  • Loading branch information
JMC47 committed Feb 13, 2022
2 parents eed7d3b + 989bdb8 commit 86dbf76
Showing 1 changed file with 1 addition and 0 deletions.
@@ -104,6 +104,7 @@ class CodeBlock : public T
ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation.");
u8* child_region = region + region_size - child_size;
region_size -= child_size;
ResetCodePtr();
return child_region;
}
void AddChildCodeSpace(CodeBlock* child, size_t child_size)

0 comments on commit 86dbf76

Please sign in to comment.