The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / src / node.cc @ 31c510ca

History | View | Annotate | Download (76.1 KB)

# Date Author Comment
270c2deb 01/09/2014 05:01 PM Timothy J Fontaine

src: OnFatalError handler must abort()

We are in an unrecoverable state if v8 throws a FatalError, actually
ask the operating system to dump core in this case.

Fixes #6836

015ec052 07/25/2013 06:29 PM Ben Noordhuis

src: fix process.getuid() return value

And process.getgid() too.

Commit ed80638 changed fs.chown() and fs.fchown() to only accept
unsigned integers. Make process.getuid() and process.getgid() follow
suit.

This commit should unbreak npm on OS X - it's hitting the new 'uid must...

6d91bd37 07/10/2013 01:46 PM Trevor Norris

node: call MakeDomainCallback in all domain cases

Previously there was no way to pass a Function callback directly to
MakeCallback and support domains. The check has been added so that users
never have to worry about supporting domains while using MakeCallback.

806e3008 07/04/2013 08:20 PM Ben Noordhuis

src: fix memory leak in UsingDomains()

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....

4e8cdddd 05/14/2013 04:51 PM isaacs

src: use StringBytes for DecodeWrite/DecodeBytes/Encode

Bonus: this makes node::Encode actually work properly with base64,
ucs2, hex, etc.

ccabd4a6 04/08/2013 10:48 AM Rod Vagg

process: expose NODE_MODULE_VERSION in process.versions

38106da7 04/02/2013 12:44 PM Brian White

src: remove unused variables

902d6cb6 03/28/2013 03:12 PM Ben Noordhuis

src: tie process.versions.uv to uv_version_string()

f0b68892 03/27/2013 12:26 AM Trevor Norris

domain: fix domain callback from MakeCallback

Since _tickCallback and _tickDomainCallback were both called from
MakeCallback, it was possible for a callback to be called that required
a domain directly to _tickCallback.

The fix was to implement process.usingDomains(). This will set all...

a0867e1c 03/17/2013 08:45 AM Trevor Norris

node: revert removal of MakeCallback

In 0168109 an implementation of MakeCallback was accidently removed. It
has been re-added.

6076a25e 03/08/2013 09:56 PM isaacs

core: Append filename properly in dlopen on windows

Fixes simple/test-module-loading on win32

5038f401 03/06/2013 02:44 PM isaacs

node: Add --throw-deprecation

Extremely handy when tracking down a flood of recursive nextTick warnings.

3d20905b 03/06/2013 09:25 AM Ben Noordhuis

handle_wrap: replace unref_ field with flags_ field

Prep work for a follow-up commit that adds support for close callbacks.

74784b63 03/06/2013 05:10 AM isaacs

cares: Set process._errno, not global.errno

This makes test-internet pass

4f7f8bbd 03/01/2013 08:36 PM Trevor Norris

events: _events to object and undefined not null

By making sure the _events is always an object there is one less check
that needs to be performed by emit.

Use undefined instead of null. typeof checks are a lot faster than
isArray.

There are a few places where the this._events check cannot be removed...

12d0f0bd 02/28/2013 05:11 PM Ben Noordhuis

lib, src: remove errno global

Remove the errno global. It's a property on the process object now.

Fixes #3095.

95862b23 02/27/2013 05:47 PM isaacs

core: Mark exit() calls with status codes

Also, exit with 128+n for signal exit n, as is The Unix Way.

30e5366b 02/26/2013 07:46 PM isaacs

core: Use a uv_signal for debug listener

Starting the debugger directly in the SIGUSR1 signal handler results in
a malloc lock contention ~1% of the time. It hangs the test, which is
annoying on a daily basis to all of us, but it also is pretty terrible...

51f6e6a9 02/25/2013 05:45 PM Ben Noordhuis

src, test: downgrade to v8 3.14 api

57ef6591 02/20/2013 08:15 AM Ben Noordhuis

node: code cleanup, make tick_infobox static

It's not used outside of src/node.cc so make it static.

ec420006 02/15/2013 09:37 PM Trevor Norris

process: allow ticker to cross communicate better

