diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-19 02:16:57 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-19 02:16:57 -0400 |
commit | e75b16cf93ebbc1ce758d3ea6b2923e8b2457c68 (patch) | |
tree | ddb2db27ff4299e351af1beda5f6fd67c3f42db4 /src/network/setsockopt.c | |
parent | 9d15d5e7533738f3e80f1aeecb4e30f8c9db1670 (diff) | |
download | musl-e75b16cf93ebbc1ce758d3ea6b2923e8b2457c68.tar.gz musl-e75b16cf93ebbc1ce758d3ea6b2923e8b2457c68.tar.xz musl-e75b16cf93ebbc1ce758d3ea6b2923e8b2457c68.zip |
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/network/setsockopt.c')
0 files changed, 0 insertions, 0 deletions