[llvm-dev] OrcV1 removal
Andres Freund via llvm-dev
llvm-dev at lists.llvm.org
Wed Sep 16 15:13:31 PDT 2020
Hi,
On 2020-09-16 14:53:44 -0700, Lang Hames wrote:
> > I assume it is not legal to use the same resource tracker with two
> > different JITDylib's?
>
>
> That's correct -- ResourceTrackers are bound to the JITDylib they're
> created from. They should assert if you use them with the wrong JITDylib,
> though I'm not sure how good the coverage on those asserts are yet.
>
> I think this system could be generalized to enable cross-dylib tracking at
> the cost of a few dozen extra bytes per tracker. Do you have a use-case for
> this?
I was wondering about it because the function comments didn't mention it
(or at least I didn't see it), and not "implicitly" prevent via type
system. I don't really have a use case.
Greetings,
Andres Freund
More information about the llvm-dev
mailing list