diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-12-17 09:29:19 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-12-17 09:47:55 -0800 |
commit | 7d425a0a160e65b357ed1ad8b35dc01855b5f479 (patch) | |
tree | 5d1c940b27eeea7bbe420361e667ad7304b84a33 /deps/v8/src/top.cc | |
parent | 9eaf2329e7d1e7c2de20ab7e4461bf55b18595c2 (diff) | |
download | node-new-7d425a0a160e65b357ed1ad8b35dc01855b5f479.tar.gz |
Upgrade V8 to 3.0.3
Diffstat (limited to 'deps/v8/src/top.cc')
-rw-r--r-- | deps/v8/src/top.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/v8/src/top.cc b/deps/v8/src/top.cc index 6187ef0a1d..3d86d11b7c 100644 --- a/deps/v8/src/top.cc +++ b/deps/v8/src/top.cc @@ -40,7 +40,9 @@ namespace v8 { namespace internal { +#ifdef ENABLE_LOGGING_AND_PROFILING Semaphore* Top::runtime_profiler_semaphore_ = NULL; +#endif ThreadLocalTop Top::thread_local_; Mutex* Top::break_access_ = OS::CreateMutex(); @@ -277,8 +279,10 @@ static bool initialized = false; void Top::Initialize() { CHECK(!initialized); +#ifdef ENABLE_LOGGING_AND_PROFILING ASSERT(runtime_profiler_semaphore_ == NULL); runtime_profiler_semaphore_ = OS::CreateSemaphore(0); +#endif InitializeThreadLocal(); @@ -297,8 +301,10 @@ void Top::Initialize() { void Top::TearDown() { if (initialized) { +#ifdef ENABLE_LOGGING_AND_PROFILING delete runtime_profiler_semaphore_; runtime_profiler_semaphore_ = NULL; +#endif // Remove the external reference to the preallocated stack memory. if (preallocated_message_space != NULL) { |