diff options
author | Sverker Eriksson <[email protected]> | 2012-08-31 18:03:53 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-08-31 18:03:53 +0200 |
commit | e7b04a638b7a02f03d6ac44cb559c5febc22a9a8 (patch) | |
tree | 08f56ced805c968607d6fae3725e7e8f220fa117 /erts/emulator/beam/erl_bif_trace.c | |
parent | 504653658791d46f0b4c60855377dc65585d1411 (diff) | |
download | otp-e7b04a638b7a02f03d6ac44cb559c5febc22a9a8.tar.gz otp-e7b04a638b7a02f03d6ac44cb559c5febc22a9a8.tar.bz2 otp-e7b04a638b7a02f03d6ac44cb559c5febc22a9a8.zip |
erts: Refactor naming regarding code_write_permission
The concept of code_write_permission is used by tracing as well
and is not specific to code_ix.
Diffstat (limited to 'erts/emulator/beam/erl_bif_trace.c')
-rw-r--r-- | erts/emulator/beam/erl_bif_trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_bif_trace.c b/erts/emulator/beam/erl_bif_trace.c index 764548d884..8d64397366 100644 --- a/erts/emulator/beam/erl_bif_trace.c +++ b/erts/emulator/beam/erl_bif_trace.c @@ -406,7 +406,7 @@ erts_get_default_trace_pattern(int *trace_pattern_is_on, struct trace_pattern_flags *trace_pattern_flags, Eterm *meta_tracer_pid) { - ERTS_SMP_LC_ASSERT(erts_is_code_ix_locked() || + ERTS_SMP_LC_ASSERT(erts_has_code_write_permission() || erts_smp_thr_progress_is_blocking()); if (trace_pattern_is_on) *trace_pattern_is_on = erts_default_trace_pattern_is_on; @@ -422,7 +422,7 @@ erts_get_default_trace_pattern(int *trace_pattern_is_on, int erts_is_default_trace_enabled(void) { - ERTS_SMP_LC_ASSERT(erts_is_code_ix_locked() || + ERTS_SMP_LC_ASSERT(erts_has_code_write_permission() || erts_smp_thr_progress_is_blocking()); return erts_default_trace_pattern_is_on; } @@ -1556,7 +1556,7 @@ erts_set_trace_pattern(Process*p, Eterm* mfa, int specified, int erts_finish_breakpointing(void) { - ERTS_SMP_LC_ASSERT(erts_is_code_ix_locked()); + ERTS_SMP_LC_ASSERT(erts_has_code_write_permission()); /* * Memory barriers will be issued for all processes *before* |