[llvm-commits] VM hooks when locking

Owen Anderson resistor at mac.com
Fri Jul 31 01:25:18 PDT 2009


On Jul 31, 2009, at 12:24 AM, Nicolas Geoffray wrote:
> Another solution would be to only call the hooks with the JIT lock.  
> The
> other locks are all internals and won't block the threads too long.
> Would you prefer that solution? That requires to track all places  
> where
> the JIT lock is used, so it's more error-prone.

I like this solution better in general, and I don't think it needs to  
be error-prone.  Why not introduce a little wrapper class for the JIT  
lock which calls the hooks before and after locking the real lock?

--Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090731/dc733182/attachment.bin>


More information about the llvm-commits mailing list