aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-11-18 15:19:46 +0100
committerRickard Green <[email protected]>2011-12-01 09:35:23 +0100
commit8781932b3b8769b6f208ac7c00471122ec7dd055 (patch)
tree6f9e3a8bd496498615fc7f6bdc2df8ea90b81b16 /erts/emulator/beam/global.h
parentc23286a3b8d33a4e61b97896e1c713036bc17cb2 (diff)
downloadotp-8781932b3b8769b6f208ac7c00471122ec7dd055.tar.gz
otp-8781932b3b8769b6f208ac7c00471122ec7dd055.tar.bz2
otp-8781932b3b8769b6f208ac7c00471122ec7dd055.zip
Remove common run-queue in SMP case
The common run-queue implementation is removed since it is unused, untested, undocumented, unsupported, and only complicates the code. A spinlock used by the run-queue management sometimes got heavily contended. This code has now been rewritten, and the spinlock has been removed.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index ba0b96870e..b40bab9b33 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -204,7 +204,7 @@ erts_port_runq(Port *prt)
rq1 = rq2;
}
#else
- return erts_common_run_queue;
+ return ERTS_RUNQ_IX(0);
#endif
}