Skip to content

Commit 6cb45ef

Browse files
yuyichaotkelman
authored andcommitted
Try to fix infinite loop in windows memory manager. Close #7942
(cherry picked from commit e4ccd13) ref #12248
1 parent eebb804 commit 6cb45ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/debuginfo.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,8 @@ class JITMemoryManagerWin : public JITMemoryManager {
673673
virtual uint8_t *getGOTBase() const { return JMM->getGOTBase(); }
674674
virtual uint8_t *startFunctionBody(const Function *F,
675675
uintptr_t &ActualSize) {
676+
if (ActualSize == 0)
677+
ActualSize += 64;
676678
ActualSize += 48;
677679
uint8_t *mem = JMM->startFunctionBody(F,ActualSize);
678680
ActualSize -= 48;

0 commit comments

Comments
 (0)