aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Vinoski <[email protected]>2013-09-10 09:06:13 -0400
committerSteve Vinoski <[email protected]>2013-09-10 09:06:13 -0400
commit3e71527e639101c9482b98ebde1c3d98a0419ec5 (patch)
tree9c46e32fd2dd759e091fbd212c3f2818f2bfb5f2
parent2f2824519d13e7745c02efbc7c29c37a76885fee (diff)
downloadotp-3e71527e639101c9482b98ebde1c3d98a0419ec5.tar.gz
otp-3e71527e639101c9482b98ebde1c3d98a0419ec5.tar.bz2
otp-3e71527e639101c9482b98ebde1c3d98a0419ec5.zip
fix system_flag(scheduling_statistics,disable)
Clear the "enabled" flag for scheduling statistics when disable is specified.
-rw-r--r--erts/emulator/beam/erl_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 2439a46ab6..434d5ca147 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -7237,7 +7237,7 @@ erts_sched_stat_modify(int what)
break;
case ERTS_SCHED_STAT_MODIFY_DISABLE:
erts_smp_thr_progress_block();
- erts_sched_stat.enabled = 1;
+ erts_sched_stat.enabled = 0;
erts_smp_thr_progress_unblock();
break;
case ERTS_SCHED_STAT_MODIFY_CLEAR: