Repository navigation
Conversation
- using an overload of Alloc that does the same that was being done
inside `Buffer::New`
The overload we now call inside `smalloc.cc` takes care of the same as
the code that was removed:
```cc
if (length == 0)
return Alloc(env, obj, nullptr, length, type);
char* data = static_cast<char*>(malloc(length));
if (data == nullptr) {
FatalError("node::smalloc::Alloc(v8::Handle<v8::Object>, size_t,"
" v8::ExternalArrayType)", "Out Of Memory");
}
Alloc(env, obj, data, length, type);
```
Contributor
|
@bnoordhuis I think this is cruft and can be removed. See something I might be missing? |
Member
Contributor
Author
|
CI is failing due to github problems :( |
Member
|
There are two CI runs in progress at the moment, it's possible this one got queued. @rvagg? |
Member
|
I fixed the queueing recently so that no build slave could have two jobs on it simultaneously which should solve older queuing problems we were having but Jenkins is kind of terrible at managing its git clones so things get messed up a bit sometimes. Submitted again @ https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/300/ so let's see .. |
Contributor
|
None of those look to be failing because of this PR. |
Contributor
|
What's the status on this? CI looks ok. |
thlorenz
added a commit
that referenced
this pull request
Mar 19, 2015
- using an overload of Alloc that does the same that was being done
inside `Buffer::New`
The overload we now call inside `smalloc.cc` takes care of the same as
the code that was removed:
if (length == 0)
return Alloc(env, obj, nullptr, length, type);
char* data = static_cast<char*>(malloc(length));
if (data == nullptr) {
FatalError("node::smalloc::Alloc(v8::Handle<v8::Object>, size_t,"
" v8::ExternalArrayType)", "Out Of Memory");
}
Alloc(env, obj, data, length, type);
PR-URL: #1144
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Member
|
Thanks Thorsten, landed in 813a536. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
inside
Buffer::NewThe overload we now call inside
smalloc.cctakes care of the same asthe code that was removed:
/cc @trevnorris