OLD | NEW |
1 Object allocation and lifetime in ICE | 1 Object allocation and lifetime in ICE |
2 ===================================== | 2 ===================================== |
3 | 3 |
4 This document discusses object lifetime and scoping issues, starting with | 4 This document discusses object lifetime and scoping issues, starting with |
5 bitcode parsing and ending with ELF file emission. | 5 bitcode parsing and ending with ELF file emission. |
6 | 6 |
7 Multithreaded translation model | 7 Multithreaded translation model |
8 ------------------------------- | 8 ------------------------------- |
9 | 9 |
10 A single thread is responsible for parsing PNaCl bitcode (possibly concurrently | 10 A single thread is responsible for parsing PNaCl bitcode (possibly concurrently |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 assembler buffers. It also includes finer-grain access to constant pool | 117 assembler buffers. It also includes finer-grain access to constant pool |
118 entries, as well as output streams for verbose debugging output. | 118 entries, as well as output streams for verbose debugging output. |
119 | 119 |
120 If locked access to constant pools becomes a bottleneck, we can investigate | 120 If locked access to constant pools becomes a bottleneck, we can investigate |
121 thread-local caches of constants (as mentioned earlier). Also, it should be | 121 thread-local caches of constants (as mentioned earlier). Also, it should be |
122 safe though slightly less efficient to allow duplicate copies of constants | 122 safe though slightly less efficient to allow duplicate copies of constants |
123 across threads (which could be de-dupped by the writer at the end). | 123 across threads (which could be de-dupped by the writer at the end). |
124 | 124 |
125 We will use ThreadSanitizer as a way to detect potential data races in the | 125 We will use ThreadSanitizer as a way to detect potential data races in the |
126 implementation. | 126 implementation. |
OLD | NEW |