Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

buffer: align chunks on 8-byte boundary #9375

Closed
wants to merge 1 commit into from

Conversation

indutny
Copy link
Member

@indutny indutny commented Mar 11, 2015

When slicing global pool - ensure that the underlying buffer's data ptr
is 8-byte alignment to do not ruin expectations of 3rd party C++ addons.

NOTE: 0.10 node.js always returned aligned pointers and v0.12 should do
this too for compatibility.

Suggested reviewer: @trevnorris @bnoordhuis

Cross-reference to PR in io.js: nodejs/node#1126

When slicing global pool - ensure that the underlying buffer's data ptr
is 8-byte alignment to do not ruin expectations of 3rd party C++ addons.

NOTE: 0.10 node.js always returned aligned pointers and v0.12 should do
this too for compatibility.
@trevnorris
Copy link

LGTM

indutny added a commit that referenced this pull request Mar 11, 2015
When slicing global pool - ensure that the underlying buffer's data ptr
is 8-byte alignment to do not ruin expectations of 3rd party C++ addons.

NOTE: 0.10 node.js always returned aligned pointers and v0.12 should do
this too for compatibility.

PR-URL: #9375
Reviewed-By: Trevor Norris <[email protected]>
@indutny
Copy link
Member Author

indutny commented Mar 11, 2015

Landed in a33f23c, thank you!

@indutny indutny closed this Mar 11, 2015
@indutny indutny deleted the feature/alignment branch March 11, 2015 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants