diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-10-31 15:31:38 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2020-11-02 16:21:10 +0300 |
commit | dfc288e7fdbe888f4e134772de421684247f0bea (patch) | |
tree | 49ad0d1aa0dea08a2c9884cd299df0eef836d5dc /src/env.cc | |
parent | 09af8c822c8e931b29427aaec72604ab03fa54c1 (diff) |
src: clean up embedder API
Remove deprecated APIs (and deprecate one legacy API).
PR-URL: https://github.com/nodejs/node/pull/35897
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/env.cc')
-rw-r--r-- | src/env.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/env.cc b/src/env.cc index ba9ac1e31ff..eef024ab450 100644 --- a/src/env.cc +++ b/src/env.cc @@ -227,10 +227,6 @@ void IsolateData::MemoryInfo(MemoryTracker* tracker) const { // TODO(joyeecheung): implement MemoryRetainer in the option classes. } -void InitThreadLocalOnce() { - CHECK_EQ(0, uv_key_create(&Environment::thread_local_env)); -} - void TrackingTraceStateObserver::UpdateTraceCategoryState() { if (!env_->owns_process_state() || !env_->can_call_into_js()) { // Ideally, we’d have a consistent story that treats all threads/Environment @@ -370,10 +366,6 @@ Environment::Environment(IsolateData* isolate_data, inspector_agent_ = std::make_unique<inspector::Agent>(this); #endif - static uv_once_t init_once = UV_ONCE_INIT; - uv_once(&init_once, InitThreadLocalOnce); - uv_key_set(&thread_local_env, this); - if (tracing::AgentWriterHandle* writer = GetTracingAgentWriter()) { trace_state_observer_ = std::make_unique<TrackingTraceStateObserver>(this); if (TracingController* tracing_controller = writer->GetTracingController()) @@ -1143,8 +1135,6 @@ void AsyncHooks::grow_async_ids_stack() { async_ids_stack_.GetJSArray()).Check(); } -uv_key_t Environment::thread_local_env = {}; - void Environment::Exit(int exit_code) { if (options()->trace_exit) { HandleScope handle_scope(isolate()); |