Index: runtime/vm/port.cc |
diff --git a/runtime/vm/port.cc b/runtime/vm/port.cc |
index 6af2ff82ca7be0f3db99951d71019d25f74b43dc..a57b93f302777fd2431f72f8ab91c0d2ac236b6d 100644 |
--- a/runtime/vm/port.cc |
+++ b/runtime/vm/port.cc |
@@ -313,7 +313,7 @@ void PortMap::PrintPortsForMessageHandler(MessageHandler* handler, |
Object& msg_handler = Object::Handle(); |
{ |
JSONArray ports(&jsobj, "ports"); |
- MutexLocker ml(mutex_); |
+ SafepointMutexLocker ml(mutex_); |
for (intptr_t i = 0; i < capacity_; i++) { |
if (map_[i].handler == handler) { |
if (map_[i].state == kLivePort) { |