aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2016-08-12 15:16:57 +0200
committerRickard Green <[email protected]>2016-08-30 17:13:24 +0200
commitcb8d2f366415fd46aeb87320f4fdf19adc9f0eb0 (patch)
tree5d1bf5379206ffc4e7eb9ec071cbcb1122247620 /erts/emulator/beam/erl_process.h
parent925984e94f2c1933bb659dfb626c191982b7c8d4 (diff)
downloadotp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.tar.gz
otp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.tar.bz2
otp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.zip
Fix is-dirty-cpu/is-dirty-io scheduler predicates
Diffstat (limited to 'erts/emulator/beam/erl_process.h')
-rw-r--r--erts/emulator/beam/erl_process.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.h b/erts/emulator/beam/erl_process.h
index 94c13bb948..109d66012a 100644
--- a/erts/emulator/beam/erl_process.h
+++ b/erts/emulator/beam/erl_process.h
@@ -1549,9 +1549,9 @@ extern int erts_system_profile_ts_type;
#define ERTS_SCHEDULER_IS_DIRTY(ESDP) \
((ESDP)->dirty_no.s.num != 0)
#define ERTS_SCHEDULER_IS_DIRTY_CPU(ESDP) \
- ((ESDP)->dirty_no.s.type == 0)
+ (ERTS_SCHEDULER_IS_DIRTY((ESDP)) & ((ESDP)->dirty_no.s.type == 0))
#define ERTS_SCHEDULER_IS_DIRTY_IO(ESDP) \
- ((ESDP)->dirty_no.s.type == 1)
+ (ERTS_SCHEDULER_IS_DIRTY((ESDP)) & ((ESDP)->dirty_no.s.type == 1))
#else
#define ERTS_SCHEDULER_IS_DIRTY(ESDP) 0
#define ERTS_SCHEDULER_IS_DIRTY_CPU(ESDP) 0