Displaying 11 results from an estimated 11 matches for "reloadedbufferorerr".
2018 Mar 27
4
[pre-RFC] Data races in concurrent ThinLTO processes
...y link will read from the VFS cache
// (hopefully!) or from disk if the memory pressure wasn't too high. <- I don’t understand why we are reading from the cache file (via tryLoadingBuffer), though we already have the same content in OutputBuffer?
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer(); <-The explanation says this is done to reduce the memory pressure. But it’s not clear to me why this helps to reduce memory pressure, since we still have to keep
if (auto EC = ReloadedBufferOrErr.getError()) {...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...>
> // (hopefully!) or from disk if the memory pressure wasn't too
> high. <- I don’t understand why we are reading from the
> cache file (via tryLoadingBuffer), though we already have the same content
> in OutputBuffer?
>
> auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
> <-The explanation says this is done to reduce the memory pressure. But it’s
> not clear to me why this helps to reduce memory pressure, since we still
> have to keep
>
> if (auto EC = ReloadedBufferOrErr.getError())
> {...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...y link will read from the VFS cache
// (hopefully!) or from disk if the memory pressure wasn't too high. <- I don’t understand why we are reading from the cache file (via tryLoadingBuffer), though we already have the same content in OutputBuffer?
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer(); <-The explanation says this is done to reduce the memory pressure. But it’s not clear to me why this helps to reduce memory pressure, since we still have to keep
if (auto EC = ReloadedBufferOrErr.getError()) {...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...l read from the VFS cache
> // (hopefully!) or from disk if the memory pressure wasn't too high. <- I don’t understand why we are reading from the cache file (via tryLoadingBuffer), though we already have the same content in OutputBuffer?
> auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer(); <-The explanation says this is done to reduce the memory pressure. But it’s not clear to me why this helps to reduce memory pressure, since we still have to keep
> if (auto EC = ReloadedBufferOrErr.getError()) {...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...>
> // (hopefully!) or from disk if the memory pressure wasn't too
> high. <- I don’t understand why we are reading from the
> cache file (via tryLoadingBuffer), though we already have the same content
> in OutputBuffer?
>
> auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
> <-The explanation says this is done to reduce the memory pressure. But it’s
> not clear to me why this helps to reduce memory pressure, since we still
> have to keep
>
> if (auto EC = ReloadedBufferOrErr.getError())
> {...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...y link will read from the VFS cache
// (hopefully!) or from disk if the memory pressure wasn't too high. <- I don’t understand why we are reading from the cache file (via tryLoadingBuffer), though we already have the same content in OutputBuffer?
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer(); <-The explanation says this is done to reduce the memory pressure. But it’s not clear to me why this helps to reduce memory pressure, since we still have to keep
if (auto EC = ReloadedBufferOrErr.getError()) {...
2018 Mar 22
0
[pre-RFC] Data races in concurrent ThinLTO processes
...it will trigger a further discussion.
>
>
> Solution #0 (it won’t require much modifications):
> (a) If ‘rename’ fails, do not write into the cache directly (we don’t want to have non-atomic writes!).
> (b) If ‘rename’ fails, try to read from the cache.
> auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
> (c) If reading from the cache fails simply use the file that you just compiled directly (bypassing the cache entirely).
>
> This solution might cause cache misses (causing recompilations), but at least it should prevent data races when two ThinLTO pro...
2018 Mar 22
4
[pre-RFC] Data races in concurrent ThinLTO processes
...below. Hopefully, it will trigger a further discussion.
Solution #0 (it won't require much modifications):
(a) If 'rename' fails, do not write into the cache directly (we don't want to have non-atomic writes!).
(b) If 'rename' fails, try to read from the cache.
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
(c) If reading from the cache fails simply use the file that you just compiled directly (bypassing the cache entirely).
This solution might cause cache misses (causing recompilations), but at least it should prevent data races when two ThinLTO processes write...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...ly, it will trigger a
> further discussion.
>
>
> *Solution #0 (it won’t require much modifications):*
> (a) If ‘rename’ fails, do not write into the cache directly (we don’t
> want to have non-atomic writes!).
> (b) If ‘rename’ fails, try to read from the cache.
> *auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();*
> *(c)* If reading from the cache fails simply use the file that you just
> compiled directly (bypassing the cache entirely).
>
> This solution might cause cache misses (causing recompilations), but at
> least it should prevent data races when two...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...er discussion.
>>
>>
>> Solution #0 (it won’t require much modifications):
>> (a) If ‘rename’ fails, do not write into the cache directly (we don’t want to have non-atomic writes!).
>> (b) If ‘rename’ fails, try to read from the cache.
>> auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
>> (c) If reading from the cache fails simply use the file that you just compiled directly (bypassing the cache entirely).
>>
>> This solution might cause cache misses (causing recompilations), but at least it should prevent data races when two...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...see with the two solutions below. Hopefully, it will trigger a further discussion.
Solution #0 (it won’t require much modifications):
(a) If ‘rename’ fails, do not write into the cache directly (we don’t want to have non-atomic writes!).
(b) If ‘rename’ fails, try to read from the cache.
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
(c) If reading from the cache fails simply use the file that you just compiled directly (bypassing the cache entirely).
This solution might cause cache misses (causing recompilations), but at least it should prevent data races when two ThinLTO processes write to...