From 7767aaa89d0abebed1f458044fa450596dd380ac Mon Sep 17 00:00:00 2001 From: Kyle Farnung Date: Mon, 22 Jan 2018 11:43:35 -0800 Subject: [PATCH] http2,perf_hooks: perf state using AliasedBuffer This is the portion of be2cbcc that is not in dea44b9. Update performance_state to use AliasedBuffer and update usage sites. PR-URL: https://github.com/nodejs/node/pull/18300 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- src/node_http2.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_http2.cc b/src/node_http2.cc index 442fa64b6ca981..21265bb15b91bd 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -531,7 +531,8 @@ Http2Session::~Http2Session() { } inline bool HasHttp2Observer(Environment* env) { - uint32_t* observers = env->performance_state()->observers; + AliasedBuffer& observers = + env->performance_state()->observers; return observers[performance::NODE_PERFORMANCE_ENTRY_TYPE_HTTP2] != 0; }