Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/top.cc

Issue 6537: - Changed the stack size in PreallocatedMemoryThread from 16K to 32K... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 class PreallocatedMemoryThread: public Thread { 112 class PreallocatedMemoryThread: public Thread {
113 public: 113 public:
114 PreallocatedMemoryThread() : keep_running_(true) { 114 PreallocatedMemoryThread() : keep_running_(true) {
115 wait_for_ever_semaphore_ = OS::CreateSemaphore(0); 115 wait_for_ever_semaphore_ = OS::CreateSemaphore(0);
116 data_ready_semaphore_ = OS::CreateSemaphore(0); 116 data_ready_semaphore_ = OS::CreateSemaphore(0);
117 } 117 }
118 118
119 // When the thread starts running it will allocate a fixed number of bytes 119 // When the thread starts running it will allocate a fixed number of bytes
120 // on the stack and publish the location of this memory for others to use. 120 // on the stack and publish the location of this memory for others to use.
121 void Run() { 121 void Run() {
122 EmbeddedVector<char, 16 * 1024> local_buffer; 122 EmbeddedVector<char, 32 * 1024> local_buffer;
123 123
124 // Initialize the buffer with a known good value. 124 // Initialize the buffer with a known good value.
125 OS::StrNCpy(local_buffer, "Trace data was not generated.\n", 125 OS::StrNCpy(local_buffer, "Trace data was not generated.\n",
126 local_buffer.length()); 126 local_buffer.length());
127 127
128 // Publish the local buffer and signal its availability. 128 // Publish the local buffer and signal its availability.
129 data_ = &local_buffer[0]; 129 data_ = &local_buffer[0];
130 length_ = sizeof(local_buffer); 130 length_ = sizeof(local_buffer);
131 data_ready_semaphore_->Signal(); 131 data_ready_semaphore_->Signal();
132 132
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 Top::break_access_->Lock(); 882 Top::break_access_->Lock();
883 } 883 }
884 884
885 885
886 ExecutionAccess::~ExecutionAccess() { 886 ExecutionAccess::~ExecutionAccess() {
887 Top::break_access_->Unlock(); 887 Top::break_access_->Unlock();
888 } 888 }
889 889
890 890
891 } } // namespace v8::internal 891 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698