Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: increased externalized string length #36451

Closed

Conversation

codebytere
Copy link
Member

Refs https://chromium-review.googlesource.com/c/v8/v8/+/2565511.

V8 has removed the ability to externalize internal external uncached strings via MakeExternal, as it is not thread-safe. This means that the examples that are in the test at present will begin to fail once Node.js rolls in the relevant CL, because their small size made them internal external uncached strings. This preemptively fixes the issue by making the strings bigger so they become internal & external & cached.

Electron hit and fixed this in electron/electron@0bf50b0

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

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 9, 2020
@gireeshpunathil
Copy link
Member

@codebytere -

  • Is there a rule / definition on what makes up a small string?
  • does this mean small strings cannot be reliably used in Node.js?

@codebytere
Copy link
Member Author

@gireeshpunathil unfortunately V8's bug tracker was pretty unclear about this - I couldn't find a specific minimum length specified. I don't believe this affects other aspects of Node.js beyond direct calls to externalizeString, no. The larger tracking bug is here: https://bugs.chromium.org/p/v8/issues/detail?id=7790 which may provide more insight?

@codebytere codebytere added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 12, 2020
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 12, 2020
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@codebytere
Copy link
Member Author

Landed in 7c702f8

@codebytere codebytere closed this Dec 13, 2020
codebytere added a commit that referenced this pull request Dec 13, 2020
PR-URL: #36451
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
@codebytere codebytere deleted the up-externalized-string-length branch December 13, 2020 06:25
targos pushed a commit that referenced this pull request Dec 21, 2020
PR-URL: #36451
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
targos pushed a commit that referenced this pull request May 1, 2021
PR-URL: #36451
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
@danielleadams danielleadams mentioned this pull request May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants