b3f2fb14d0
This CL does the following: - Introduces two new API entry points: Dart_IsolateBlocked and Dart_IsolateUnblocked. - The thread interrupter thread goes into a deep sleep if no isolates need to be profiled (not scheduled on a thread or are in a blocking call). - When an isolate unblocks, the thread interrupter thread resumes regular interrupts. - dart:io readLineSync and sleep mark that they are making a blocking call. This fixes https://code.google.com/p/dart/issues/detail?id=18126 reducing CPU usage to 0% when waiting for stdin or sleeping. R=ajohnsen@google.com, iposva@google.com Review URL: https://codereview.chromium.org//297183003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36632 260f80e4-7a28-3924-810f-c04153c831b5