Skip to content

async_hooks: skip sanity checks when disabled#15454

Closed
AndreasMadsen wants to merge 1 commit intonodejs:masterfrom
AndreasMadsen:async-hooks-opt-in-checks
Closed

async_hooks: skip sanity checks when disabled#15454
AndreasMadsen wants to merge 1 commit intonodejs:masterfrom
AndreasMadsen:async-hooks-opt-in-checks

Conversation

@AndreasMadsen
Copy link
Copy Markdown
Member

@AndreasMadsen AndreasMadsen commented Sep 18, 2017

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

async_hooks

While async_hooks is experimental we should skip the sanity checks when async_hooks is disabled. If someone would like a flag as well, we could add another async_hooks_field that is > 0 when either the flag is used or the hooks are enabled. Should be trivial.

This makes the sanity checks stricter when async_hooks is enabled, so be sure to run CITGM before merging this. However, since async_hooks is rarely enabled there shouldn't be any issues.

CI: https://ci.nodejs.org/job/node-test-pull-request/10120/

Ref: #14387
Ref: #14722
Ref: #14717
Ref: #15448

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.