http://llvm.org/bugs/show_bug.cgi?id=21963
Bug ID: 21963
Summary: static maps preclude multiple interpreter instances
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Interpreter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13573
--> http://llvm.org/bugs/attachment.cgi?id=13573&action=edit
patch
the Interpreter class looks up external functions with a static map, keyed on
Function *. this makes it impossible to reliably have multiple Interpreter
instances in the same process. when I expose some callback to one instance, do
my thing and tear it all down, then expose some other callback to another
instance that just happens to get the same Function pointer as the earlier one,
hilarity ensues.
this is not a problem if those maps are in the Interpreter instance. patch
attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs