Skip to content

JIT: provide Garbage Collector callback if run out of stubs #3455

@edwintorok

Description

@edwintorok
Bugzilla Link 3083
Resolution WONTFIX
Resolved on Nov 20, 2008 17:51
Version unspecified
OS Linux
Blocks llvm/llvm-bugzilla-archive#3084
Attachments testcase to show problem

Extended Description

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 ; [#uses=1]
ret i32 %addresult
}

define i32 @​foo() {
EntryBlock:
%add1 = tail call i32 @​add1(i32 10) ; [#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillawontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions