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

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

Issue 7309013: Fix a few issues breaking cctest/test-lockers/Regress1433: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | « src/platform-solaris.cc ('k') | src/runtime-profiler.h » ('j') | 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 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 instance_->Start(); 1881 instance_->Start();
1882 } else { 1882 } else {
1883 ASSERT(instance_->interval_ == sampler->interval()); 1883 ASSERT(instance_->interval_ == sampler->interval());
1884 } 1884 }
1885 } 1885 }
1886 1886
1887 static void RemoveActiveSampler(Sampler* sampler) { 1887 static void RemoveActiveSampler(Sampler* sampler) {
1888 ScopedLock lock(mutex_); 1888 ScopedLock lock(mutex_);
1889 SamplerRegistry::RemoveActiveSampler(sampler); 1889 SamplerRegistry::RemoveActiveSampler(sampler);
1890 if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { 1890 if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) {
1891 RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown(); 1891 RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_);
1892 instance_->Join();
1893 delete instance_; 1892 delete instance_;
1894 instance_ = NULL; 1893 instance_ = NULL;
1895 } 1894 }
1896 } 1895 }
1897 1896
1898 // Implement Thread::Run(). 1897 // Implement Thread::Run().
1899 virtual void Run() { 1898 virtual void Run() {
1900 SamplerRegistry::State state; 1899 SamplerRegistry::State state;
1901 while ((state = SamplerRegistry::GetState()) != 1900 while ((state = SamplerRegistry::GetState()) !=
1902 SamplerRegistry::HAS_NO_SAMPLERS) { 1901 SamplerRegistry::HAS_NO_SAMPLERS) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2008 2007
2009 void Sampler::Stop() { 2008 void Sampler::Stop() {
2010 ASSERT(IsActive()); 2009 ASSERT(IsActive());
2011 SamplerThread::RemoveActiveSampler(this); 2010 SamplerThread::RemoveActiveSampler(this);
2012 SetActive(false); 2011 SetActive(false);
2013 } 2012 }
2014 2013
2015 #endif // ENABLE_LOGGING_AND_PROFILING 2014 #endif // ENABLE_LOGGING_AND_PROFILING
2016 2015
2017 } } // namespace v8::internal 2016 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-solaris.cc ('k') | src/runtime-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698