diff options
author | Rickard Green <[email protected]> | 2016-03-29 14:54:24 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2016-03-29 14:54:24 +0200 |
commit | 96a0a707c6a7ba7ce9d6668705ca10c66666a8c3 (patch) | |
tree | 9f55aa77dae8b5875358fab76338dc3ec3c6cbba /erts/emulator/beam/beam_bp.c | |
parent | 60479cec6169d3d3495f5e8e6cadee30d22a4d60 (diff) | |
parent | ab884c3fdda00479d636de82d68ffbd8628c5c20 (diff) | |
download | otp-96a0a707c6a7ba7ce9d6668705ca10c66666a8c3.tar.gz otp-96a0a707c6a7ba7ce9d6668705ca10c66666a8c3.tar.bz2 otp-96a0a707c6a7ba7ce9d6668705ca10c66666a8c3.zip |
Merge branch 'rickard/improve-psd/OTP-13428'
* rickard/improve-psd/OTP-13428:
Improve process/port specific data management
Diffstat (limited to 'erts/emulator/beam/beam_bp.c')
-rw-r--r-- | erts/emulator/beam/beam_bp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/beam/beam_bp.c b/erts/emulator/beam/beam_bp.c index 5d471d168b..74c9d3ee53 100644 --- a/erts/emulator/beam/beam_bp.c +++ b/erts/emulator/beam/beam_bp.c @@ -974,7 +974,7 @@ erts_trace_time_call(Process* c_p, BeamInstr* I, BpDataTime* bdt) if (pbt == 0) { /* First call of process to instrumented function */ pbt = Alloc(sizeof(process_breakpoint_time_t)); - (void) ERTS_PROC_SET_CALL_TIME(c_p, ERTS_PROC_LOCK_MAIN, pbt); + (void) ERTS_PROC_SET_CALL_TIME(c_p, pbt); } else { ASSERT(pbt->pc); /* add time to previous code */ @@ -1598,9 +1598,7 @@ bp_time_unref(BpDataTime* bdt) h_p = erts_pid2proc(NULL, 0, item->pid, ERTS_PROC_LOCK_MAIN); if (h_p) { - pbt = ERTS_PROC_SET_CALL_TIME(h_p, - ERTS_PROC_LOCK_MAIN, - NULL); + pbt = ERTS_PROC_SET_CALL_TIME(h_p, NULL); if (pbt) { Free(pbt); } |