| Index: src/interface-descriptors.h
|
| diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
|
| index 3a46114f4bb249e9ac937e31b024bcf838469bcf..c006cd1a5149601f6e323d393e74c96d46e9e72e 100644
|
| --- a/src/interface-descriptors.h
|
| +++ b/src/interface-descriptors.h
|
| @@ -216,6 +216,8 @@ class CallInterfaceDescriptor {
|
|
|
| void Initialize(Isolate* isolate, CallDescriptors::Key key) {
|
| if (!data()->IsInitialized()) {
|
| + // We should only initialize descriptors on the isolate's main thread.
|
| + DCHECK(ThreadId::Current().Equals(isolate->thread_id()));
|
| CallInterfaceDescriptorData* d = isolate->call_descriptor_data(key);
|
| DCHECK(d == data()); // d should be a modifiable pointer to data().
|
| InitializePlatformSpecific(d);
|
|
|