aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/dist.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-11-18 10:37:00 +0100
committerRickard Green <[email protected]>2010-11-18 10:37:00 +0100
commitde28ddf034eea6cf05f2e87eee1a3424c89b92f7 (patch)
tree47014a6347d1277e1f742e7e7e6ab180db8bf44f /erts/emulator/beam/dist.h
parent6a566d3a6eca81ef7fc68ed48240af18fa05f83d (diff)
parent9fb85488909f45d65409f3d8158398f6ad3bbbf2 (diff)
downloadotp-de28ddf034eea6cf05f2e87eee1a3424c89b92f7.tar.gz
otp-de28ddf034eea6cf05f2e87eee1a3424c89b92f7.tar.bz2
otp-de28ddf034eea6cf05f2e87eee1a3424c89b92f7.zip
Merge branch 'rickard/dist/OTP-8901' into dev
* rickard/dist/OTP-8901: Be less eager to set dist entry in busy state
Diffstat (limited to 'erts/emulator/beam/dist.h')
-rw-r--r--erts/emulator/beam/dist.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/dist.h b/erts/emulator/beam/dist.h
index 28cdd05c3c..64caf34550 100644
--- a/erts/emulator/beam/dist.h
+++ b/erts/emulator/beam/dist.h
@@ -99,7 +99,7 @@ typedef struct {
#define ERTS_DE_IS_CONNECTED(DEP) \
(!ERTS_DE_IS_NOT_CONNECTED((DEP)))
-#define ERTS_DE_BUSY_LIMIT (128*1024)
+#define ERTS_DE_BUSY_LIMIT (1024*1024)
extern int erts_dist_buf_busy_limit;
extern int erts_is_alive;
@@ -154,10 +154,10 @@ erts_dsig_prepare(ErtsDSigData *dsdp,
}
if (no_suspend) {
failure = ERTS_DSIG_PREP_CONNECTED;
- erts_smp_spin_lock(&dep->qlock);
+ erts_smp_mtx_lock(&dep->qlock);
if (dep->qflgs & ERTS_DE_QFLG_BUSY)
failure = ERTS_DSIG_PREP_WOULD_SUSPEND;
- erts_smp_spin_unlock(&dep->qlock);
+ erts_smp_mtx_unlock(&dep->qlock);
if (failure == ERTS_DSIG_PREP_WOULD_SUSPEND)
goto fail;
}