aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bif.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2012-12-21 03:10:21 +0100
committerRickard Green <[email protected]>2013-01-23 14:36:16 +0100
commite3373f0602282040ae7a75b5b7ebbdcae2789c17 (patch)
tree6bf3274a0c0704770ee702c4ab60a32c293984bf /erts/emulator/beam/bif.h
parentb4d9950e94ab0aedb3a2d2944a8b40f94f738f99 (diff)
downloadotp-e3373f0602282040ae7a75b5b7ebbdcae2789c17.tar.gz
otp-e3373f0602282040ae7a75b5b7ebbdcae2789c17.tar.bz2
otp-e3373f0602282040ae7a75b5b7ebbdcae2789c17.zip
Bump reductions also for immediate driver calls
Diffstat (limited to 'erts/emulator/beam/bif.h')
-rw-r--r--erts/emulator/beam/bif.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/bif.h b/erts/emulator/beam/bif.h
index 71f232035d..4e456988a3 100644
--- a/erts/emulator/beam/bif.h
+++ b/erts/emulator/beam/bif.h
@@ -59,6 +59,8 @@ do { \
} while(0)
#define BUMP_REDS(p, gc) do { \
+ ASSERT(p); \
+ ERTS_SMP_LC_ASSERT(ERTS_PROC_LOCK_MAIN & erts_proc_lc_my_proc_locks(p));\
(p)->fcalls -= (gc); \
if ((p)->fcalls < 0) { \
if (!ERTS_PROC_GET_SAVED_CALLS_BUF((p))) \