diff options
| author | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-12 22:31:19 +0000 |
|---|---|---|
| committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-12 22:31:19 +0000 |
| commit | 34e2b280dafcce55973152ed8c6539e6a03ce761 (patch) | |
| tree | 8736f1165af9ab59129595c4c1d844f36abd3277 /compiler-rt/lib/sanitizer_common/sanitizer_common.h | |
| parent | 5ab8750c5cc5a9e258bc517e40f29dbb5029d501 (diff) | |
| download | bcm5719-llvm-34e2b280dafcce55973152ed8c6539e6a03ce761.tar.gz bcm5719-llvm-34e2b280dafcce55973152ed8c6539e6a03ce761.zip | |
[TSan] Share the code the setup code calling getrlim/setrlim with sanitizer_common
llvm-svn: 215481
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 6dc950057fd..c974188d485 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -176,7 +176,7 @@ void PrintModuleAndOffset(InternalScopedString *buffer, const char *module, uptr offset); // OS -void DisableCoreDumper(); +void DisableCoreDumperIfNecessary(); void DumpProcessMap(); bool FileExists(const char *filename); const char *GetEnv(const char *name); @@ -187,6 +187,8 @@ u32 GetUid(); void ReExec(); bool StackSizeIsUnlimited(); void SetStackSizeLimitInBytes(uptr limit); +bool AddressSpaceIsUnlimited(); +void SetAddressSpaceUnlimited(); void AdjustStackSize(void *attr); void PrepareForSandboxing(__sanitizer_sandbox_arguments *args); void CovPrepareForSandboxing(__sanitizer_sandbox_arguments *args); |

