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

Side by Side Diff: src/platform-freebsd.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-cygwin.cc ('k') | src/platform-linux.cc » ('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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 instance_->Start(); 677 instance_->Start();
678 } else { 678 } else {
679 ASSERT(instance_->interval_ == sampler->interval()); 679 ASSERT(instance_->interval_ == sampler->interval());
680 } 680 }
681 } 681 }
682 682
683 static void RemoveActiveSampler(Sampler* sampler) { 683 static void RemoveActiveSampler(Sampler* sampler) {
684 ScopedLock lock(mutex_); 684 ScopedLock lock(mutex_);
685 SamplerRegistry::RemoveActiveSampler(sampler); 685 SamplerRegistry::RemoveActiveSampler(sampler);
686 if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { 686 if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) {
687 RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown(); 687 RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_);
688 instance_->Join();
689 delete instance_; 688 delete instance_;
690 instance_ = NULL; 689 instance_ = NULL;
691 690
692 // Restore the old signal handler. 691 // Restore the old signal handler.
693 if (signal_handler_installed_) { 692 if (signal_handler_installed_) {
694 sigaction(SIGPROF, &old_signal_handler_, 0); 693 sigaction(SIGPROF, &old_signal_handler_, 0);
695 signal_handler_installed_ = false; 694 signal_handler_installed_ = false;
696 } 695 }
697 } 696 }
698 } 697 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 813
815 void Sampler::Stop() { 814 void Sampler::Stop() {
816 ASSERT(IsActive()); 815 ASSERT(IsActive());
817 SignalSender::RemoveActiveSampler(this); 816 SignalSender::RemoveActiveSampler(this);
818 SetActive(false); 817 SetActive(false);
819 } 818 }
820 819
821 #endif // ENABLE_LOGGING_AND_PROFILING 820 #endif // ENABLE_LOGGING_AND_PROFILING
822 821
823 } } // namespace v8::internal 822 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-cygwin.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698