diff options
author | Elliott Hughes <enh@google.com> | 2014-08-27 11:47:01 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-08-28 09:56:32 -0700 |
commit | 6d3fc5615612e500a00aba0a0d331436fae8d996 (patch) | |
tree | 5a6426ee19d6398dbc38175b53a71a0b1fb7fad0 /runtime/utils.h | |
parent | dbc0ca70bcee22561c2f0ab7129a7721369e9aea (diff) | |
download | art-6d3fc5615612e500a00aba0a0d331436fae8d996.tar.gz art-6d3fc5615612e500a00aba0a0d331436fae8d996.tar.bz2 art-6d3fc5615612e500a00aba0a0d331436fae8d996.zip |
Actually ask the pthread implementation for the stack guard size.
(cherry-pick 307091dc306c34ce9e4ee6cc3b467807b3a3bd12.)
Bug: 17111575
Change-Id: I23919b1e8aeff627a65daf57f1109bec60b196cc
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index c89c41f383..ad08697c92 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -414,7 +414,7 @@ pid_t GetTid(); std::string GetThreadName(pid_t tid); // Returns details of the given thread's stack. -void GetThreadStack(pthread_t thread, void** stack_base, size_t* stack_size); +void GetThreadStack(pthread_t thread, void** stack_base, size_t* stack_size, size_t* guard_size); // Reads data from "/proc/self/task/${tid}/stat". void GetTaskStats(pid_t tid, char* state, int* utime, int* stime, int* task_cpu); |