Chromium Code Reviews| Index: src/IceGlobalContext.h |
| diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
| index a95a50376a5fb56da548600a874ce729df7fa1b3..848fe1221dcfa5bd33fc19795ffad13b5562d26e 100644 |
| --- a/src/IceGlobalContext.h |
| +++ b/src/IceGlobalContext.h |
| @@ -477,6 +477,11 @@ public: |
| return LockedPtr<StringPool>(Strings.get(), &StringsLock); |
| } |
| + /// Number of function blocks that can be queued before waiting for |
| + /// translation |
| + /// threads to consume. |
| + static constexpr size_t MaxOptQSize = 1 << 16; |
|
John
2016/04/11 16:28:00
Can this be moved to the .cpp file? I see no uses
Karl
2016/04/11 21:48:54
It is used to define OptQ below.
|
| + |
| private: |
| // Try to ensure mutexes are allocated on separate cache lines. |
| @@ -543,7 +548,8 @@ private: |
| Intrinsics IntrinsicsInfo; |
| // TODO(jpp): move to EmitterContext. |
| std::unique_ptr<ELFObjectWriter> ObjectWriter; |
| - static constexpr size_t MaxOptQSize = 1 << 16; |
| + // Value defining when to wake up the main parse thread. |
| + const size_t OptQWakeupSize; |
| BoundedProducerConsumerQueue<OptWorkItem, MaxOptQSize> OptQ; |
| BoundedProducerConsumerQueue<EmitterWorkItem> EmitQ; |
| // DataLowering is only ever used by a single thread at a time (either in |