Backed out changeset 4d56e83adfb0 (bug 698002)

This commit is contained in:
Justin Lebar 2011-12-01 15:43:14 -05:00
parent 553b69d12f
commit 94e3fcd673
3 changed files with 3 additions and 14 deletions

View File

@ -295,7 +295,7 @@ void Sampler::Start() {
// Start a thread that sends SIGPROF signal to VM thread.
// Sending the signal ourselves instead of relying on itimer provides
// much better accuracy.
SetActive(true);
active_ = true;
if (pthread_create(
&data_->signal_sender_thread_, NULL, SenderEntry, data_) == 0) {
data_->signal_sender_launched_ = true;
@ -308,7 +308,7 @@ void Sampler::Start() {
void Sampler::Stop() {
SetActive(false);
active_ = false;
// Wait for signal sender termination (it will exit after setting
// active_ to false).

View File

@ -144,12 +144,10 @@ class Sampler {
class PlatformData;
private:
void SetActive(bool value) { NoBarrier_Store(&active_, value); }
const int interval_;
const bool profiling_;
const bool synchronous_;
Atomic32 active_;
bool active_;
PlatformData* data_; // Platform specific data.
};

View File

@ -51,15 +51,6 @@
#warning Please add support for your architecture in chromium_types.h
#endif
typedef int32_t Atomic32;
#if defined(V8_HOST_ARCH_X64) || defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM)
inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {
*ptr = value;
}
#endif
const int kMaxInt = 0x7FFFFFFF;
const int kMinInt = -kMaxInt - 1;