Merge pull request #10447 from JosJuice/resetcodeptr-on-decrement
Common/CodeBlock: Call ResetCodePtr when decreasing region_size
This commit is contained in:
commit
86dbf768b9
|
@ -104,6 +104,7 @@ public:
|
||||||
ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation.");
|
ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation.");
|
||||||
u8* child_region = region + region_size - child_size;
|
u8* child_region = region + region_size - child_size;
|
||||||
region_size -= child_size;
|
region_size -= child_size;
|
||||||
|
ResetCodePtr();
|
||||||
return child_region;
|
return child_region;
|
||||||
}
|
}
|
||||||
void AddChildCodeSpace(CodeBlock* child, size_t child_size)
|
void AddChildCodeSpace(CodeBlock* child, size_t child_size)
|
||||||
|
|
Loading…
Reference in New Issue