| Index: runtime/lib/isolate.cc
|
| diff --git a/runtime/lib/isolate.cc b/runtime/lib/isolate.cc
|
| index 75a9a34c3622a3671c7fcc314fd4d9e513482b8e..437769e8e54f6bff0691a166a67ecd7e8cae324e 100644
|
| --- a/runtime/lib/isolate.cc
|
| +++ b/runtime/lib/isolate.cc
|
| @@ -298,7 +298,10 @@ DEFINE_NATIVE_ENTRY(IsolateNatives_start, 2) {
|
| strdup(library_url),
|
| strdup(class_name),
|
| port_id));
|
| - new Thread(RunIsolate, data);
|
| + int result = Thread::Start(RunIsolate, data);
|
| + if (result != 0) {
|
| + FATAL1("Failed to start isolate thread %d", result);
|
| + }
|
| } else {
|
| // Error spawning the isolate, maybe due to initialization errors or
|
| // errors while loading the application into spawned isolate, shut
|
|
|