[pypy-commit] pypy portable-threadlocal: Idea: group in a raw struct all thread-local variables, including a
arigo
noreply at buildbot.pypy.org
Sat Nov 22 18:31:19 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: portable-threadlocal
Changeset: r74631:cc7a1b2e6249
Date: 2014-11-22 11:47 +0100
http://bitbucket.org/pypy/pypy/changeset/cc7a1b2e6249/
Log: Idea: group in a raw struct all thread-local variables, including a
pointer to errno and the thread ident (for fast access). Then we
basically pass into the jit assembler a pointer to this raw struct.
So the extra cost is a "get the address of this thread-local struct"
before entering jitted code, once.
Benefits include: it would work on dlopened libraries, on OS/X, and
on Windows.
More information about the pypy-commit
mailing list