- Jul 11, 2013
-
-
Ben Noordhuis authored
Be very careful with forward declarations, MSVC is quite picky and rather stupid about it. Fixes #5810.
-
- Jul 07, 2013
-
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Avoids the overhead of creating a new Local every time we unwrap a Persistent handle.
-
Ben Noordhuis authored
-
- Jul 10, 2013
-
-
isaacs authored
Sniffing instanceof a child class in the parent class's method is Doing It Wrong.
-
isaacs authored
-
isaacs authored
-
isaacs authored
Instead of destroying sockets when there are no pending requests, put them in a freeSockets list, and unref() them so that they do not keep the event loop open. Also, set the default max sockets to Infinity, to prevent the awful surprising deadlocks that happen when more connections are made.
-
isaacs authored
-
Nathan Rajlich authored
When node is compiled with the --without-ssl flag.
-
Nathan Rajlich authored
Closes #5807.
-
- Jul 09, 2013
-
-
Trevor Norris authored
When creating a slice, make sure to propagate the originating parent. This is to prevent a buf.parent.parent.(etc) scenario. Also speed up the constructor by preventing lookup of non-existant properties by setting them beforehand in the prototype. (see https://github.com/joyent/node/commit/7ce5a31#commitcomment-3332779)
-
Timothy J Fontaine authored
-
Trevor Norris authored
Since the SlabAllocator was removed the buffer length/offset is no longer sent to the onread callback. The benchmarks have been updated to reflect that.
-
Trevor Norris authored
Fix bug where if dev passed a callback to Alloc then called AllocDispose it wouldn't bother to pass the data to the callback and instead would just free it.
-
Trevor Norris authored
Zero size allocations don't necessarily mean that data == NULL. So instead check each value seperately and perform necessary operations.
-
- Jul 07, 2013
-
-
Ben Noordhuis authored
This should fix the Android build.
-
- Jul 08, 2013
-
-
Peter Rust authored
There was previously up to a second exit delay when exiting node right after an http request/response, due to the utcDate() function doing a setTimeout to update the cached date/time. Fixing this should increase the performance of our http tests.
-
Timothy J Fontaine authored
-
- Jul 07, 2013
-
-
Ben Noordhuis authored
The SunOS linker doesn't support it. Fixes build breakage introduced in commit 9b3de60d.
-
- Jul 06, 2013
-
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Checks that `using` statements in src/*.cc are properly sorted and actually used.
-
Ben Noordhuis authored
This commit removes our homegrown typed arrays implementation and enables V8's built-in typed arrays implementation.
-
Ben Noordhuis authored
abort() generates a nice core dump and makes it easy to catch fatal errors in one's debugger of choice.
-
Ben Noordhuis authored
Debug builds of V8 now actively check that the string only contains ASCII characters (i.e. doesn't contain bytes with the high bit set.)
-
Ben Noordhuis authored
This is a big commit that touches just about every file in the src/ directory. The V8 API has changed in significant ways. The most important changes are: * Binding functions take a const v8::FunctionCallbackInfo<T>& argument rather than a const v8::Arguments& argument. * Binding functions return void rather than v8::Handle<v8::Value>. The return value is returned with the args.GetReturnValue().Set() family of functions. * v8::Persistent<T> no longer derives from v8::Handle<T> and no longer allows you to directly dereference the object that the persistent handle points to. This means that the common pattern of caching oft-used JS values in a persistent handle no longer quite works, you first need to reconstruct a v8::Local<T> from the persistent handle with the Local<T>::New(isolate, persistent) factory method. A handful of (internal) convenience classes and functions have been added to make dealing with the new API a little easier. The most visible one is node::Cached<T>, which wraps a v8::Persistent<T> with some template sugar. It can hold arbitrary types but so far it's exclusively used for v8::Strings (which was by far the most commonly cached handle type.)
-
Ben Noordhuis authored
The previous commit removes our patch that builds V8 at -O2 rather than -O3 so there is not much point in keeping the configure switch around. The reason it did so was to work around an assortment of compiler and linker bugs. In particular, certain combinations of g++ and binutils generate bad or no code when -ffunction-sections or -finline-functions is enabled (which -O3 implicitly does.) It was quite the problem back in the day because everyone and his dog built from source. Now that we have prebuilt binaries and packages available, there is no longer a pressing need to be so accommodating. If you experience spurious (or possibly not so spurious) segmentation faults after this commit, you need to upgrade your compiler/linker toolchain.
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
- Jul 07, 2013
-
-
Trevor Norris authored
Better to compare fixed addresses than to use pointer indirection.
-
- Jul 06, 2013
-
-
Fedor Indutny authored
-
Fedor Indutny authored
-
Trevor Norris authored
maxTickDepth has been removed, but mention of it was left in the docs. Also added explanation that nextTick is allowed to starve I/O.
-
- Jul 05, 2013
-
-
Ben Noordhuis authored
Conflicts: lib/buffer.js lib/http.js src/node.cc
-
Ben Noordhuis authored
UsingDomains() assigned process_tickCallback when it had already been set by MakeCallback() a few frames down the call stack. Dispose the handle first or we'll retain whatever is in the lexical closure of the old process._tickCallback function. Fixes #5795.
-
- Jul 04, 2013
-
-
Jeff Barczewski authored
If a transform stream has objectMode = true, it should allow falsey values other than (null) like 0, false, ''. null is reserved to indicate stream eof but other falsey values should flow through properly.
-
Trevor Norris authored
The function arguments offset and length are now no longer used since all I/O requests now use discretely allocated memory.
-
Trevor Norris authored
To use realloc the implementation had to be changed to use malloc/free.
-
Trevor Norris authored
Now that Buffer instantiation has improved, the SlabAllocator is an unnecessary layer of complexity preventing further performance optimizations. Currently there is a small performance loss with very small stream requests, but this will soon be addressed.
-
- Jul 03, 2013
-
-
Fedor Indutny authored
X509_STORE_add_cert increment reference of passed `x509` cert, `X509_free` must be called to avoid memory leak.
-