aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-11-07 15:39:56 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-11-07 15:39:56 +0100
commit7e35f3585ae396b7e19a4a5d09f1b378806d523a (patch)
tree50c9ef0e13f37b3c94d39e6a4c1f7609eaacf577 /erts/emulator
parent5dc64cffb084e8abc6e5908025833481331f38de (diff)
downloadotp-7e35f3585ae396b7e19a4a5d09f1b378806d523a.tar.gz
otp-7e35f3585ae396b7e19a4a5d09f1b378806d523a.tar.bz2
otp-7e35f3585ae396b7e19a4a5d09f1b378806d523a.zip
erts: remove debug variables in beam_bp
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_bp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_bp.c b/erts/emulator/beam/beam_bp.c
index 773baad01f..c90795c343 100644
--- a/erts/emulator/beam/beam_bp.c
+++ b/erts/emulator/beam/beam_bp.c
@@ -612,9 +612,13 @@ static void bp_hash_delete(bp_time_hash_t *hash) {
static void bp_time_diff(bp_data_time_item_t *item, /* out */
process_breakpoint_time_t *pbt, /* in */
Uint ms, Uint s, Uint us) {
- int dms,ds,dus;
+ int ds,dus;
+#ifdef DEBUG
+ int dms;
+
dms = ms - pbt->ms;
+#endif
ds = s - pbt->s;
dus = us - pbt->us;
@@ -622,7 +626,9 @@ static void bp_time_diff(bp_data_time_item_t *item, /* out */
* this is ok.
*/
+#ifdef DEBUG
ASSERT(dms >= 0 || ds >= 0 || dus >= 0);
+#endif
if (dus < 0) {
dus += 1000000;