aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/Makefile
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2014-08-07 22:02:25 +0200
committerRickard Green <[email protected]>2014-08-07 23:45:59 +0200
commit18c03b13d1a53282e69160fa71a7195a11e84392 (patch)
treef2d65d851546d4d2af7a65f9dcd33eb0a5cb5933 /lib/inets/Makefile
parent1cbd897c43f0dab1275392a3736e4629c1f80243 (diff)
downloadotp-18c03b13d1a53282e69160fa71a7195a11e84392.tar.gz
otp-18c03b13d1a53282e69160fa71a7195a11e84392.tar.bz2
otp-18c03b13d1a53282e69160fa71a7195a11e84392.zip
Fix emigrate bug in erts_port_task_schedule()
While current run-queue lock is unlocked in the call to erts_check_emigration_need() from erts_port_task_schedule() the port can be migrated to another run-queue by another thread. The code in erts_port_task_schedule() needs to check if this has occurred when returning from erts_check_emigration_need(), and if so respect the migration decision. When this was not done, the thread calling erts_port_task_schedule() held the wrong run-queue lock which caused invalid updates of the port task queue. This bug was automatically fixed by the rewrites in the branch rickard/r16b/port-optimizations-fixes/OTP-10336 (commit 56cef897ca3ad2377e34a6ea5800a54a28cbeb6e) introduced in erts-5.10 and do not effect erts versions after that.
Diffstat (limited to 'lib/inets/Makefile')
0 files changed, 0 insertions, 0 deletions