Skip to content
Permalink
Browse files

Merge pull request #8386 from stenzek/gcc-array-workaround

FixedSizeQueue: Work around GCC generating large amounts of debug info
  • Loading branch information...
stenzek committed Oct 9, 2019
2 parents 19ed641 + 4fd262d commit 6e613f4f82085edac10587562849c79ec5d342a0
Showing with 7 additions and 1 deletion.
  1. +7 −1 Source/Core/Common/FixedSizeQueue.h
@@ -21,7 +21,13 @@ class FixedSizeQueue
void clear()
{
if constexpr (!std::is_trivial_v<T>)
storage = {};
{
// The clear of non-trivial objects previously used "storage = {}". However, this causes GCC
// to take a very long time to compile the file/function, as well as generating huge amounts
// of debug information (~2GB object file, ~600MB of debug info).
while (count > 0)
pop();
}

head = 0;
tail = 0;

0 comments on commit 6e613f4

Please sign in to comment.
You can’t perform that action at this time.