[LLVMbugs] [Bug 3083] New: JIT: provide Garbage Collector callback if run out of stubs
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Nov 17 13:27:08 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3083
Summary: JIT: provide Garbage Collector callback if run out of
stubs
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu, nicolas.geoffray at lip6.fr
Created an attachment (id=2215)
--> (http://llvm.org/bugs/attachment.cgi?id=2215)
testcase to show problem
Apply the attached patch to example/HowToUseJIT, and run:
"We just constructed this LLVM module:
; ModuleID = 'test'
define i32 @add1(i32 %AnArg) {
EntryBlock:
%addresult = add i32 1, %AnArg ; <i32> [#uses=1]
ret i32 %addresult
}
define i32 @foo() {
EntryBlock:
%add1 = tail call i32 @add1(i32 10) ; <i32> [#uses=1]
ret i32 %add1
}
Running foo: JIT ran out of memory for function stubs!
Aborted"
The JIT could provide a callback when it runs out of memory, so that the
Garbage Collector can be run, that could possibly free up some memory.
This would especially be useful for VMKit.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list