File tree 1 file changed +0
-17
lines changed
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -134,11 +134,6 @@ using v8::V8;
134
134
using v8::Value;
135
135
136
136
namespace per_process {
137
- // TODO(joyeecheung): these are no longer necessary. Remove them.
138
- // See: https://github.com/nodejs/node/pull/25302#discussion_r244924196
139
- // Isolate on the main thread
140
- static Mutex main_isolate_mutex;
141
- static Isolate* main_isolate;
142
137
143
138
// node_revert.h
144
139
// Bit flag used to track security reverts.
@@ -855,12 +850,6 @@ inline int Start(uv_loop_t* event_loop,
855
850
UNREACHABLE ();
856
851
}
857
852
858
- {
859
- Mutex::ScopedLock scoped_lock (per_process::main_isolate_mutex);
860
- CHECK_NULL (per_process::main_isolate);
861
- per_process::main_isolate = isolate;
862
- }
863
-
864
853
int exit_code;
865
854
{
866
855
Locker locker (isolate);
@@ -881,12 +870,6 @@ inline int Start(uv_loop_t* event_loop,
881
870
Start (isolate, isolate_data.get (), args, exec_args);
882
871
}
883
872
884
- {
885
- Mutex::ScopedLock scoped_lock (per_process::main_isolate_mutex);
886
- CHECK_EQ (per_process::main_isolate, isolate);
887
- per_process::main_isolate = nullptr ;
888
- }
889
-
890
873
isolate->Dispose ();
891
874
per_process::v8_platform.Platform ()->UnregisterIsolate (isolate);
892
875
You can’t perform that action at this time.
0 commit comments