- 15 Oct, 2013 35 commits
-
-
Peter Griess authored
Summary: - Replace instances of '#ifdef FOLLY_*' guards with '#if FOLLY_*'. This allows the configuration system to disable the guard by defining the value to 0 using the -D compiler flag. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: delong.j@fb.com FB internal diff: D999129
-
bsimmers authored
Summary: I missed this one in my original diff. It's a static property of the format string and the number of arguments passed. Test Plan: automated tests. saw that my buggy format() call aborted instead of throwing an exception Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998409 @override-unit-failures
-
Peter Griess authored
Summary: - int64_t is a long on x86_64, but a long long on 32-bit. - Build a uint64_t from pthread_self() before performing masking on it. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998598
-
Peter Griess authored
Summary: - Looks like libc++ doesn't support operator bool() for streams? Use !fail() explicitly to work around this. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998596
-
Peter Griess authored
Summary: - libc++ doesn't ship with this method defined. Just use Boost's version of this instead. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: meyering@fb.com FB internal diff: D998593
-
Peter Griess authored
Summary: - Clang/libc++ has a static_assert that blows when tuple_element is invoked with a tuple of length 0. Unfortunately if we embed this construct in an enable_if, it still gets evaluated. To work around this, wrap this in a last_element struct and specialize the 0-element case there explicitly. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998591
-
Peter Griess authored
Summary: - Looks like the default terminate() in libc++ doesn't reflect the exception message to stderr. Instead, it just writes a generic message. Reflect that in the test. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998590
-
Peter Griess authored
Summary: - This macro is computed based on whether or not we support x86 intrinsics in RWSpinLock.h; re-use it rather than re-computing this (and getting it wrong). Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: oyamauchi@fb.com FB internal diff: D998586
-
Peter Griess authored
Summary: - Non-GNU standard C++ libraries may have a different layout; only report memory usage when we know we're using GNU's. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998584
-
Peter Griess authored
Summary: - Apple doesn't provide timed sychronization primitives. We already handle this in Sychronization.h, but our unit tests were being run for all platforms. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998581
-
Peter Griess authored
Summary: - What it says. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D998579
-
Peter Griess authored
Summary: - Linux considers MAP_ANON deprecated, but it's all that Apple defines. Manually set up a mapping of one to the other. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: mwang@fb.com FB internal diff: D998511
-
Peter Griess authored
Summary: - This test uses the benchmarking library, which it wasn't linking; fix. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: delong.j@fb.com FB internal diff: D998510
-
Peter Griess authored
Summary: - Use PRIu64 and friends from <cinttypes> to handle uint64_t requiring different format strings on different platforms. - Fix lint errors. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: simpkins@fb.com FB internal diff: D998512
-
Peter Griess authored
Summary: - Detect Linux and define the HAVE_LINUX autoconf macro. Use this to elide eventfd tests in tests/Makefile.am. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: delong.j@fb.com FB internal diff: D998507
-
Peter Griess authored
Summary: - By default, GCC only warns on unknown attributes. As a result our FOLLY_HAVE_IFUNC test doesn't actually catch instances where we don't support this. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: oyamauchi@fb.com FB internal diff: D998506
-
Peter Griess authored
Summary: - On hosts with case-insensitive filesystems, adding folly/ directory to the include path causes String.h to get picked up as <string.h>. Add 'nostdinc' to the AM_INIT_AUTOMAKE() invocation to remove these standard includes from the set of compile flags. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: delong.j@fb.com FB internal diff: D998505
-
Peter Griess authored
Summary: - Use AM_LDFLAGS rather than AM_CXXFLAGS to link against Boost. - Link against $(BOOST_REGEX_LIB) in addition to other Boost libs. - Add $(BOOST_LDFLAGS) to AM_LDFLAGS so that we get the library path that we configured Boost to use. - Add -lpthread to AM_LDFLAGS rather than ad-hoc '-lpthread' additions to various library builds. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: oyamauchi@fb.com FB internal diff: D998504
-
Peter Griess authored
Summary: - Link ConcurrentSkiplistBenchmark with $(BOOST_SYSTEM_LIB) to resolve linker errors for boost::system symbols. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: oyamauchi@fb.com FB internal diff: D998503
-
Soren Lassen authored
Test Plan: unittest Reviewed By: tudorb@fb.com FB internal diff: D987910
-
Soren Lassen authored
Test Plan: fbconfig folly/test --platform=gcc-4.8.1-glibc-2.17 && fbmake dbg _bin/folly/test/range_test && _bin/folly/test/range_test Reviewed By: tudorb@fb.com FB internal diff: D989142
-
Tim Hanson authored
Summary: For GCC 3.6+, define a template specialization for MaxString<__uint128_t>. @override-unit-failures Test Plan: Unit tests Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D995290
-
Rajat Goel authored
Summary: It helps if you can directly see the offending URI from the error message (specially when you dont want to handle errors and let process crash). @override-unit-failures Test Plan: unit-tests Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D993025
-
Louis Brandy authored
Summary: See title. This avoids unnecessary copies when needing to access string data directly. These will throw if the dynamic isn't a string. @override-unit-failures Test Plan: Unit test. Reviewed By: delong.j@fb.com FB internal diff: D986331
-
Daniel Sommermann authored
Summary: It is dangerous to pass memory into an IOBuf since usually in C++ programs, memory is allocated using `new`, while IOBuf by default frees memory that it has taken ownership of with `free()`. For now, add a comment warning about this (address sanitizer will warn you about this when it happens in a live process). Test Plan: NA Reviewed By: tudorb@fb.com FB internal diff: D990056 @override-unit-failures
-
Tudor Bosman authored
Summary: There were a few bugs, actually: 1. prevSize < jemallocMinInPlaceExpandable compared an element count with a byte size; this hid the next bug for a while (as we needed 4096 ThreadLocalPtr objects in order to trigger it) 2. if rallocm(... ALLOCM_NO_MOVE) succeeds in expanding in place, we don't increment elementsCapacity_, which is bad. Switched to allocm() so we always take advantage of all memory that was actually allocated. @override-unit-failures Clearly unrelated +Warning: This development build of composer is over 30 days old. It is recommended to update it by running "hphp/test/slow/ext_phar/composer.php self-update" to get the latest version. Test Plan: test added, which failed before and doesn't any more Reviewed By: lucian@fb.com FB internal diff: D987009
-
Tudor Bosman authored
Test Plan: compiled Reviewed By: lucian@fb.com FB internal diff: D986998
-
Louis Brandy authored
Summary: We don't test this functionality (pulling a number out as a string). Almost commited a bug this would have caught. Test Plan: Run the test. Reviewed By: delong.j@fb.com FB internal diff: D987607
-
Tom Jackson authored
Summary: For testing containment and using the value in one operation. Test Plan: Unit tests Reviewed By: tudorb@fb.com FB internal diff: D986986
-
Nicholas Ormrod authored
Summary: Changed #include "..." to #include <...> where possible. Test Plan: recompile Reviewed By: delong.j@fb.com FB internal diff: D986803
-
Philip Pronin authored
Test Plan: fbconfig -r folly && fbmake opt -j32 @override-unit-failures Reviewed By: soren@fb.com FB internal diff: D985595
-
Stephane Sezer authored
Summary: String concatenation was not performed correctly in folly::Uri::authority(). This commit fixes the issue by pre-allocating enough space and buliding the string left to right. Test Plan: Unit tests in folly/test. Reviewed By: tudorb@fb.com FB internal diff: D981069
-
Tudor Bosman authored
Test Plan: fbstring_test, test added Reviewed By: ngbronson@fb.com FB internal diff: D983278
-
Andrew Gallagher authored
Summary: Defines a macro to portably test whether address sanitizer is enabled across the different compilers we use. Test Plan: Compiled source file with address sanitizer and verified macro was defined. Reviewed By: delong.j@fb.com FB internal diff: D978196
-
Stephane Sezer authored
Summary: facebook::strings::URL has an authority() method. Having the same thing for folly::Uri help converting users of the URL class. This method just takes username, password, host, and port, and builds a string in the form <username>:<password>@<host>:<port>. Test Plan: None. Reviewed By: rajat@fb.com FB internal diff: D977450
-
- 22 Sep, 2013 5 commits
-
-
Louis Brandy authored
Summary: Replacing boost::shared_ptr with std::shared_ptr. Test Plan: . Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D932119
-
Tudor Bosman authored
Summary: It is possible for subprocess_test_parent_death_helper's child to signal the parent between the check for "caught" and the call to "pause()", and therefore pause() blocks forever. Test Plan: ran the test in a loop Reviewed By: delong.j@fb.com FB internal diff: D979872
-
Tudor Bosman authored
Test Plan: used them Reviewed By: soren@fb.com FB internal diff: D976393
-
Tudor Bosman authored
Summary: No magic; what it says on the package. Test Plan: atomic_bitset_test Reviewed By: delong.j@fb.com FB internal diff: D971875
-
Max Wang authored
Summary: Maybe at some point somebody won't want malloc, e.g. me. Test Plan: Ran AtomicHashArrayTest using an mmap allocator. Reviewed By: delong.j@fb.com FB internal diff: D960192
-