 Chromium Code Reviews
 Chromium Code Reviews Issue 242014:
  Adds an API for setting the stack limit per-thread.  (Closed)
    
  
    Issue 242014:
  Adds an API for setting the stack limit per-thread.  (Closed) 
  | Index: src/v8threads.cc | 
| diff --git a/src/v8threads.cc b/src/v8threads.cc | 
| index 3022a7e9a6a195828d72e74f3dcebd62c6a2eabe..fc4b3c20255822237f2573ea9bf2f429fe2d3b64 100644 | 
| --- a/src/v8threads.cc | 
| +++ b/src/v8threads.cc | 
| @@ -139,6 +139,8 @@ bool ThreadManager::RestoreThread() { | 
| ThreadState* state = | 
| reinterpret_cast<ThreadState*>(Thread::GetThreadLocal(thread_state_key)); | 
| if (state == NULL) { | 
| + // This is a new thread. | 
| + StackGuard::InitThread(access); | 
| return false; | 
| } | 
| char* from = state->data(); |