Igor Zinkovsky
de78922b12
ref isolate loop
13 years ago
Ben Noordhuis
03cb903e7e
isolates: remove references to uv_thread_self()
uv_thread_self() is difficult to implement on Windows in a way where the return
value is valid across threads. It's already been removed from upstream libuv.
13 years ago
Fedor Indutny
99679c6430
IsolateDebugger C++
13 years ago
Fedor Indutny
44e7033279
fixed debugger segfaults
13 years ago
Ben Noordhuis
9a79bb694e
Avoid unnecessary buffer to string conversion.
Speeds up the benchmark below by about 680% (0.5s versus 3.4s on my Core 2 Duo).
var crypto = require('crypto');
var hash = crypto.createHash('sha1');
var data = new Buffer(1024);
for (var i = 0; i < 128 * 1024; ++i) hash.update(data);
Fixes #2494 .
13 years ago
Ben Noordhuis
1e73e4c62f
isolates: remove global isolates list
No longer necessary, each isolate now waits until its subordinate isolates have
exited.
13 years ago
Ben Noordhuis
dadc30318f
isolates: implement message passing
Parent and child isolates can now pass arbitrary binary messages between each
other. The messages are sent and received through a thread-safe queue that
wakes up the event loop of the receiving thread.
13 years ago
Ryan Dahl
649dbbbd83
Add process.features.isolates
13 years ago
Ryan Dahl
5fc0c27d5c
move isolate V8 functions out of node.cc
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ryan Dahl
268476549e
Join all threads at end of main thread
Require reorganizing the isolates somewhat.
Add a very simple test.
13 years ago
Ryan Dahl
4d02e77f44
Move prog_start_time init after isolate assigned
13 years ago
Ryan Dahl
4f46ee4400
Add link-list of all isolates
13 years ago
Ryan Dahl
863f17f68c
Move uv loop initialization into isolate
13 years ago
Ryan Dahl
45bb10cc32
move thread_id to node_isolate.cc
13 years ago
Ben Noordhuis
809fdf26fb
isolates: add process.tid property, pass args to isolate
13 years ago
Ben Noordhuis
5866f1a9aa
Separate per-process and per-thread init logic.
13 years ago
Ben Noordhuis
2df81c57f6
Remove per-process globals from per-thread context.
13 years ago
Ben Noordhuis
eb6e60432b
isolates: add _newIsolate() and _joinIsolate() to process object
13 years ago
Ben Noordhuis
66116924ed
isolates: add atexit() functionality for isolates
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
036e59394a
Add process.features.isolates
13 years ago
Ryan Dahl
533a455274
move isolate V8 functions out of node.cc
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ryan Dahl
41062e71a7
Join all threads at end of main thread
Require reorganizing the isolates somewhat.
Add a very simple test.
13 years ago
Ryan Dahl
2d8c1fe1ed
Move prog_start_time init after isolate assigned
13 years ago
Ryan Dahl
1a433b9637
Add link-list of all isolates
13 years ago
Ryan Dahl
78a25696f1
Move uv loop initialization into isolate
13 years ago
Ryan Dahl
39a492799d
move thread_id to node_isolate.cc
13 years ago
Ben Noordhuis
d329fc7b09
isolates: add process.tid property, pass args to isolate
13 years ago
Ben Noordhuis
3aadd4fe76
Separate per-process and per-thread init logic.
13 years ago
Ben Noordhuis
8a538ce372
Remove per-process globals from per-thread context.
13 years ago
Ben Noordhuis
edbec3f8f3
isolates: add _newIsolate() and _joinIsolate() to process object
13 years ago
Ben Noordhuis
2a7a2ca986
isolates: add atexit() functionality for isolates
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Ben Noordhuis
aac717da8d
Add missing return statement in _debugPause() binding.
13 years ago
Fedor Indutny
b0388ccad0
pause command
13 years ago
Ben Noordhuis
4b455bafd0
module: improve process.dlopen() error messages
On Windows, that is. On Unices, we don't have a good way to translate dlopen()
and dlsym() errors (yet).
13 years ago
Igor Zinkovsky
500c8f45f5
Remove platform files, and use uv platform api
13 years ago
Igor Zinkovsky
88cc688731
fix windows build
13 years ago
Robert Mustacchi
2240486d3d
Add process.abort
13 years ago
Ryan Dahl
cced79d4a8
Move a few more global vars into struct
13 years ago
Ryan Dahl
e0a207c27a
Begin moving static vars into struct for isolates.
Only node.cc, stream_wrap.cc, and tcp_wrap.cc have been done. The rest still
need work.
13 years ago
Ryan Dahl
7547c7df1a
Deshadow, denamespace variables in node.cc
Prep for isolates.
13 years ago
Ben Noordhuis
fdf180f9ce
cli: fix output of --help
13 years ago
Bert Belder
641f2bedf3
Fix UVException errno bug
13 years ago
Bert Belder
ded97eb892
Exclude getbuf from the windows build
It's not used.
13 years ago
Bert Belder
e84edd2593
Win: make process.cwd and chdir support non-ansi characters
Closes GH-2215
13 years ago