[PATCH] LLD: Implement our own future and use that for FileArchive::preload().

Rui Ueyama ruiu at google.com
Mon Mar 2 19:45:34 PST 2015


std::promise and std::future in old version of libstdc++ are buggy.
I think that's the reason why LLD tests was flaky on Ubuntu 13
buildbots until we disable file preloading.

In this patch, I implemented very simple future and used that in
FileArchive. Compared to std::promise and std::futureu, it lacks
many features, but should suffice for our purpose.

http://reviews.llvm.org/D8025

Files:
  include/lld/Core/Parallel.h
  lib/Core/Resolver.cpp
  lib/ReaderWriter/FileArchive.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8025.21075.patch
Type: text/x-patch
Size: 4770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150303/9bf448a3/attachment.bin>


More information about the llvm-commits mailing list