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

Unified Diff: base/message_loop/message_loop_test.cc

Issue 2963623002: Make base::WeakPtr::Get() fast (Closed)
Patch Set: Move WeakReference::Flag::Invalidate out-of-line; it's only called from WeakReferenceOwner::Invalid… Created 3 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 side-by-side diff with in-line comments
Download patch
« base/memory/weak_ptr.cc ('K') | « base/memory/weak_ptr.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop_test.cc
diff --git a/base/message_loop/message_loop_test.cc b/base/message_loop/message_loop_test.cc
index de6070023b1ef84754e5e8e6bb66bb531cafff2f..b76459665c57c38f2ca95854bcc9f4d1724c4739 100644
--- a/base/message_loop/message_loop_test.cc
+++ b/base/message_loop/message_loop_test.cc
@@ -368,7 +368,7 @@ void RunTest_Nesting(MessagePumpFactory factory) {
std::unique_ptr<MessagePump> pump(factory());
MessageLoop loop(std::move(pump));
- int depth = 100;
+ int depth = 50;
ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
BindOnce(&NestingFunc, &depth));
RunLoop().Run();
« base/memory/weak_ptr.cc ('K') | « base/memory/weak_ptr.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698