summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-12-02 12:05:44 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2015-01-13 13:43:28 +0000
commitd1d1b206b07977fe0e75b0254e5b50c215c97803 (patch)
tree2926e9c04304e3ef1d016a84152a3e27cd486fc1 /include/qemu
parentbc521696607c5348fcd8a9e57b408d0ac0dbe2f8 (diff)
downloadhqemu-d1d1b206b07977fe0e75b0254e5b50c215c97803.zip
hqemu-d1d1b206b07977fe0e75b0254e5b50c215c97803.tar.gz
coroutine-ucontext: use __thread
ELF thread local storage is about 10% faster on tests/test-coroutine's perf/cost test. The timing on my machine is 190ns per iteration with pthread TLS, 170 with ELF TLS. Based on a patch by Kevin Wolf and Peter Lieven, but redone to follow the model of coroutine-win32.c (including the important "noinline" attribute!). Platforms without thread-local storage (OpenBSD probably?) will need a new-enough GCC for this to compile, in order to use the same emutls support that Windows already relies on. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 1417518350-6167-2-git-send-email-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud