Commit 2c472363 authored by ager@chromium.org's avatar ager@chromium.org

Use the real climit for testing the stack limit API. The currently

active climit can be changed by other events and should not be trusted
for these tests. The real climit stays the same once set.

Review URL: http://codereview.chromium.org/4881001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5816 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 121adebf
...@@ -189,6 +189,9 @@ class StackGuard : public AllStatic { ...@@ -189,6 +189,9 @@ class StackGuard : public AllStatic {
static uintptr_t climit() { static uintptr_t climit() {
return thread_local_.climit_; return thread_local_.climit_;
} }
static uintptr_t real_climit() {
return thread_local_.real_climit_;
}
static uintptr_t jslimit() { static uintptr_t jslimit() {
return thread_local_.jslimit_; return thread_local_.jslimit_;
} }
......
...@@ -10629,7 +10629,7 @@ THREADED_TEST(IdleNotification) { ...@@ -10629,7 +10629,7 @@ THREADED_TEST(IdleNotification) {
static uint32_t* stack_limit; static uint32_t* stack_limit;
static v8::Handle<Value> GetStackLimitCallback(const v8::Arguments& args) { static v8::Handle<Value> GetStackLimitCallback(const v8::Arguments& args) {
stack_limit = reinterpret_cast<uint32_t*>(i::StackGuard::climit()); stack_limit = reinterpret_cast<uint32_t*>(i::StackGuard::real_climit());
return v8::Undefined(); return v8::Undefined();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment