GeezerVison is showing github.com — Revert "src: remove trace_sync_io_ from env" · nodejs/node@aa252eb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/env-inl.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -465,7 +465,7 @@ inline void Environment::set_printed_error(bool value) { |
465 | 465 | } |
466 | 466 |
|
467 | 467 | inline void Environment::set_trace_sync_io(bool value) { |
468 | | - options_->trace_sync_io = value; |
| 468 | + trace_sync_io_ = value; |
469 | 469 | } |
470 | 470 |
|
471 | 471 | inline bool Environment::abort_on_uncaught_exception() const { |
|
Collapse file
Copy file name to clipboardExpand all lines: src/env.cc +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -567,7 +567,7 @@ void Environment::StopProfilerIdleNotifier() { |
567 | 567 | } |
568 | 568 |
|
569 | 569 | void Environment::PrintSyncTrace() const { |
570 | | - if (!options_->trace_sync_io) return; |
| 570 | + if (!trace_sync_io_) return; |
571 | 571 |
|
572 | 572 | HandleScope handle_scope(isolate()); |
573 | 573 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: src/env.h +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1272,6 +1272,7 @@ class Environment : public MemoryRetainer { |
1272 | 1272 | const uint64_t timer_base_; |
1273 | 1273 | std::shared_ptr<KVStore> env_vars_; |
1274 | 1274 | bool printed_error_ = false; |
| 1275 | + bool trace_sync_io_ = false; |
1275 | 1276 | bool emit_env_nonstring_warning_ = true; |
1276 | 1277 | bool emit_err_name_warning_ = true; |
1277 | 1278 | size_t async_callback_scope_depth_ = 0; |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_main_instance.cc +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -111,6 +111,8 @@ int NodeMainInstance::Run() { |
111 | 111 | env->async_hooks()->pop_async_id(1); |
112 | 112 | } |
113 | 113 |
|
| 114 | + env->set_trace_sync_io(env->options()->trace_sync_io); |
| 115 | + |
114 | 116 | { |
115 | 117 | SealHandleScope seal(isolate_); |
116 | 118 | bool more; |
|