summaryrefslogtreecommitdiffstats
path: root/base/test
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-05 02:53:29 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-05 02:53:29 +0000
commit4bb85b96cb632adf6d609a08e0f07961baab3c54 (patch)
tree9c08783237263d1fc799030d13d67ea2dfe86783 /base/test
parentba81d6c0e8c21af0be2cef1cc0e9965f049c85a3 (diff)
downloadchromium_src-4bb85b96cb632adf6d609a08e0f07961baab3c54.zip
chromium_src-4bb85b96cb632adf6d609a08e0f07961baab3c54.tar.gz
chromium_src-4bb85b96cb632adf6d609a08e0f07961baab3c54.tar.bz2
Remove calls to g_thread_init().
Linux CPU profiles indicate that at least 2.7% of CPU usage is spent in glib atomic operations. This used to be necessary in the browser process due to loading plugins which may invoke gtk/glib. Plugin loading has been moved out of process now, so this should no longer be necessary. I also removed dbus_g_thread_init() which *should* be safe too, although it's possible that we have unknown dbus-glib use off the UI thread. BUG=none TEST=none Review URL: http://codereview.chromium.org/8474012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test')
-rw-r--r--base/test/test_suite.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index 05dfa31..c257b14 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -59,7 +59,6 @@ TestSuite::TestSuite(int argc, char** argv) {
CommandLine::Init(argc, argv);
testing::InitGoogleTest(&argc, argv);
#if defined(TOOLKIT_USES_GTK)
- g_thread_init(NULL);
gtk_init_check(&argc, &argv);
#endif // defined(TOOLKIT_USES_GTK)
// Don't add additional code to this constructor. Instead add it to