Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src: remove a stale comment in async_hooks
This removes a comment relevant to runtime checks for `async_hooks`.

Even if `async_hooks` is experimental, the check pointed by the comment
is performed as default unless `--no-force-async-hooks-checks` is given
from CLI arguments.

Refs: #16318
Refs: #15454 (comment)

Signed-off-by: Daeyeon Jeong [email protected]
  • Loading branch information
daeyeon committed Jun 19, 2022
commit c9a04779aa06bf692812132ad8bce76e21a0c5fd
2 changes: 0 additions & 2 deletions src/env-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ inline bool AsyncHooks::pop_async_context(double async_id) {

// Ask for the async_id to be restored as a check that the stack
// hasn't been corrupted.
// Since async_hooks is experimental, do only perform the check
// when async_hooks is enabled.
if (UNLIKELY(fields_[kCheck] > 0 &&
async_id_fields_[kExecutionAsyncId] != async_id)) {
FailWithCorruptedAsyncStack(async_id);
Expand Down