diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-03 16:32:00 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-02-06 15:44:42 +0100 |
commit | 74a8215a8699f89ee4b82ca616a4eafa3b11203b (patch) | |
tree | 1f2c8a7c47eae80a043c4b3ccf7372f4e8c7e292 /src/process_wrap.cc | |
parent | a9723df1b76777899a3819839cb7e8f0e2efaef1 (diff) | |
download | android-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.tar.gz android-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.tar.bz2 android-node-v8-74a8215a8699f89ee4b82ca616a4eafa3b11203b.zip |
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
Diffstat (limited to 'src/process_wrap.cc')
-rw-r--r-- | src/process_wrap.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/process_wrap.cc b/src/process_wrap.cc index 5c4282ffb0..6600a044c8 100644 --- a/src/process_wrap.cc +++ b/src/process_wrap.cc @@ -21,7 +21,6 @@ #include <node.h> #include <handle_wrap.h> -#include <node_vars.h> #include <pipe_wrap.h> #include <string.h> #include <stdlib.h> @@ -176,10 +175,10 @@ class ProcessWrap : public HandleWrap { Get(String::NewSymbol("windowsVerbatimArguments"))->IsTrue(); #endif - int r = uv_spawn(Loop(), &wrap->process_, options); + int r = uv_spawn(uv_default_loop(), &wrap->process_, options); if (r) { - SetErrno(uv_last_error(Loop())); + SetErrno(uv_last_error(uv_default_loop())); } else { wrap->SetHandle((uv_handle_t*)&wrap->process_); @@ -212,7 +211,7 @@ class ProcessWrap : public HandleWrap { int r = uv_process_kill(&wrap->process_, signal); - if (r) SetErrno(uv_last_error(Loop())); + if (r) SetErrno(uv_last_error(uv_default_loop())); return scope.Close(Integer::New(r)); } |