-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Time to play with V8 4.6 #2688
Comments
They broke it again! 😢 |
OK it's all working on my side, here is a first CI: https://ci.nodejs.org/job/node-test-commit/501/ |
@McFarts Here's the V8 team's blog post on 4.6: http://v8project.blogspot.de/2015/08/v8-release-46.html There are no plans that I am aware of to add shared-memory multi-threading to V8 as JavaScript is single threaded as per the language spec. Perhaps your multi-core use-cases can be addressed by the cluster module, or perhaps by workers (#2133) if/when they end up landing in Node. |
Knowing your aforementioned use case (game server?) I think you should focus on other optimizations. You can't multi-thread that in JavaScript. |
@McFarts Could you please ask this on stack-overflow instead? This really isn't the place for the questions you are asking. |
NAN 2.0.8 test suite passes. |
Could you please check if #2793 works in 4.6? |
v8 4.6.85.19 should fix #2793. |
This ready for a CI run? |
... the |
OK now it's compiling: https://ci.nodejs.org/job/node-test-commit/675/ |
Looks promising. There is just one failing test on some platforms:
|
@targos That implies allocation failed. v8 chose one stupid and cryptic error message for that. |
Though that stack looks like an older Buffer implementation. |
@trevnorris what do you mean ? The line numbers match with what's on master. |
@targos my bad. got implementations mixed up. But as for the test, may need to add extra conditionals in the tests to make sure allocation failure doesn't cause the test to fail. Though that would lead me to believe v8 is consuming more memory? Since it didn't fail before. |
The problem it seems is that v8 4.6> doesn't initiate a mark-sweep and then simply fails the allocation.
|
@targos Do those two commits live on 4.7? |
Yes but with a different diff. See for example 2b8a06b vs v8/v8@0d01728. |
Already tested with vanilla v8 4.7 master with the same result as the custom v4.6 branch. |
@targos yeah, we need them. I can backport them by hand. Do you want me to do it? |
Yes please. I tried to do it but had compilation issues. You will probably know what to do more than me since you wrote the original patches. |
Pushed two commits to |
Without review? The Reviewed-By tags are lies now. |
@bnoordhuis this is a staging branch, right? I suppose someone will add them when merging to real branch |
IMO, it would be better to do reviews on |
@ofrobots well, all previous commits wasn't reviewed, so I did it the same way as it was. |
Guess we may put comments on commits. |
I agree that it would be better to have a proper review process for Initiate the branchI suggest to cut it from Keep the branch up to date with
|
I'd vote for rebase as well. See also previous discussion for the 4.5 branch. If there is a commit added to resolve a conflict during rebase, that gets reviewed as well.
I don't think we have to have a PR for each one of them. I don't think the goal is to review V8 changes but rather to review us picking up those changes at whatever frequency makes sense for us. |
On case insensitive platforms, the rule catches the debug module under npm and eslint and a source directory in next versions of V8. Do the same with the Release directory for consistency. Ref: nodejs#2286 (comment) Ref: nodejs#2688 (comment) PR-URL: nodejs#3144 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
Rebased on master, updated V8 to 4.6.85.23 and cherry-picked all backports. |
@bnoordhuis It seems that |
We could use |
Chrome 46 is out so V8 4.6 is now stable. |
V8 4.6 is now on master. |
Now that 4.5 is on master, we can start working on the
vee-eight-4.6
integration branch.I upgraded V8 to 4.6.85.12 (https://github.com/nodejs/node/tree/vee-eight-4.6). Sadly I cannot make it to compile. Here is the error I get:
I am able to compile d8 without any issue on the same version.
/cc @nodejs/v8
The text was updated successfully, but these errors were encountered: