Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
76c7d503
Commit
76c7d503
authored
Aug 22, 2016
by
Marius Wachtler
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1336 from undingen/llvm_free_object_files
MCJIT: free loaded objects
parents
03246069
a36654a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
llvm_patches/0013-MCJIT-free-loaded-objects.patch
llvm_patches/0013-MCJIT-free-loaded-objects.patch
+29
-0
No files found.
llvm_patches/0013-MCJIT-free-loaded-objects.patch
0 → 100644
View file @
76c7d503
From 1296ca8841c3725043d49eff5b589805f95129b3 Mon Sep 17 00:00:00 2001
From: Marius Wachtler <undingen@gmail.com>
Date: Mon, 22 Aug 2016 14:34:40 +0100
Subject: [PATCH] MCJIT: free loaded objects
---
lib/ExecutionEngine/MCJIT/MCJIT.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index e500d3d..17d2145 100644
--- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -223,6 +223,12 @@
void MCJIT::finalizeLoadedModules() {
// Set page permissions.
MemMgr.finalizeMemory();
+
+ // Pyston change: free loaded objects
+ for (auto &Obj : LoadedObjects)
+ if (Obj)
+ NotifyFreeingObject(*Obj);
+ LoadedObjects.clear();
}
// FIXME: Rename this.
--
1.9.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment