[tsan] use our own GetEnv instead of libc's getenv
llvm-svn: 175498
This commit is contained in:
parent
f371e89264
commit
3e62fe8c23
|
@ -243,7 +243,7 @@ const char *InitializePlatform() {
|
|||
g_tls_size = (uptr)InitTlsSize();
|
||||
InitDataSeg();
|
||||
#endif
|
||||
return getenv(kTsanOptionsEnv);
|
||||
return GetEnv(kTsanOptionsEnv);
|
||||
}
|
||||
|
||||
void FinalizePlatform() {
|
||||
|
|
|
@ -82,7 +82,7 @@ const char *InitializePlatform() {
|
|||
setrlimit(RLIMIT_CORE, (rlimit*)&lim);
|
||||
}
|
||||
|
||||
return getenv(kTsanOptionsEnv);
|
||||
return GetEnv(kTsanOptionsEnv);
|
||||
}
|
||||
|
||||
void FinalizePlatform() {
|
||||
|
|
|
@ -34,7 +34,7 @@ void FlushShadowMemory() {
|
|||
}
|
||||
|
||||
const char *InitializePlatform() {
|
||||
return getenv(kTsanOptionsEnv);
|
||||
return GetEnv(kTsanOptionsEnv);
|
||||
}
|
||||
|
||||
void FinalizePlatform() {
|
||||
|
|
Loading…
Reference in New Issue