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

Unified Diff: runtime/vm/port.cc

Issue 47573002: Reland https://code.google.com/p/dart/source/detail?r=29315: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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
« runtime/vm/debugger.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port.cc
===================================================================
--- runtime/vm/port.cc (revision 29317)
+++ runtime/vm/port.cc (working copy)
@@ -82,6 +82,12 @@
ASSERT(index >= 0);
map_[index].live = true;
map_[index].handler->increment_live_ports();
+ if (FLAG_trace_isolates) {
Ivan Posva 2013/10/27 14:33:17 Added tracing support.
+ OS::Print("[^] Live port: \n"
+ "\thandler: %s\n"
+ "\tport: %" Pd64 "\n",
+ map_[index].handler->name(), port);
+ }
}
@@ -137,6 +143,13 @@
used_++;
MaintainInvariants();
+ if (FLAG_trace_isolates) {
Ivan Posva 2013/10/27 14:33:17 ditto
+ OS::Print("[+] Opening port: \n"
+ "\thandler: %s\n"
+ "\tport: %" Pd64 "\n",
+ handler->name(), entry.port);
+ }
+
return entry.port;
}
« runtime/vm/debugger.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698