Add LOCK_CLOSURE macro for use in C--, which inlines the capability check.
authorEdward Z. Yang <ezyang@mit.edu>
Wed, 10 Jul 2013 20:10:32 +0000 (13:10 -0700)
committerEdward Z. Yang <ezyang@mit.edu>
Wed, 10 Jul 2013 20:10:32 +0000 (13:10 -0700)
commit3a8c50111d5a92594f5c2f1b2b96a7c1cfab82eb
treec9a7671c92722c68953a5411c2f49a359923cdf2
parent70e20631742e516c6a11c3c112fbd5b4a08c15ac
Add LOCK_CLOSURE macro for use in C--, which inlines the capability check.

This patch also tweaks lockClosure to be INLINE_HEADER, so C-- clients
don't accidentally use them and updates some other code which locks closures
to do the capability check.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
includes/rts/storage/SMPClosureOps.h
rts/PrimOps.cmm