diff options
author | Rickard Green <[email protected]> | 2016-08-12 15:16:57 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-08-30 17:13:24 +0200 |
commit | cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0 (patch) | |
tree | 5d1bf5379206ffc4e7eb9ec071cbcb1122247620 /erts | |
parent | 925984e94f2c1933bb659dfb626c191982b7c8d4 (diff) | |
download | otp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.tar.gz otp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.tar.bz2 otp-cb8d2f366415fd46aeb87320f4fdf19adc9f0eb0.zip |
Fix is-dirty-cpu/is-dirty-io scheduler predicates
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/beam/erl_process.h | 4 |
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 |