summaryrefslogtreecommitdiff
path: root/src/thread/i386/tls.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-19 02:16:57 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-19 02:16:57 -0400
commite75b16cf93ebbc1ce758d3ea6b2923e8b2457c68 (patch)
treeddb2db27ff4299e351af1beda5f6fd67c3f42db4 /src/thread/i386/tls.s
parent9d15d5e7533738f3e80f1aeecb4e30f8c9db1670 (diff)
downloadmusl-e75b16cf93ebbc1ce758d3ea6b2923e8b2457c68.tar.gz
change dynamic TLS installation strategy to optimize access
previously, accesses to dynamic TLS had to check two conditions before being able to use a dtv slot: (1) that the module index was within the bounds of the current dtv size, and (2) that the dynamic tls for the requested module index was already installed in the dtv. this commit changes the installation strategy so that, whenever an attempt is made to access dynamic TLS that's not yet installed in the dtv, the dynamic TLS for all lower-index modules is also installed. thus it provides a new invariant: if a given module index is within the bounds of the current dtv size, we automatically know that its TLS is installed and directly available. the requirement that the second condition (above) be checked is eliminated.
Diffstat (limited to 'src/thread/i386/tls.s')
0 files changed, 0 insertions, 0 deletions