GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't set `-fno-threadsafe-statics` on macOS as build option by kylef · Pull Request #22198 · nodejs/node

Conversation

@kylef

@kylef kylef commented Aug 8, 2018

Copy link
Copy Markdown
Contributor

This flag is not set on other platforms so it can produce inconsistent behaviour across platforms. For example, if you build an async node add-on which uses statics you can get race conditions due to static not supporting threads if the node add-on inherits from the Node common.gypi config. It is not disabled on other platforms such as Linux, it is not disabled by default in Xcode or clang.

This setting has been there since the initial commit that introduces common.gypi so it has been present since the start, it doesn't seem to be have added for any particular reason other than to potentially match the Xcode defaults at the time.

Checklist
  • make -j4 test (UNIX) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kylef
build: Don't set -fno-threadsafe-statics on macOS
595114a
This flag is not set on other platforms so it can produce inconsistent
behaviour across platforms. For example, if you build an async node add-on
which uses statics you can get race conditions due to static not supporting
threads if the node add-on inherits from the Node common.gypi config. It is not
disabled on other platforms such as Linux, it is not disabled by default in
Xcode or clang.

This setting has been there since the initial commit that introduces
`common.gypi` and thus has been there since the start, it doesn't seem to be
have added for any particular reason other than to potentially match the Xcode
defaults at the time.
@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to Node.js builds or CI infrastructure. label Aug 8, 2018
addaleax
addaleax approved these changes Aug 8, 2018
View reviewed changes
@addaleax addaleax added lts-watch-v8.x author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Aug 8, 2018
@addaleax

addaleax commented Aug 8, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Aug 9, 2018

Copy link
Copy Markdown
Member

@nodejs/platform-macos

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lundibundi lundibundi mentioned this pull request Aug 10, 2018
Potential flakes: 20180810 nodejs/reliability#11
Closed
jasnell
jasnell approved these changes Aug 12, 2018
View reviewed changes
@kylef kylef changed the title build: Don't set -fno-threadsafe-statics on macOS Don't set -fno-threadsafe-statics on macOS as build option Aug 23, 2018
@addaleax

addaleax commented Aug 23, 2018

Copy link
Copy Markdown
Member

Landed in 3ba54e4

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax closed this Aug 23, 2018
addaleax pushed a commit that referenced this pull request Aug 23, 2018
@kylef @addaleax
build: Don't set -fno-threadsafe-statics on macOS
3ba54e4
This flag is not set on other platforms so it can produce inconsistent
behaviour across platforms. For example, if you build an async node
add-on which uses statics you can get race conditions due to static
not supporting threads if the node add-on inherits from the Node
common.gypi config. It is not disabled on other platforms such as
Linux, it is not disabled by default in Xcode or clang.

This setting has been there since the initial commit that introduces
`common.gypi` and thus has been there since the start, it doesn't seem
to be have added for any particular reason other than to potentially
match the Xcode defaults at the time.

PR-URL: #22198
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@kylef
kylef deleted the kylef/no-disable-thread-safe-static branch August 23, 2018 23:16
targos pushed a commit that referenced this pull request Aug 24, 2018
@kylef @targos
build: Don't set -fno-threadsafe-statics on macOS
5c584ac
This flag is not set on other platforms so it can produce inconsistent
behaviour across platforms. For example, if you build an async node
add-on which uses statics you can get race conditions due to static
not supporting threads if the node add-on inherits from the Node
common.gypi config. It is not disabled on other platforms such as
Linux, it is not disabled by default in Xcode or clang.

This setting has been there since the initial commit that introduces
`common.gypi` and thus has been there since the start, it doesn't seem
to be have added for any particular reason other than to potentially
match the Xcode defaults at the time.

PR-URL: #22198
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Sep 3, 2018
@kylef @targos
build: Don't set -fno-threadsafe-statics on macOS
efe71e9
This flag is not set on other platforms so it can produce inconsistent
behaviour across platforms. For example, if you build an async node
add-on which uses statics you can get race conditions due to static
not supporting threads if the node add-on inherits from the Node
common.gypi config. It is not disabled on other platforms such as
Linux, it is not disabled by default in Xcode or clang.

This setting has been there since the initial commit that introduces
`common.gypi` and thus has been there since the start, it doesn't seem
to be have added for any particular reason other than to potentially
match the Xcode defaults at the time.

PR-URL: #22198
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
This was referenced Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
@BethGriggs BethGriggs removed the lts-watch-v8.x label Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. build Issues and PRs related to Node.js builds or CI infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@kylef @addaleax @Trott @jasnell @BethGriggs @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.