| Index: runtime/vm/isolate.cc
|
| diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
|
| index 06dfad2153440b67c04ff43cdeaa55d35a78a82e..bb29b65f4b4f947d05078ca111b3db3bd78152b6 100644
|
| --- a/runtime/vm/isolate.cc
|
| +++ b/runtime/vm/isolate.cc
|
| @@ -56,9 +56,6 @@ DEFINE_FLAG(bool, pause_isolates_on_exit, false,
|
| DEFINE_FLAG(bool, break_at_isolate_spawn, false,
|
| "Insert a one-time breakpoint at the entrypoint for all spawned "
|
| "isolates");
|
| -DEFINE_FLAG(charp, isolate_log_filter, NULL,
|
| - "Log isolates whose name include the filter. "
|
| - "Default: service isolate log messages are suppressed.");
|
|
|
| DEFINE_FLAG(int, new_gen_semi_max_size, (kWordSize <= 4) ? 16 : 32,
|
| "Max size of new gen semi space in MB");
|
| @@ -699,7 +696,6 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
|
| edge_counter_increment_size_(-1),
|
| compiler_stats_(NULL),
|
| is_service_isolate_(false),
|
| - log_(new class Log()),
|
| stacktrace_(NULL),
|
| stack_frame_index_(-1),
|
| last_allocationprofile_accumulator_reset_timestamp_(0),
|
| @@ -747,8 +743,6 @@ Isolate::~Isolate() {
|
| message_handler_ = NULL; // Fail fast if we send messages to a dead isolate.
|
| ASSERT(deopt_context_ == NULL); // No deopt in progress when isolate deleted.
|
| delete spawn_state_;
|
| - delete log_;
|
| - log_ = NULL;
|
| delete object_id_ring_;
|
| object_id_ring_ = NULL;
|
| delete pause_loop_monitor_;
|
| @@ -907,23 +901,6 @@ void Isolate::BuildName(const char* name_prefix) {
|
| }
|
|
|
|
|
| -Log* Isolate::Log() const {
|
| - if (FLAG_isolate_log_filter == NULL) {
|
| - if (is_service_isolate_) {
|
| - // By default, do not log for the service isolate.
|
| - return Log::NoOpLog();
|
| - }
|
| - return log_;
|
| - }
|
| - ASSERT(name_ != NULL);
|
| - if (strstr(name_, FLAG_isolate_log_filter) == NULL) {
|
| - // Filter does not match, do not log for this isolate.
|
| - return Log::NoOpLog();
|
| - }
|
| - return log_;
|
| -}
|
| -
|
| -
|
| // TODO(5411455): Use flag to override default value and Validate the
|
| // stack size by querying OS.
|
| uword Isolate::GetSpecifiedStackSize() {
|
| @@ -1565,13 +1542,13 @@ void Isolate::Shutdown() {
|
| "\tisolate: %s\n", name());
|
| }
|
| if (FLAG_print_metrics) {
|
| - LogBlock lb(this);
|
| - ISL_Print("Printing metrics for %s\n", name());
|
| + LogBlock lb;
|
| + THR_Print("Printing metrics for %s\n", name());
|
| #define ISOLATE_METRIC_PRINT(type, variable, name, unit) \
|
| - ISL_Print("%s\n", metric_##variable##_.ToString());
|
| + THR_Print("%s\n", metric_##variable##_.ToString());
|
| ISOLATE_METRIC_LIST(ISOLATE_METRIC_PRINT);
|
| #undef ISOLATE_METRIC_PRINT
|
| - ISL_Print("\n");
|
| + THR_Print("\n");
|
| }
|
| }
|
|
|
|
|