[LLVMbugs] [Bug 20097] New: ExecutionEngine can fail suddenly on out of memory errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 21 17:49:14 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20097

            Bug ID: 20097
           Summary: ExecutionEngine can fail suddenly on out of memory
                    errors
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sstewartgallus00 at mylangara.bc.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It's perfectly okay for a normal compiler to crash on out of memory errors but
I think a JIT should be a little more robust. Maybe the LLVM developers might
not want to develop for this very difficult use case though and if not than
they should VERY CLEARLY document that they do not intend on creating JIT that
can handle out of memory conditions. But supposing they do want to develop the
JIT for this use case than...

In src/llvm/lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h
InitializeCriticalSection is used but it can throw an exception on low memory
conditions and InitializeCriticalSectionAndSpinCount should be used instead (if
LLVM developers plan to support the arduous task of handling out of memory
conditions).

I can't actual find a use for __itt_mutex_init (which is defined to
InitializeCriticalSection) in the sources though so this bug appears to be
purely academic for now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140622/10e733a8/attachment.html>


More information about the llvm-bugs mailing list