Skip to content

Commit 7fc744b

Browse files
committed
[cling] Temporary - memleaking - do not clear ClingMMapper
1 parent 286a203 commit 7fc744b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interpreter/cling/lib/Interpreter/IncrementalJIT.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace {
7070
}
7171
};
7272

73-
ClingMMapper MMapperInstance;
73+
ClingMMapper* MMapperInstance = new ClingMMapper();
7474

7575
// A memory manager for Cling that reserves memory for code and data sections
7676
// to keep them contiguous for the emission of one module. This is required
@@ -133,7 +133,7 @@ namespace {
133133
AllocInfo m_RWData;
134134

135135
public:
136-
ClingMemoryManager() : Super(&MMapperInstance) {}
136+
ClingMemoryManager() : Super(MMapperInstance) {}
137137

138138
uint8_t* allocateCodeSection(uintptr_t Size, unsigned Alignment,
139139
unsigned SectionID,

0 commit comments

Comments
 (0)