diff options
author | Sverker Eriksson <[email protected]> | 2014-09-30 17:00:37 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-01-21 16:08:28 +0100 |
commit | 51d2888163b230836c16944f54ca3a3840a73ad2 (patch) | |
tree | c4d359576cb0d6f0728745cdb2fd9837d54283a1 /erts/emulator/test/port_SUITE.erl | |
parent | 57d819805eb032605c64a0128dd70955d7aa085a (diff) | |
download | otp-51d2888163b230836c16944f54ca3a3840a73ad2.tar.gz otp-51d2888163b230836c16944f54ca3a3840a73ad2.tar.bz2 otp-51d2888163b230836c16944f54ca3a3840a73ad2.zip |
erts: Fix race between port_set_data, port_get_data and port termination
Always update prt->data with atomic xchg-op.
Check for NULL data to detect racing port terminator.
Use NULL, as THE_NON_VALUE can be a valid pointer on debug VM.
Diffstat (limited to 'erts/emulator/test/port_SUITE.erl')
0 files changed, 0 insertions, 0 deletions