Using external memory values allows for quick communication between js
and cc land, so we can check if the js land callback needs to be run.
(this is where I meant that manually tracking nextTickQueue.length would...

86c0745a 02/15/2013 09:13 PM Trevor Norris

process: streamlining tick callback logic

  • Callbacks from spinner now calls its own function, separate from the
    tickCallback logic
  • MakeCallback will call a domain specific function if a domain is
    detected
  • _tickCallback assumes no domains, until nextTick receives a callback...
95ac576b 02/15/2013 09:13 PM isaacs

Revert "Move MakeCallback to JS"

This reverts commit 0109a9f90acdfdb287436676f2384f7b072fbb6a.

Also included: Port all the changes to process._makeCallback into the
C++ version. Immediate nextTick, etc.

This yields a slight boost in several benchmarks. V8 is optimizing and...

cd372510 02/15/2013 07:11 PM Shigeki Ohtsu

timer: move setImmediate from timer to uv_check

uv_check is the robust place to invoke setImmediate callbacks after
process.nextTick and before timers(setTimeout/setInterval)

aff8d9e7 02/11/2013 11:30 AM Ben Noordhuis

node: don't malloc in FromConstructorTemplate

  • allocate space for argv on the stack
  • move the declaration to node_internals.h
01681091 01/30/2013 12:04 PM isaacs

node: Do not use fn.apply() in process._makeCallback

15508589 01/25/2013 05:25 PM isaacs

addon: Pass module object to NODE_MODULE init function

mainly to allow native addons to export single functions on
rather than being restricted to operating on an existing
object.

Init functions now receive exports as the first argument, like
before, but also the module object as the second argument, if they...

952e42de 01/16/2013 05:38 PM Ben Noordhuis

deps: upgrade libuv to 4ba03dd

7788a6bf 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Undefined()

109f73b2 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to True() and False()

01c3d0aa 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Local<>::New

6573fc35 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to Integer::New

412b3cee 01/07/2013 11:39 AM Ben Noordhuis

src: pass node_isolate to String::Empty

5d0816bf 01/07/2013 11:39 AM Ben Noordhuis

src: make node_isolate global

V8 3.15 has new API functions that let you specify the Isolate. V8 and
node.js generally spend 0.5-3.5% of the time in pthread_getspecific(),
looking up the current Isolate. Avoid that overhead by making "our"
isolate global so we can pass it around. The change to the new API is...

8adebb92 01/07/2013 11:19 AM Dean McNamee

node: move symbol caching to Load()

4401bb47 12/29/2012 01:37 PM isaacs

domain: Do not use uncaughtException handler

This adds a process._fatalException method which is called into from
C++ in order to either emit the 'uncaughtException' method, or emit
'error' on the active domain.

The 'uncaughtException' event is an implementation detail that it would...

d607d856 12/18/2012 10:16 AM Ben Noordhuis

node: remove idle gc

Remove the idle garbage collector. Its purpose was to run the garbage collector
when the application is idle but it never worked quite right. Many people have
complained over the years that with heaps > 128 MB, a node.js process never...

8ccfed2e 12/18/2012 10:07 AM Ben Noordhuis

node: s/-/_/ in add-on symbol name

Replace dashes with underscores. When loading foo-bar.node, look for
foo_bar_module, not foo-bar_module. The latter is not a legal symbol name.

3ece130e 12/06/2012 11:14 AM Ben Noordhuis

process: add getgroups(), setgroups(), initgroups()

DRY the getuid(), getgid(), etc. functions while we're at it.

f657ce68 11/20/2012 07:21 PM Scott Blomquist

windows: add tracing with performance counters

Patch by Henry Rawas and Scott Blomquist.

06810b29 10/31/2012 08:25 PM Jan Wynholds

tracing: add systemtap support

cb6d084d 10/20/2012 09:03 AM Ben Noordhuis

node: update description of --print

4b238b4c 10/13/2012 07:16 PM Nathan Rajlich

Merge remote-tracking branch 'origin/v0.8'

Conflicts:
AUTHORS
ChangeLog
deps/uv/test/runner-win.c
doc/api/process.markdown
lib/repl.js
src/node_crypto.cc
src/node_version.h

8c5f269f 10/07/2012 05:22 PM Andrew Paprocki

Fix -Wsizeof-array-argument compiler warning.

fbb0ee6f 10/04/2012 05:18 AM koichik

buffer: fix byteLength with UTF-16LE

Fixes #4075.

ae40f1c4 09/28/2012 12:47 PM isaacs

Merge remote-tracking branch 'ry/v0.8' into v0.8-merge

Conflicts:
AUTHORS
ChangeLog
deps/openssl/openssl.gyp
deps/uv/src/unix/linux/linux-core.c
deps/uv/src/unix/process.c
deps/uv/src/unix/stream.c
deps/v8/src/arm/builtins-arm.cc
deps/v8/src/arm/code-stubs-arm.cc...

63ff449d 09/18/2012 02:58 AM Fedor Indutny

crypto: bring module into modern age

Introduce 'buffer' encoding, allow returning and giving buffers as
arguments of 'crypto' routines.

Fix #3278

96ca59fb 09/17/2012 01:20 AM Ben Noordhuis

process: fix setuid() and setgid() error reporting

Zero errno before calling getgrnam_r() or getpwnam_r(). If errno had previously
been clobbered, node would report the wrong error.

83b1dda1 09/04/2012 08:39 AM Ben Noordhuis

cli: make argument to -p optional

f03c3203 09/03/2012 10:42 AM Ben Noordhuis

cli: make -p equivalent to -pe

Fixes #3938.

2c5828b6 08/20/2012 06:37 PM Bert Belder

Remove node_io_watcher

34fc9788 08/20/2012 06:32 PM Bert Belder

Delete the old node_signal_watcher code

600a6468 08/20/2012 06:18 PM Bert Belder

process: use uv_signal instead of ev_signal

a177f55b 08/17/2012 07:05 AM Ben Noordhuis

Merge remote-tracking branch 'origin/v0.8'

Conflicts:
ChangeLog
src/node_version.h
test/message/stdin_messages.out
tools/install.py

786e1e87 08/14/2012 05:00 PM Ben Noordhuis

buffer, crypto: fix buffer decoding

Before this commit, DecodeWrite() mistakenly tried to convert buffers to
UTF-8 strings which:

a) produced invalid character sequences when the buffer contained
octets > 127, and
b) lead to spurious test failures because DecodeWrite() wrote less bytes...
9693d333 08/09/2012 07:25 PM Ben Noordhuis

