diff options
author | Sverker Eriksson <[email protected]> | 2017-08-24 17:20:21 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-11-15 20:10:33 +0100 |
commit | d736e87ff94ab8191f33dca55516e6c1d440b915 (patch) | |
tree | 900fd5ccbfbaae7e24bde62d66e9a43e1bd6b771 /erts/emulator/beam/dist.c | |
parent | 5857245406584b8bfcbdf0be450ad494a992d5c8 (diff) | |
download | otp-d736e87ff94ab8191f33dca55516e6c1d440b915.tar.gz otp-d736e87ff94ab8191f33dca55516e6c1d440b915.tar.bz2 otp-d736e87ff94ab8191f33dca55516e6c1d440b915.zip |
Add optimistic DFLAG_DIST_HOPEFULLY for pending connections
to avoid tuple fallbacks for export funs and bitstrings.
ToDo: Re-encode if receiver turn out to be erl_interface/jinterface.
Diffstat (limited to 'erts/emulator/beam/dist.c')
-rw-r--r-- | erts/emulator/beam/dist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c index 6d2e907f18..7877865ad4 100644 --- a/erts/emulator/beam/dist.c +++ b/erts/emulator/beam/dist.c @@ -3443,7 +3443,7 @@ BIF_RETTYPE new_connection_id_1(BIF_ALIST_1) conn_id = dep->connection_id; else if (dep->status == 0) { dep->status = ERTS_DE_SFLG_PENDING; - dep->flags = DFLAG_DIST_MANDATORY | DFLAG_PENDING_CONNECTION; + dep->flags = (DFLAG_DIST_MANDATORY | DFLAG_DIST_HOPEFULLY); dep->connection_id++; dep->connection_id &= ERTS_DIST_CON_ID_MASK; conn_id = dep->connection_id; |