| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c923ce7 commit 8f37492
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2156,39 +2156,6 @@ added: v12.0.0 | |||
| 2156 | 2156 | Set default [`tls.DEFAULT_MIN_VERSION`][] to 'TLSv1.3'. Use to disable support | |
| 2157 | 2157 | for TLSv1.2, which is not as secure as TLSv1.3. | |
| 2158 | 2158 | ||
| 2159 | - ### `--trace-atomics-wait` | ||
| 2160 | - | ||
| 2161 | - <!-- YAML | ||
| 2162 | - added: v14.3.0 | ||
| 2163 | - deprecated: | ||
| 2164 | - - v18.8.0 | ||
| 2165 | - - v16.18.0 | ||
| 2166 | - --> | ||
| 2167 | - | ||
| 2168 | - > Stability: 0 - Deprecated | ||
| 2169 | - | ||
| 2170 | - Print short summaries of calls to [`Atomics.wait()`][] to stderr. | ||
| 2171 | - The output could look like this: | ||
| 2172 | - | ||
| 2173 | - ```text | ||
| 2174 | - (node:15701) [Thread 0] Atomics.wait(<address> + 0, 1, inf) started | ||
| 2175 | - (node:15701) [Thread 0] Atomics.wait(<address> + 0, 1, inf) did not wait because the values mismatched | ||
| 2176 | - (node:15701) [Thread 0] Atomics.wait(<address> + 0, 0, 10) started | ||
| 2177 | - (node:15701) [Thread 0] Atomics.wait(<address> + 0, 0, 10) timed out | ||
| 2178 | - (node:15701) [Thread 0] Atomics.wait(<address> + 4, 0, inf) started | ||
| 2179 | - (node:15701) [Thread 1] Atomics.wait(<address> + 4, -1, inf) started | ||
| 2180 | - (node:15701) [Thread 0] Atomics.wait(<address> + 4, 0, inf) was woken up by another thread | ||
| 2181 | - (node:15701) [Thread 1] Atomics.wait(<address> + 4, -1, inf) was woken up by another thread | ||
| 2182 | - ``` | ||
| 2183 | - | ||
| 2184 | - The fields here correspond to: | ||
| 2185 | - | ||
| 2186 | - * The thread id as given by [`worker_threads.threadId`][] | ||
| 2187 | - * The base address of the `SharedArrayBuffer` in question, as well as the | ||
| 2188 | - byte offset corresponding to the index passed to `Atomics.wait()` | ||
| 2189 | - * The expected value that was passed to `Atomics.wait()` | ||
| 2190 | - * The timeout passed to `Atomics.wait` | ||
| 2191 | - | ||
| 2192 | 2159 | ### `--trace-deprecation` | |
| 2193 | 2160 | ||
| 2194 | 2161 | <!-- YAML | |
@@ -2718,7 +2685,6 @@ one is included in the list below. | |||
| 2718 | 2685 | * `--tls-min-v1.1` | |
| 2719 | 2686 | * `--tls-min-v1.2` | |
| 2720 | 2687 | * `--tls-min-v1.3` | |
| 2721 | - * `--trace-atomics-wait` | ||
| 2722 | 2688 | * `--trace-deprecation` | |
| 2723 | 2689 | * `--trace-event-categories` | |
| 2724 | 2690 | * `--trace-event-file-pattern` | |
@@ -3181,7 +3147,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 | |||
| 3181 | 3147 | [`--print`]: #-p---print-script | |
| 3182 | 3148 | [`--redirect-warnings`]: #--redirect-warningsfile | |
| 3183 | 3149 | [`--require`]: #-r---require-module | |
| 3184 | - [`Atomics.wait()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait | ||
| 3185 | 3150 | [`Buffer`]: buffer.md#class-buffer | |
| 3186 | 3151 | [`CRYPTO_secure_malloc_init`]: https://www.openssl.org/docs/man3.0/man3/CRYPTO_secure_malloc_init.html | |
| 3187 | 3152 | [`NODE_OPTIONS`]: #node_optionsoptions | |
@@ -3201,7 +3166,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 | |||
| 3201 | 3166 | [`tls.DEFAULT_MIN_VERSION`]: tls.md#tlsdefault_min_version | |
| 3202 | 3167 | [`unhandledRejection`]: process.md#event-unhandledrejection | |
| 3203 | 3168 | [`v8.startupSnapshot` API]: v8.md#startup-snapshot-api | |
| 3204 | - [`worker_threads.threadId`]: worker_threads.md#workerthreadid | ||
| 3205 | 3169 | [collecting code coverage from tests]: test.md#collecting-code-coverage | |
| 3206 | 3170 | [conditional exports]: packages.md#conditional-exports | |
| 3207 | 3171 | [context-aware]: addons.md#context-aware-addons | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3313,6 +3313,9 @@ Values other than `undefined`, `null`, integer numbers, and integer strings | |||
| 3313 | 3313 | ||
| 3314 | 3314 | <!-- YAML | |
| 3315 | 3315 | changes: | |
| 3316 | + - version: REPLACEME | ||
| 3317 | + pr-url: https://github.com/nodejs/node/pull/52747 | ||
| 3318 | + description: End-of-Life. | ||
| 3316 | 3319 | - version: v22.0.0 | |
| 3317 | 3320 | pr-url: https://github.com/nodejs/node/pull/51179 | |
| 3318 | 3321 | description: Runtime deprecation. | |
@@ -3323,9 +3326,9 @@ changes: | |||
| 3323 | 3326 | description: Documentation-only deprecation. | |
| 3324 | 3327 | --> | |
| 3325 | 3328 | ||
| 3326 | - Type: Runtime | ||
| 3329 | + Type: End-of-Life | ||
| 3327 | 3330 | ||
| 3328 | - The [`--trace-atomics-wait`][] flag is deprecated because | ||
| 3331 | + The `--trace-atomics-wait` flag has been removed because | ||
| 3329 | 3332 | it uses the V8 hook `SetAtomicsWaitCallback`, | |
| 3330 | 3333 | that will be removed in a future V8 release. | |
| 3331 | 3334 | ||
@@ -3650,7 +3653,6 @@ is deprecated to better align with recommendations per [NIST SP 800-38D][]. | |||
| 3650 | 3653 | [`--force-node-api-uncaught-exceptions-policy`]: cli.md#--force-node-api-uncaught-exceptions-policy | |
| 3651 | 3654 | [`--pending-deprecation`]: cli.md#--pending-deprecation | |
| 3652 | 3655 | [`--throw-deprecation`]: cli.md#--throw-deprecation | |
| 3653 | - [`--trace-atomics-wait`]: cli.md#--trace-atomics-wait | ||
| 3654 | 3656 | [`--unhandled-rejections`]: cli.md#--unhandled-rejectionsmode | |
| 3655 | 3657 | [`Buffer.allocUnsafeSlow(size)`]: buffer.md#static-method-bufferallocunsafeslowsize | |
| 3656 | 3658 | [`Buffer.from(array)`]: buffer.md#static-method-bufferfromarray | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -478,11 +478,6 @@ but the option is supported for compatibility with older Node.js versions. | |||
| 478 | 478 | Set default minVersion to 'TLSv1.3'. Use to disable support for TLSv1.2 in | |
| 479 | 479 | favour of TLSv1.3, which is more secure. | |
| 480 | 480 | . | |
| 481 | - .It Fl -trace-atomics-wait | ||
| 482 | - Print short summaries of calls to | ||
| 483 | - .Sy Atomics.wait() . | ||
| 484 | - . | ||
| 485 | - This flag is deprecated. | ||
| 486 | 481 | .It Fl -trace-deprecation | |
| 487 | 482 | Print stack traces for deprecations. | |
| 488 | 483 | . | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -214,44 +214,6 @@ void Environment::InitializeInspector( | |||
| 214 | 214 | } | |
| 215 | 215 | #endif // HAVE_INSPECTOR | |
| 216 | 216 | ||
| 217 | - #define ATOMIC_WAIT_EVENTS(V) \ | ||
| 218 | - V(kStartWait, "started") \ | ||
| 219 | - V(kWokenUp, "was woken up by another thread") \ | ||
| 220 | - V(kTimedOut, "timed out") \ | ||
| 221 | - V(kTerminatedExecution, "was stopped by terminated execution") \ | ||
| 222 | - V(kAPIStopped, "was stopped through the embedder API") \ | ||
| 223 | - V(kNotEqual, "did not wait because the values mismatched") \ | ||
| 224 | - | ||
| 225 | - static void AtomicsWaitCallback(Isolate::AtomicsWaitEvent event, | ||
| 226 | - Local<v8::SharedArrayBuffer> array_buffer, | ||
| 227 | - size_t offset_in_bytes, int64_t value, | ||
| 228 | - double timeout_in_ms, | ||
| 229 | - Isolate::AtomicsWaitWakeHandle* stop_handle, | ||
| 230 | - void* data) { | ||
| 231 | - Environment* env = static_cast<Environment*>(data); | ||
| 232 | - | ||
| 233 | - const char* message = "(unknown event)"; | ||
| 234 | - switch (event) { | ||
| 235 | - #define V(key, msg) \ | ||
| 236 | - case Isolate::AtomicsWaitEvent::key: \ | ||
| 237 | - message = msg; \ | ||
| 238 | - break; | ||
| 239 | - ATOMIC_WAIT_EVENTS(V) | ||
| 240 | - #undef V | ||
| 241 | - } | ||
| 242 | - | ||
| 243 | - fprintf(stderr, | ||
| 244 | - "(node:%d) [Thread %" PRIu64 "] Atomics.wait(%p + %zx, %" PRId64 | ||
| 245 | - ", %.f) %s\n", | ||
| 246 | - static_cast<int>(uv_os_getpid()), | ||
| 247 | - env->thread_id(), | ||
| 248 | - array_buffer->Data(), | ||
| 249 | - offset_in_bytes, | ||
| 250 | - value, | ||
| 251 | - timeout_in_ms, | ||
| 252 | - message); | ||
| 253 | - } | ||
| 254 | - | ||
| 255 | 217 | void Environment::InitializeDiagnostics() { | |
| 256 | 218 | isolate_->GetHeapProfiler()->AddBuildEmbedderGraphCallback( | |
| 257 | 219 | Environment::BuildEmbedderGraph, this); | |
@@ -260,17 +222,6 @@ void Environment::InitializeDiagnostics() { | |||
| 260 | 222 | } | |
| 261 | 223 | if (options_->trace_uncaught) | |
| 262 | 224 | isolate_->SetCaptureStackTraceForUncaughtExceptions(true); | |
| 263 | - if (options_->trace_atomics_wait) { | ||
| 264 | - ProcessEmitDeprecationWarning( | ||
| 265 | - Environment::GetCurrent(isolate_), | ||
| 266 | - "The flag --trace-atomics-wait is deprecated.", | ||
| 267 | - "DEP0165"); | ||
| 268 | - isolate_->SetAtomicsWaitCallback(AtomicsWaitCallback, this); | ||
| 269 | - AddCleanupHook([](void* data) { | ||
| 270 | - Environment* env = static_cast<Environment*>(data); | ||
| 271 | - env->isolate()->SetAtomicsWaitCallback(nullptr, nullptr); | ||
| 272 | - }, this); | ||
| 273 | - } | ||
| 274 | 225 | if (options_->trace_promises) { | |
| 275 | 226 | isolate_->SetPromiseHook(TracePromises); | |
| 276 | 227 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -664,10 +664,6 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { | |||
| 664 | 664 | "throw an exception on deprecations", | |
| 665 | 665 | &EnvironmentOptions::throw_deprecation, | |
| 666 | 666 | kAllowedInEnvvar); | |
| 667 | - AddOption("--trace-atomics-wait", | ||
| 668 | - "(deprecated) trace Atomics.wait() operations", | ||
| 669 | - &EnvironmentOptions::trace_atomics_wait, | ||
| 670 | - kAllowedInEnvvar); | ||
| 671 | 667 | AddOption("--trace-deprecation", | |
| 672 | 668 | "show stack traces on deprecations", | |
| 673 | 669 | &EnvironmentOptions::trace_deprecation, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -178,7 +178,6 @@ class EnvironmentOptions : public Options { | |||
| 178 | 178 | std::string test_shard; | |
| 179 | 179 | std::vector<std::string> test_skip_pattern; | |
| 180 | 180 | bool throw_deprecation = false; | |
| 181 | - bool trace_atomics_wait = false; | ||
| 182 | 181 | bool trace_deprecation = false; | |
| 183 | 182 | bool trace_exit = false; | |
| 184 | 183 | bool trace_sync_io = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments