diff --git a/src/env-inl.h b/src/env-inl.h index bc800f6d5c9642..96e88b5c116adb 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -531,7 +531,8 @@ inline performance::performance_state* Environment::performance_state() { return performance_state_.get(); } -inline std::map* Environment::performance_marks() { +inline std::unordered_map* + Environment::performance_marks() { return &performance_marks_; } diff --git a/src/env.h b/src/env.h index 9c5ba966f4f514..6a5fbd0587f384 100644 --- a/src/env.h +++ b/src/env.h @@ -38,7 +38,6 @@ #include "node_http2_state.h" #include -#include #include #include #include @@ -646,7 +645,7 @@ class Environment { file_handle_read_wrap_freelist(); inline performance::performance_state* performance_state(); - inline std::map* performance_marks(); + inline std::unordered_map* performance_marks(); void CollectExceptionInfo(v8::Local context, int errorno, @@ -795,7 +794,7 @@ class Environment { int should_not_abort_scope_counter_ = 0; std::unique_ptr performance_state_; - std::map performance_marks_; + std::unordered_map performance_marks_; #if HAVE_INSPECTOR std::unique_ptr inspector_agent_;