Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
1 change: 1 addition & 0 deletions Source/Core/Common/CodeBlock.h
Expand Up @@ -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)
Expand Down

0 comments on commit 86dbf76

Please sign in to comment.