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

Side by Side Diff: src/platform-win32.cc

Issue 9353006: Increase size of small stacks from 32k to 64k to avoid hitting (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 1887
1888 HANDLE profiled_thread() { return profiled_thread_; } 1888 HANDLE profiled_thread() { return profiled_thread_; }
1889 1889
1890 private: 1890 private:
1891 HANDLE profiled_thread_; 1891 HANDLE profiled_thread_;
1892 }; 1892 };
1893 1893
1894 1894
1895 class SamplerThread : public Thread { 1895 class SamplerThread : public Thread {
1896 public: 1896 public:
1897 static const int kSamplerThreadStackSize = 32 * KB; 1897 static const int kSamplerThreadStackSize = 64 * KB;
1898 1898
1899 explicit SamplerThread(int interval) 1899 explicit SamplerThread(int interval)
1900 : Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)), 1900 : Thread(Thread::Options("SamplerThread", kSamplerThreadStackSize)),
1901 interval_(interval) {} 1901 interval_(interval) {}
1902 1902
1903 static void AddActiveSampler(Sampler* sampler) { 1903 static void AddActiveSampler(Sampler* sampler) {
1904 ScopedLock lock(mutex_); 1904 ScopedLock lock(mutex_);
1905 SamplerRegistry::AddActiveSampler(sampler); 1905 SamplerRegistry::AddActiveSampler(sampler);
1906 if (instance_ == NULL) { 1906 if (instance_ == NULL) {
1907 instance_ = new SamplerThread(sampler->interval()); 1907 instance_ = new SamplerThread(sampler->interval());
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 2034
2035 2035
2036 void Sampler::Stop() { 2036 void Sampler::Stop() {
2037 ASSERT(IsActive()); 2037 ASSERT(IsActive());
2038 SamplerThread::RemoveActiveSampler(this); 2038 SamplerThread::RemoveActiveSampler(this);
2039 SetActive(false); 2039 SetActive(false);
2040 } 2040 }
2041 2041
2042 2042
2043 } } // namespace v8::internal 2043 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698