diff options
author | Sverker Eriksson <[email protected]> | 2014-09-30 17:00:37 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2014-09-30 20:52:48 +0200 |
commit | b7801392325784027e93e3488e7e28d596e6b658 (patch) | |
tree | 62d48d5cbf62bac466240a77627a73230942d55f /erts/emulator/test | |
parent | bfc6a9b3325969a7bc1d0c228766537049a4f637 (diff) | |
download | otp-b7801392325784027e93e3488e7e28d596e6b658.tar.gz otp-b7801392325784027e93e3488e7e28d596e6b658.tar.bz2 otp-b7801392325784027e93e3488e7e28d596e6b658.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')
0 files changed, 0 insertions, 0 deletions