OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
6 #if defined(TARGET_OS_LINUX) | 6 #if defined(TARGET_OS_LINUX) |
7 | 7 |
8 #include "bin/eventhandler.h" | 8 #include "bin/eventhandler.h" |
| 9 #include "bin/eventhandler_linux.h" |
9 | 10 |
10 #include <errno.h> // NOLINT | 11 #include <errno.h> // NOLINT |
11 #include <pthread.h> // NOLINT | 12 #include <pthread.h> // NOLINT |
12 #include <stdio.h> // NOLINT | 13 #include <stdio.h> // NOLINT |
13 #include <string.h> // NOLINT | 14 #include <string.h> // NOLINT |
14 #include <sys/epoll.h> // NOLINT | 15 #include <sys/epoll.h> // NOLINT |
15 #include <sys/stat.h> // NOLINT | 16 #include <sys/stat.h> // NOLINT |
16 #include <sys/timerfd.h> // NOLINT | 17 #include <sys/timerfd.h> // NOLINT |
17 #include <unistd.h> // NOLINT | 18 #include <unistd.h> // NOLINT |
18 #include <fcntl.h> // NOLINT | 19 #include <fcntl.h> // NOLINT |
19 | 20 |
20 #include "bin/dartutils.h" | 21 #include "bin/dartutils.h" |
21 #include "bin/fdutils.h" | 22 #include "bin/fdutils.h" |
22 #include "bin/log.h" | 23 #include "bin/log.h" |
| 24 #include "bin/lockers.h" |
23 #include "bin/socket.h" | 25 #include "bin/socket.h" |
24 #include "bin/thread.h" | 26 #include "bin/thread.h" |
25 #include "platform/utils.h" | 27 #include "platform/utils.h" |
26 | 28 |
27 | 29 |
28 namespace dart { | 30 namespace dart { |
29 namespace bin { | 31 namespace bin { |
30 | 32 |
31 static const int kInterruptMessageSize = sizeof(InterruptMessage); | |
32 static const int kTimerId = -1; | |
33 static const int kShutdownId = -2; | |
34 | 33 |
35 | 34 intptr_t DescriptorInfoLinux::GetPollEvents() { |
36 intptr_t SocketData::GetPollEvents() { | |
37 // Do not ask for EPOLLERR and EPOLLHUP explicitly as they are | 35 // Do not ask for EPOLLERR and EPOLLHUP explicitly as they are |
38 // triggered anyway. | 36 // triggered anyway. |
39 intptr_t events = 0; | 37 intptr_t events = 0; |
40 if ((mask_ & (1 << kInEvent)) != 0) { | 38 if ((Mask() & (1 << kInEvent)) != 0) { |
41 events |= EPOLLIN; | 39 events |= EPOLLIN; |
42 } | 40 } |
43 if ((mask_ & (1 << kOutEvent)) != 0) { | 41 if ((Mask() & (1 << kOutEvent)) != 0) { |
44 events |= EPOLLOUT; | 42 events |= EPOLLOUT; |
45 } | 43 } |
46 return events; | 44 return events; |
47 } | 45 } |
48 | 46 |
49 | 47 |
50 // Unregister the file descriptor for a SocketData structure with epoll. | 48 // Unregister the file descriptor for a DescriptorInfoLinux structure with |
51 static void RemoveFromEpollInstance(intptr_t epoll_fd_, SocketData* sd) { | 49 // epoll. |
| 50 static void RemoveFromEpollInstance(intptr_t epoll_fd_, |
| 51 DescriptorInfoLinux* si) { |
52 VOID_NO_RETRY_EXPECTED(epoll_ctl(epoll_fd_, | 52 VOID_NO_RETRY_EXPECTED(epoll_ctl(epoll_fd_, |
53 EPOLL_CTL_DEL, | 53 EPOLL_CTL_DEL, |
54 sd->fd(), | 54 si->fd(), |
55 NULL)); | 55 NULL)); |
56 } | 56 } |
57 | 57 |
58 | 58 |
59 static void AddToEpollInstance(intptr_t epoll_fd_, SocketData* sd) { | 59 static void AddToEpollInstance(intptr_t epoll_fd_, DescriptorInfoLinux* si) { |
60 struct epoll_event event; | 60 struct epoll_event event; |
61 event.events = EPOLLRDHUP | sd->GetPollEvents(); | 61 event.events = EPOLLRDHUP | si->GetPollEvents(); |
62 if (!sd->IsListeningSocket()) { | 62 if (!si->IsListeningSocket()) { |
63 event.events |= EPOLLET; | 63 event.events |= EPOLLET; |
64 } | 64 } |
65 event.data.ptr = sd; | 65 event.data.ptr = si; |
66 int status = NO_RETRY_EXPECTED(epoll_ctl(epoll_fd_, | 66 int status = NO_RETRY_EXPECTED(epoll_ctl(epoll_fd_, |
67 EPOLL_CTL_ADD, | 67 EPOLL_CTL_ADD, |
68 sd->fd(), | 68 si->fd(), |
69 &event)); | 69 &event)); |
70 if (status == -1) { | 70 if (status == -1) { |
71 // Epoll does not accept the file descriptor. It could be due to | 71 // Epoll does not accept the file descriptor. It could be due to |
72 // already closed file descriptor, or unuspported devices, such | 72 // already closed file descriptor, or unuspported devices, such |
73 // as /dev/null. In such case, mark the file descriptor as closed, | 73 // as /dev/null. In such case, mark the file descriptor as closed, |
74 // so dart will handle it accordingly. | 74 // so dart will handle it accordingly. |
75 DartUtils::PostInt32(sd->port(), 1 << kCloseEvent); | 75 DartUtils::PostInt32(si->NextPort(), 1 << kCloseEvent); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 | 79 |
80 EventHandlerImplementation::EventHandlerImplementation() | 80 EventHandlerImplementation::EventHandlerImplementation() |
81 : socket_map_(&HashMap::SamePointerValue, 16) { | 81 : socket_map_(&HashMap::SamePointerValue, 16) { |
82 intptr_t result; | 82 intptr_t result; |
83 result = NO_RETRY_EXPECTED(pipe(interrupt_fds_)); | 83 result = NO_RETRY_EXPECTED(pipe(interrupt_fds_)); |
84 if (result != 0) { | 84 if (result != 0) { |
85 FATAL("Pipe creation failed"); | 85 FATAL("Pipe creation failed"); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 | 127 |
128 EventHandlerImplementation::~EventHandlerImplementation() { | 128 EventHandlerImplementation::~EventHandlerImplementation() { |
129 VOID_TEMP_FAILURE_RETRY(close(epoll_fd_)); | 129 VOID_TEMP_FAILURE_RETRY(close(epoll_fd_)); |
130 VOID_TEMP_FAILURE_RETRY(close(timer_fd_)); | 130 VOID_TEMP_FAILURE_RETRY(close(timer_fd_)); |
131 VOID_TEMP_FAILURE_RETRY(close(interrupt_fds_[0])); | 131 VOID_TEMP_FAILURE_RETRY(close(interrupt_fds_[0])); |
132 VOID_TEMP_FAILURE_RETRY(close(interrupt_fds_[1])); | 132 VOID_TEMP_FAILURE_RETRY(close(interrupt_fds_[1])); |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 SocketData* EventHandlerImplementation::GetSocketData(intptr_t fd, | 136 DescriptorInfoLinux* EventHandlerImplementation::GetDescriptorInfoLinux( |
137 bool is_listening) { | 137 intptr_t fd, bool is_listening) { |
138 ASSERT(fd >= 0); | 138 ASSERT(fd >= 0); |
139 HashMap::Entry* entry = socket_map_.Lookup( | 139 HashMap::Entry* entry = socket_map_.Lookup( |
140 GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd), true); | 140 GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd), true); |
141 ASSERT(entry != NULL); | 141 ASSERT(entry != NULL); |
142 SocketData* sd = reinterpret_cast<SocketData*>(entry->value); | 142 DescriptorInfoLinux * si = |
143 if (sd == NULL) { | 143 reinterpret_cast<DescriptorInfoLinux*>(entry->value); |
| 144 if (si == NULL) { |
144 // If there is no data in the hash map for this file descriptor a | 145 // If there is no data in the hash map for this file descriptor a |
145 // new SocketData for the file descriptor is inserted. | 146 // new DescriptorInfoLinux for the file descriptor is inserted. |
146 if (is_listening) { | 147 if (is_listening) { |
147 sd = new ListeningSocketData(fd); | 148 si = new DescriptorInfoMultipleLinux(fd); |
148 } else { | 149 } else { |
149 sd = new SocketData(fd); | 150 si = new DescriptorInfoSingleLinux(fd); |
150 } | 151 } |
151 entry->value = sd; | 152 entry->value = si; |
152 } | 153 } |
153 ASSERT(fd == sd->fd()); | 154 ASSERT(fd == si->fd()); |
154 return sd; | 155 return si; |
155 } | 156 } |
156 | 157 |
157 | 158 |
158 void EventHandlerImplementation::WakeupHandler(intptr_t id, | 159 void EventHandlerImplementation::WakeupHandler(intptr_t id, |
159 Dart_Port dart_port, | 160 Dart_Port dart_port, |
160 int64_t data) { | 161 int64_t data) { |
161 InterruptMessage msg; | 162 InterruptMessage msg; |
162 msg.id = id; | 163 msg.id = id; |
163 msg.dart_port = dart_port; | 164 msg.dart_port = dart_port; |
164 msg.data = data; | 165 msg.data = data; |
(...skipping 25 matching lines...) Expand all Loading... |
190 if (timeout_queue_.HasTimeout()) { | 191 if (timeout_queue_.HasTimeout()) { |
191 int64_t millis = timeout_queue_.CurrentTimeout(); | 192 int64_t millis = timeout_queue_.CurrentTimeout(); |
192 it.it_value.tv_sec = millis / 1000; | 193 it.it_value.tv_sec = millis / 1000; |
193 it.it_value.tv_nsec = (millis % 1000) * 1000000; | 194 it.it_value.tv_nsec = (millis % 1000) * 1000000; |
194 } | 195 } |
195 VOID_NO_RETRY_EXPECTED( | 196 VOID_NO_RETRY_EXPECTED( |
196 timerfd_settime(timer_fd_, TFD_TIMER_ABSTIME, &it, NULL)); | 197 timerfd_settime(timer_fd_, TFD_TIMER_ABSTIME, &it, NULL)); |
197 } else if (msg[i].id == kShutdownId) { | 198 } else if (msg[i].id == kShutdownId) { |
198 shutdown_ = true; | 199 shutdown_ = true; |
199 } else { | 200 } else { |
200 SocketData* sd = GetSocketData( | 201 DescriptorInfoLinux* si = GetDescriptorInfoLinux( |
201 msg[i].id, (msg[i].data & (1 << kListeningSocket)) != 0); | 202 msg[i].id, (msg[i].data & (1 << kListeningSocket)) != 0); |
202 if (IS_COMMAND(msg[i].data, kShutdownReadCommand)) { | 203 if (IS_COMMAND(msg[i].data, kShutdownReadCommand)) { |
203 ASSERT(!sd->IsListeningSocket()); | 204 ASSERT(!si->IsListeningSocket()); |
204 // Close the socket for reading. | 205 // Close the socket for reading. |
205 VOID_NO_RETRY_EXPECTED(shutdown(sd->fd(), SHUT_RD)); | 206 VOID_NO_RETRY_EXPECTED(shutdown(si->fd(), SHUT_RD)); |
206 } else if (IS_COMMAND(msg[i].data, kShutdownWriteCommand)) { | 207 } else if (IS_COMMAND(msg[i].data, kShutdownWriteCommand)) { |
207 ASSERT(!sd->IsListeningSocket()); | 208 ASSERT(!si->IsListeningSocket()); |
208 // Close the socket for writing. | 209 // Close the socket for writing. |
209 VOID_NO_RETRY_EXPECTED(shutdown(sd->fd(), SHUT_WR)); | 210 VOID_NO_RETRY_EXPECTED(shutdown(si->fd(), SHUT_WR)); |
210 } else if (IS_COMMAND(msg[i].data, kCloseCommand)) { | 211 } else if (IS_COMMAND(msg[i].data, kCloseCommand)) { |
211 // Close the socket and free system resources and move on to next | 212 // Close the socket and free system resources and move on to next |
212 // message. | 213 // message. |
213 if (sd->RemovePort(msg[i].dart_port)) { | 214 bool no_more_listeners = si->RemovePort(msg[i].dart_port); |
214 RemoveFromEpollInstance(epoll_fd_, sd); | 215 if (no_more_listeners) { |
215 intptr_t fd = sd->fd(); | 216 RemoveFromEpollInstance(epoll_fd_, si); |
216 sd->Close(); | 217 } |
217 socket_map_.Remove(GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd)); | 218 |
218 delete sd; | 219 if (si->IsListeningSocket()) { |
| 220 intptr_t fd = si->fd(); |
| 221 // We only close the socket file descriptor from the operating |
| 222 // system if there are no other dart socket objects which |
| 223 // are listening on the same (address, port) combination. |
| 224 { |
| 225 MutexLocker ml(globalTcpListeningSocketRegistry.mutex()); |
| 226 if (globalTcpListeningSocketRegistry.CloseSafe(si->fd())) { |
| 227 ASSERT(no_more_listeners); |
| 228 socket_map_.Remove( |
| 229 GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd)); |
| 230 si->Close(); |
| 231 delete si; |
| 232 } |
| 233 } |
| 234 } else { |
| 235 if (no_more_listeners) { |
| 236 intptr_t fd = si->fd(); |
| 237 socket_map_.Remove( |
| 238 GetHashmapKeyFromFd(fd), GetHashmapHashFromFd(fd)); |
| 239 si->Close(); |
| 240 delete si; |
| 241 } |
219 } | 242 } |
220 DartUtils::PostInt32(msg[i].dart_port, 1 << kDestroyedEvent); | 243 DartUtils::PostInt32(msg[i].dart_port, 1 << kDestroyedEvent); |
221 } else if (IS_COMMAND(msg[i].data, kReturnTokenCommand)) { | 244 } else if (IS_COMMAND(msg[i].data, kReturnTokenCommand)) { |
222 int count = TOKEN_COUNT(msg[i].data); | 245 int count = TOKEN_COUNT(msg[i].data); |
223 if (sd->ReturnToken(msg[i].dart_port, count)) { | 246 if (si->ReturnTokens(msg[i].dart_port, count)) { |
224 AddToEpollInstance(epoll_fd_, sd); | 247 AddToEpollInstance(epoll_fd_, si); |
225 } | 248 } |
226 } else { | 249 } else { |
227 ASSERT_NO_COMMAND(msg[i].data); | 250 ASSERT_NO_COMMAND(msg[i].data); |
228 // Setup events to wait for. | 251 // Setup events to wait for. |
229 if (sd->AddPort(msg[i].dart_port)) { | 252 if (si->AddPort(msg[i].dart_port)) { |
230 sd->SetMask(msg[i].data); | 253 si->SetMask(msg[i].data); |
231 AddToEpollInstance(epoll_fd_, sd); | 254 AddToEpollInstance(epoll_fd_, si); |
232 } | 255 } |
233 } | 256 } |
234 } | 257 } |
235 } | 258 } |
236 } | 259 } |
237 | 260 |
238 #ifdef DEBUG_POLL | 261 #ifdef DEBUG_POLL |
239 static void PrintEventMask(intptr_t fd, intptr_t events) { | 262 static void PrintEventMask(intptr_t fd, intptr_t events) { |
240 Log::Print("%d ", fd); | 263 Log::Print("%d ", fd); |
241 if ((events & EPOLLIN) != 0) Log::Print("EPOLLIN "); | 264 if ((events & EPOLLIN) != 0) Log::Print("EPOLLIN "); |
242 if ((events & EPOLLPRI) != 0) Log::Print("EPOLLPRI "); | 265 if ((events & EPOLLPRI) != 0) Log::Print("EPOLLPRI "); |
243 if ((events & EPOLLOUT) != 0) Log::Print("EPOLLOUT "); | 266 if ((events & EPOLLOUT) != 0) Log::Print("EPOLLOUT "); |
244 if ((events & EPOLLERR) != 0) Log::Print("EPOLLERR "); | 267 if ((events & EPOLLERR) != 0) Log::Print("EPOLLERR "); |
245 if ((events & EPOLLHUP) != 0) Log::Print("EPOLLHUP "); | 268 if ((events & EPOLLHUP) != 0) Log::Print("EPOLLHUP "); |
246 if ((events & EPOLLRDHUP) != 0) Log::Print("EPOLLRDHUP "); | 269 if ((events & EPOLLRDHUP) != 0) Log::Print("EPOLLRDHUP "); |
247 int all_events = EPOLLIN | EPOLLPRI | EPOLLOUT | | 270 int all_events = EPOLLIN | EPOLLPRI | EPOLLOUT | |
248 EPOLLERR | EPOLLHUP | EPOLLRDHUP; | 271 EPOLLERR | EPOLLHUP | EPOLLRDHUP; |
249 if ((events & ~all_events) != 0) { | 272 if ((events & ~all_events) != 0) { |
250 Log::Print("(and %08x) ", events & ~all_events); | 273 Log::Print("(and %08x) ", events & ~all_events); |
251 } | 274 } |
252 Log::Print("(available %d) ", FDUtils::AvailableBytes(fd)); | 275 Log::Print("(available %d) ", FDUtils::AvailableBytes(fd)); |
253 | 276 |
254 Log::Print("\n"); | 277 Log::Print("\n"); |
255 } | 278 } |
256 #endif | 279 #endif |
257 | 280 |
258 intptr_t EventHandlerImplementation::GetPollEvents(intptr_t events, | 281 intptr_t EventHandlerImplementation::GetPollEvents(intptr_t events, |
259 SocketData* sd) { | 282 DescriptorInfoLinux* si) { |
260 #ifdef DEBUG_POLL | 283 #ifdef DEBUG_POLL |
261 PrintEventMask(sd->fd(), events); | 284 PrintEventMask(si->fd(), events); |
262 #endif | 285 #endif |
263 if (events & EPOLLERR) { | 286 if (events & EPOLLERR) { |
264 // Return error only if EPOLLIN is present. | 287 // Return error only if EPOLLIN is present. |
265 return (events & EPOLLIN) ? (1 << kErrorEvent) : 0; | 288 return (events & EPOLLIN) ? (1 << kErrorEvent) : 0; |
266 } | 289 } |
267 intptr_t event_mask = 0; | 290 intptr_t event_mask = 0; |
268 if (events & EPOLLIN) event_mask |= (1 << kInEvent); | 291 if (events & EPOLLIN) event_mask |= (1 << kInEvent); |
269 if (events & EPOLLOUT) event_mask |= (1 << kOutEvent); | 292 if (events & EPOLLOUT) event_mask |= (1 << kOutEvent); |
270 if (events & (EPOLLHUP | EPOLLRDHUP)) event_mask |= (1 << kCloseEvent); | 293 if (events & (EPOLLHUP | EPOLLRDHUP)) event_mask |= (1 << kCloseEvent); |
271 return event_mask; | 294 return event_mask; |
272 } | 295 } |
273 | 296 |
274 | 297 |
275 void EventHandlerImplementation::HandleEvents(struct epoll_event* events, | 298 void EventHandlerImplementation::HandleEvents(struct epoll_event* events, |
276 int size) { | 299 int size) { |
277 bool interrupt_seen = false; | 300 bool interrupt_seen = false; |
278 for (int i = 0; i < size; i++) { | 301 for (int i = 0; i < size; i++) { |
279 if (events[i].data.ptr == NULL) { | 302 if (events[i].data.ptr == NULL) { |
280 interrupt_seen = true; | 303 interrupt_seen = true; |
281 } else if (events[i].data.fd == timer_fd_) { | 304 } else if (events[i].data.fd == timer_fd_) { |
282 int64_t val; | 305 int64_t val; |
283 VOID_TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER( | 306 VOID_TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER( |
284 read(timer_fd_, &val, sizeof(val))); | 307 read(timer_fd_, &val, sizeof(val))); |
285 if (timeout_queue_.HasTimeout()) { | 308 if (timeout_queue_.HasTimeout()) { |
286 DartUtils::PostNull(timeout_queue_.CurrentPort()); | 309 DartUtils::PostNull(timeout_queue_.CurrentPort()); |
287 timeout_queue_.RemoveCurrent(); | 310 timeout_queue_.RemoveCurrent(); |
288 } | 311 } |
289 } else { | 312 } else { |
290 SocketData* sd = reinterpret_cast<SocketData*>(events[i].data.ptr); | 313 DescriptorInfoLinux* si = |
291 intptr_t event_mask = GetPollEvents(events[i].events, sd); | 314 reinterpret_cast<DescriptorInfoLinux*>(events[i].data.ptr); |
| 315 intptr_t event_mask = GetPollEvents(events[i].events, si); |
292 if (event_mask != 0) { | 316 if (event_mask != 0) { |
293 Dart_Port port = sd->port(); | 317 Dart_Port port = si->NextPort(); |
294 if (sd->TakeToken()) { | 318 ASSERT(port != 0); |
| 319 if (si->TakeToken()) { |
295 // Took last token, remove from epoll. | 320 // Took last token, remove from epoll. |
296 RemoveFromEpollInstance(epoll_fd_, sd); | 321 RemoveFromEpollInstance(epoll_fd_, si); |
297 } | 322 } |
298 ASSERT(port != 0); | |
299 DartUtils::PostInt32(port, event_mask); | 323 DartUtils::PostInt32(port, event_mask); |
300 } | 324 } |
301 } | 325 } |
302 } | 326 } |
303 if (interrupt_seen) { | 327 if (interrupt_seen) { |
304 // Handle after socket events, so we avoid closing a socket before we handle | 328 // Handle after socket events, so we avoid closing a socket before we handle |
305 // the current events. | 329 // the current events. |
306 HandleInterruptFd(); | 330 HandleInterruptFd(); |
307 } | 331 } |
308 } | 332 } |
(...skipping 17 matching lines...) Expand all Loading... |
326 } else { | 350 } else { |
327 handler_impl->HandleEvents(events, result); | 351 handler_impl->HandleEvents(events, result); |
328 } | 352 } |
329 } | 353 } |
330 delete handler; | 354 delete handler; |
331 } | 355 } |
332 | 356 |
333 | 357 |
334 void EventHandlerImplementation::Start(EventHandler* handler) { | 358 void EventHandlerImplementation::Start(EventHandler* handler) { |
335 int result = Thread::Start(&EventHandlerImplementation::Poll, | 359 int result = Thread::Start(&EventHandlerImplementation::Poll, |
336 reinterpret_cast<uword>(handler)); | 360 reinterpret_cast<uword>(handler)); |
337 if (result != 0) { | 361 if (result != 0) { |
338 FATAL1("Failed to start event handler thread %d", result); | 362 FATAL1("Failed to start event handler thread %d", result); |
339 } | 363 } |
340 } | 364 } |
341 | 365 |
342 | 366 |
343 void EventHandlerImplementation::Shutdown() { | 367 void EventHandlerImplementation::Shutdown() { |
344 SendData(kShutdownId, 0, 0); | 368 SendData(kShutdownId, 0, 0); |
345 } | 369 } |
346 | 370 |
(...skipping 13 matching lines...) Expand all Loading... |
360 | 384 |
361 uint32_t EventHandlerImplementation::GetHashmapHashFromFd(intptr_t fd) { | 385 uint32_t EventHandlerImplementation::GetHashmapHashFromFd(intptr_t fd) { |
362 // The hashmap does not support keys with value 0. | 386 // The hashmap does not support keys with value 0. |
363 return dart::Utils::WordHash(fd + 1); | 387 return dart::Utils::WordHash(fd + 1); |
364 } | 388 } |
365 | 389 |
366 } // namespace bin | 390 } // namespace bin |
367 } // namespace dart | 391 } // namespace dart |
368 | 392 |
369 #endif // defined(TARGET_OS_LINUX) | 393 #endif // defined(TARGET_OS_LINUX) |
OLD | NEW |