node: remove process.uvCounters()

22d03c91 08/06/2012 07:49 PM Bert Belder

node.cc: include ares.h

3bf1846b 08/03/2012 07:23 PM isaacs

Merge remote-tracking branch 'ry/v0.8'

Conflicts:
ChangeLog
deps/uv/src/unix/sunos.c
deps/uv/test/test-tcp-unexpected-read.c
src/node_version.h

b3cf3f35 07/30/2012 11:21 AM isaacs

Report errors properly from --eval and stdin

f6923470 07/26/2012 07:19 PM Ben Noordhuis

node: don't scan add-on for "init" symbol

From this commit onwards, use of the NODE_MODULE macro is mandatory. This lets
node guard against modules that are ABI incompatible.

59b584c9 07/26/2012 04:32 PM Ben Noordhuis

node: remove PrepareTick() and CheckTick()

Superfluous after commit 430d94e. Pointed out by Shigeki Ohtsu.

febffc10 07/23/2012 12:34 PM Bert Belder

Merge branch 'v0.8'

Conflicts:
lib/tls.js

688859af 07/23/2012 07:15 AM Peter Rybin

debugger: wake up the event loop when a debugger command is dispatched

When the event loop was blocked in epoll / kqueue or similar, debugger
commands wouldn't be processed. This patch fixes that by adding an
uv_async handle which is triggered when a debugger command is...

430d94ef 07/19/2012 01:29 PM isaacs

nextTick: Preserve depth in error/reentry cases

When there is an error that is thrown in a nextTick function, which is
then handled by a domain or other process.on('uncaughtException')
handler, if the error handler also adds a nextTick and triggers
multiple MakeCallback events (ie, by doing some I/O), then it would...

0109a9f9 07/16/2012 09:45 PM isaacs

Move MakeCallback to JS

424cd5a0 07/11/2012 08:38 PM isaacs

Merge remote-tracking branch 'ry/v0.8' into v0.8-merge

Conflicts:
src/node_version.h

d3d83d7b 07/08/2012 11:53 PM Nathan Rajlich

process: throw a TypeError when anything but an Array is passed to hrtime()

Fixes #3664.

fee02db7 06/29/2012 11:29 AM Ben Noordhuis

Re-apply commit e307468.

The V8 assert got triggered by a missing HandleScope::Close().

0581afe5 06/29/2012 11:03 AM Bert Belder

Revert "Fix #3521 Use an object as the process.env proto"

The reverted commit caused a v8 assertion to trigger in debug mode.
This reverts commit e3074689f501eea413c29b99defac29659a2b615.

e3074689 06/26/2012 12:08 PM isaacs

Fix #3521 Use an object as the process.env proto

For some reason, though, it looks like EnvGetter is not called for the
key `__proto__`, so I can't make the info->Data() accessible. However,
putting the Object.prototype keys there, in such a way that they are not...

48c3d200 06/21/2012 03:29 PM isaacs

Apply --no-deprecation to C++ warnings as well

5b39929d 06/21/2012 03:05 PM isaacs

Add --no-deprecation and --trace-deprecation flags

f0ce9844 06/20/2012 09:05 PM Ben Noordhuis

fs: make fs.watchFile() work on windows

196207c2 06/18/2012 05:56 PM Trent Mick

node: remove unused flags and files

Drop vestigial `process.installPrefix`, `node --vars`, NODE_CFLAGS and
NODE_PREFIX.

Also removed unused node_config.h.in (replaced with config.gypi a while back).

6d70a4ae 06/17/2012 04:14 PM Andreas Madsen

node: change the constructor name of process from EventEmitter to process

39d23378 06/14/2012 09:26 AM Igor Zinkovsky

Windows: don't fire GC ETW events without ETW consumers

