commit | a6734fcb31b04d0442ae8256783d033a791c4a19 | [log] [tgz] |
---|---|---|
author | fpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Mar 26 21:46:00 2013 +0000 |
committer | fpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Tue Mar 26 21:46:00 2013 +0000 |
tree | 1f4d7bfaaa9e450223fde36d6203f184c9a73be2 | |
parent | 7183460ce9275401d419ed7008f51280c5d4e1d9 [diff] [blame] |
JSC_enableProfiler=true should also cause JSGlobalData to save the profiler output somewhere https://bugs.webkit.org/show_bug.cgi?id=113144 Reviewed by Geoffrey Garen. Forgot to include Geoff's requested change in the original commit. * profiler/ProfilerDatabase.cpp: (Profiler): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp b/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp index acc9531..88214cd 100644 --- a/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp +++ b/Source/JavaScriptCore/profiler/ProfilerDatabase.cpp
@@ -34,7 +34,7 @@ namespace JSC { namespace Profiler { static volatile int databaseCounter; -static SpinLock registrationLock; +static SpinLock registrationLock = SPINLOCK_INITIALIZER; static int didRegisterAtExit; static Database* firstDatabase;