aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-10-31 14:40:33 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:00 +0100
commit8103fed4090e9f1457fb1705e9a4df0821f5db9b (patch)
tree8ed606e8774851fee2645012b1e948dc1bb88de0 /erts/emulator/sys
parentfd3aa9d63649084b345d0977fa121805f13c9d33 (diff)
downloadotp-8103fed4090e9f1457fb1705e9a4df0821f5db9b.tar.gz
otp-8103fed4090e9f1457fb1705e9a4df0821f5db9b.tar.bz2
otp-8103fed4090e9f1457fb1705e9a4df0821f5db9b.zip
ose,erts: Specify name for tsd keys
This simplified debugging on OSE and also limits the number of ppdata keys that are created when beam is restarted.
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r--erts/emulator/sys/unix/sys_float.c2
-rwxr-xr-xerts/emulator/sys/win32/sys.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/unix/sys_float.c b/erts/emulator/sys/unix/sys_float.c
index 689be98969..cafeab547e 100644
--- a/erts/emulator/sys/unix/sys_float.c
+++ b/erts/emulator/sys/unix/sys_float.c
@@ -46,7 +46,7 @@ static void erts_init_fp_exception(void)
{
/* XXX: the wrappers prevent using a pthread destructor to
deallocate the key's value; so when/where do we do that? */
- erts_tsd_key_create(&fpe_key);
+ erts_tsd_key_create(&fpe_key,"fp_exception");
}
void erts_thread_init_fp_exception(void)
diff --git a/erts/emulator/sys/win32/sys.c b/erts/emulator/sys/win32/sys.c
index 5ea4703a7a..296da90c6c 100755
--- a/erts/emulator/sys/win32/sys.c
+++ b/erts/emulator/sys/win32/sys.c
@@ -3197,7 +3197,7 @@ void erl_sys_init(void)
noinherit_std_handle(STD_ERROR_HANDLE);
#ifdef ERTS_SMP
- erts_smp_tsd_key_create(&win32_errstr_key);
+ erts_smp_tsd_key_create(&win32_errstr_key,"win32_errstr_key");
InitializeCriticalSection(&htbc_lock);
#endif
erts_smp_atomic_init_nob(&pipe_creation_counter,0);