09be360a 06/13/2012 07:28 PM Bert Belder

Inherited FDs should not accidentally be inherited by child processes

This makes test-child-process-detached pass on Windows.

35a1421e 06/13/2012 06:36 PM Igor Zinkovsky

Windows: Enable ETW events.
This commit enables ETW events to be fired on Windows for existing
DTrace probes. ETW instrumentation is enabled by default. It
is possible to build node.exe without ETW instrumentation by
using --without-etw option with configure script.

039fac63 05/22/2012 10:14 AM Ben Noordhuis

deps: upgrade libuv to a478847

The event loop's reference counting scheme in this version of libuv has changed.
Update the libuv bindings to reflect that fact.

968b49ba 05/21/2012 12:30 PM Oleg Efimov

Check for tabs in source line in DisplayExceptionLine

Fix for joyent/node#3280

a3753b49 05/16/2012 07:32 PM isaacs

Revert "Fix #3242 Actually deprecate 'binary' buffer encoding"

This reverts commit 5979f096d1b702ca2ba95664a0bbc8210109775b.

Related:
- #3279
- #3278

643f00d3 05/15/2012 05:21 PM isaacs

Merge branch 'master' into v0.6-merge

Conflicts:
src/node.cc

e813e349 05/15/2012 03:01 PM Ben Noordhuis

node: make _getActiveHandles() return user objects

Before this commit, process._getActiveHandles() returned a list of internal
handles. Now, it returns the user objects that handles are attached to.

For example, a tcp_wrap handle will now return its parent net.Socket object....

5f040653 05/15/2012 03:00 PM Ben Noordhuis

process: add _getActiveHandles(), _getActiveRequests()

  • process._getActiveHandles() returns a list containing all active handles
    (timers, sockets, etc.) that have not been unref'd.
  • process._getActiveRequests() returns a list of active requests (in-flight...
636add24 05/15/2012 02:59 PM Ben Noordhuis

req_wrap: share process_symbol, domain_symbol

Share persistent strings process_symbol and domain_symbol across compilation
units. Avoids redefinition errors when src/node.cc includes src/req_wrap.h.

07be9fc3 05/09/2012 06:12 PM isaacs

Merge remote-tracking branch 'ry/v0.6' into v0.6-merge

Conflicts:
Makefile
lib/zlib.js
src/node.cc
src/node.js

81403336 05/09/2012 02:54 PM Felix Geisendörfer

Fix process.nextTick throw call sites

This patch now reports the proper throw call site for exceptions
triggered within process.nextTick. So instead of this:

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^...

5979f096 05/09/2012 01:08 PM isaacs

Fix #3242 Actually deprecate 'binary' buffer encoding

78e831a3 05/08/2012 10:02 AM Ben Noordhuis

Don't use _snprintf() on Windows, it's not safe.

_snprintf() doesn't zero-terminate the buffer on overflow. Use the hand-rolled
version that lives in src/node_internals.h.

c33d3174 05/04/2012 06:56 PM Marcel Laverdet

node: un-revert 9a6012e

The crashes in debug mode after adding Locker are not caused by
Locker. Locker is merely exposing issues that already existed. Some of
these issues have since been fixed in 70635753.

This reverts commit 407181538b5193f6810bf06a2056a200265c0e93....

e4a8d261 05/03/2012 10:11 AM Ben Noordhuis

addon: add AtExit() function

Lets native addons register exit hooks that run after the event loop has quit
but before the VM is killed.

Fixes #3147.

b894521b 05/01/2012 05:09 PM Nathan Rajlich

process: ensure that "exit" doesn't get emitted twice on a natural exit

Fixes "test/simple/test-process-exit.js".

248f552a 04/30/2012 01:42 PM Nathan Rajlich

process: ensure that the "exit" event always has "code" given

Upon "normal" exiting of Node (i.e. the event loop completes naturally),
the "code" parameter was not being passed to the "exit" event listeners.

Be consistent. Tests included.

5648d95c 04/25/2012 07:10 AM Ben Noordhuis

Remove unused local variable.

6292df65 04/24/2012 02:31 PM Nathan Rajlich

process: comment for consistency

ef3a874f 04/24/2012 02:31 PM Nathan Rajlich

process: set _print_eval even when --eval is not passed

This is for scripts being fed from stdin:

$ echo "{ foo: 'bar' }" | node -p
10ce3d12 04/17/2012 04:14 PM isaacs

Domain hooks in ReqWrap<T> and MakeCallback

a26bee8f 04/17/2012 04:14 PM isaacs

MakeCallback: Consistent symbol usage

88f94fa2 04/17/2012 03:00 PM isaacs

MakeCallback: abort() if not a function

ac1aaddc 04/17/2012 02:56 PM isaacs

MakeCallback: Return the callback return value