- 16 Mar, 2019 4 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Remove include of `glog` from various places. Reviewed By: spalamarchuk Differential Revision: D14494311 fbshipit-source-id: 122b63a726a08802d7b4ef6b55b304e9800c258d
-
Joe Loser authored
Summary: - Fix a few shellcheck warnings on `bootstrap-osx-homebrew.sh`. - This will help when new changes are made to this script as shellcheck is run internally. Pull Request resolved: https://github.com/facebook/folly/pull/1058 Differential Revision: D14493361 Pulled By: yfeldblum fbshipit-source-id: e46f9d0e329fd1ebe16820bdb5614c53363c5dfe
-
Andrii Grynenko authored
Reviewed By: A5he Differential Revision: D14396454 fbshipit-source-id: a00b1eab527237c885e04413db1a0a413121d91b
-
Andrii Grynenko authored
Summary: This makes it possible to add future APIs to primitives built using fibers::Baton. Reviewed By: A5he Differential Revision: D14396094 fbshipit-source-id: bf64a31c25ed4dd92b8c484cb4256078efdc6262
-
- 15 Mar, 2019 4 commits
-
-
Joe Loser authored
Summary: - Remove unneeded typename for a using alias in `F14Table.h`. Pull Request resolved: https://github.com/facebook/folly/pull/1056 Reviewed By: nbronson Differential Revision: D14473219 Pulled By: yfeldblum fbshipit-source-id: a6ac26c42dbca219ce123aff00b1ee7079068007
-
James Gill authored
Summary: contains() is part of the c++20 spec. This implements it, and refactors count() to use contains(). Reviewed By: nbronson Differential Revision: D14426805 fbshipit-source-id: 2435124e9c0a8eeb4e53109f0ddac884c227c781
-
James Gill authored
Summary: The heterogenous count() method currently returns size_type, unlike similar methods (normal count(), F14Map.count() methods). This standardizes it. Reviewed By: nbronson Differential Revision: D14426807 fbshipit-source-id: 140be39fcda99c9f82ced3962ddcbdd1d5f53ba6
-
Fuat Geleri authored
Summary: When a user counter is added to benchmarks, the counter's value is written as a bare integer. This change gives chance to user to either still keep it reported as bare integer, a time value or a metric value. Differential Revision: D14451341 fbshipit-source-id: 95e64a89c201bb385d9a403f3442fa70c2ac7e2a
-
- 14 Mar, 2019 1 commit
-
-
Ilya Maykov authored
Summary: Make AsyncIOTest.cpp conditionally depend on $LIBAIO_FOUND in CMakeLists.txt. Reviewed By: yfeldblum Differential Revision: D14365682 fbshipit-source-id: 5ac7dc25174ab48ed1de8846956e69c7759fc9bd
-
- 13 Mar, 2019 3 commits
-
-
Kirk Shoop authored
Summary: convert all executors in pushmi and all executor concepts and usage in pushmi to use `schedule()` Reviewed By: ericniebler Differential Revision: D13463902 fbshipit-source-id: 01eac4fe0b5cd49afbd95118db769db59a3b968c
-
Orvid King authored
Summary: It's dead. Reviewed By: yfeldblum Differential Revision: D14425042 fbshipit-source-id: 098de614955eedd7ccc733858db85b997d01d9e0
-
Orvid King authored
Summary: At least make it possible to do things correctly. Reviewed By: yfeldblum, LeeHowes Differential Revision: D14426753 fbshipit-source-id: 63b3572175224dbbda828981a5c9f067a5e35f33
-
- 12 Mar, 2019 9 commits
-
-
Dan Melnic authored
Summary: Fix typo Reviewed By: aary Differential Revision: D14411090 fbshipit-source-id: 4ca0273201facebc815db26d23662d0d192c831f
-
Yedidya Feldblum authored
Summary: [Folly] Move `FOLLY_DEFINE_CPO` to `folly/lang/CustomizationPoint.h`. And move `StaticConst` to top-level `folly` namespace and into `folly/lang/`. And Americanize the spellings of words in the comments. Reviewed By: ericniebler, lewissbaker Differential Revision: D14402315 fbshipit-source-id: e13dbc9d471ee73ba0a289d375c235734334b920
-
Jacob Lacouture authored
Summary: future.then([] -> T) currently returns Future<T> future.then([] -> Try<T>) currently returns Future<Try<T>> This changes that behavior, such that future.then([] -> Try<T>) will return Future<T>. This is a more desirable interface for futures. It also simplifies implementation of a separate task (propagating exceptions more efficiently through chained callbacks) because it enables us to internally substitute lambdas returning T with lambdas returning Try<T>. Reviewed By: yfeldblum, ryantimwilson Differential Revision: D14318624 fbshipit-source-id: 51363e82ceb86bfecf87ae661188be9ca3dd8002
-
Orvid King authored
Summary: Instead prefer the NetworkSocket version Reviewed By: yfeldblum Differential Revision: D14371075 fbshipit-source-id: 5dfa34e21b360cae987b1ffb1dd5f5ee7b105623
-
Joe Loser authored
Summary: - Instead of defining our own version of whether a type is nothrow swappable, reuse the existing definition from `folly/Traits.h` which is spelled `IsNothrowSwappable`. Pull Request resolved: https://github.com/facebook/folly/pull/1049 Reviewed By: Orvid Differential Revision: D14402098 Pulled By: yfeldblum fbshipit-source-id: 5b61bd6d43db939b4499e908b26a3eb61f8929a3
-
Joe Loser authored
Summary: - Remove `remove_cvref_t` alias template from `pusmhi/traits.h` in favor of `folly::remove_cvref_t` from `folly/Traits.h` which is the same definition. Pull Request resolved: https://github.com/facebook/folly/pull/1048 Reviewed By: ericniebler Differential Revision: D14402040 Pulled By: yfeldblum fbshipit-source-id: baba640e5fa410e0c48e666ea004de61b7f12a12
-
Joe Loser authored
Summary: - Replace `Not` template alias from `PolyDetail.h` with `folly::Negation` from `folly/Traits.h` which does the same thing. Pull Request resolved: https://github.com/facebook/folly/pull/1045 Reviewed By: ericniebler Differential Revision: D14402105 Pulled By: yfeldblum fbshipit-source-id: 100347dbdc159c5217c7452b202650d58d80850c
-
Dan Melnic authored
Summary: Add timerfd based timers Reviewed By: djwatson Differential Revision: D13809490 fbshipit-source-id: 9ae70d9cc4d481245623efbc3e74ce5ff8c8f3ca
-
Yunus Rahbar authored
fbshipit-source-id: 4c8ab4cdad047a4311c84b302b28160dd2bc9ed4
-
- 11 Mar, 2019 5 commits
-
-
Joe Loser authored
Summary: - In `c2e51a8e`, i.e. Differential Revision: D9213429 fbshipit-source-id: 849c0fce01d4903d3f8a7b6d196037bf950e5921 a `libfolly.pc.in` file was placed in the `CMake` directory so that the `libfolly.pc` file is installed during CMake configure time. - Note that the `libfolly.pc.in` in the `folly` directory is not referenced anywhere in the build tree, and it has been superseded with the one in the `CMake` directory. As such, remove it. Pull Request resolved: https://github.com/facebook/folly/pull/1050 Reviewed By: calebmarchent Differential Revision: D14400016 Pulled By: yfeldblum fbshipit-source-id: 4c8ab4cdad047a4311c84b302b28160dd2bc9ed4
-
Yedidya Feldblum authored
Summary: [Folly] Cut glog include in `folly/Range.h`. Reviewed By: meyering Differential Revision: D14402324 fbshipit-source-id: ed37939d69b2de4016483e7a2564d73892a64b3b
-
Matthew Glazar authored
Summary: Some tests fail to compile because gflags.h is not included: .../folly/test/FormatOtherTest.cpp: In function 'int main(int, char**)': .../folly/test/FormatOtherTest.cpp:113:3: error: 'gflags' has not been declared gflags::ParseCommandLineFlags(&argc, &argv, true); ^~~~~~ The tests compile without issue on Travis CI without this patch, but I don't see how that's possible. Include gflags.h explicitly to fix the compilation of these tests. Pull Request resolved: https://github.com/facebook/folly/pull/1051 Reviewed By: aary Differential Revision: D14400709 Pulled By: yfeldblum fbshipit-source-id: 73999a940f45511373d3922ea8eb782a27af0008
-
Brandon Schlinker authored
Summary: When a socket is configured to read from `MSG_ERRQUEUE`, the corresponding callback handler for `errMessageCallback_->errMessage(*cmsg)` may close the socket when processing a message. If this happens, `fd_` will be set to -1 (reinitialized) and subsequent calls to `netops::recvmsg(fd_, &msg, MSG_ERRQUEUE)` will fail. On the read failure, an error will be propagated via `failErrMessageRead(__func__, ex)`. This quickly becomes confusing -- you end up with an error message `::recvmsg exited with code 9` (EBADF) with little context. This diff adds logic to check if the socket is still open before each call to `netops::recvmsg(fd_, &msg, MSG_ERRQUEUE)`. If not, we exit out. It's arguable that the application is at fault in this scenario instead of the library. However, I've found this problem and given the complexity, it seems like a scenario worth guarding against in the library. Reviewed By: yfeldblum Differential Revision: D14354115 fbshipit-source-id: 49e1efbbf6cecbe3bf6db7ee6bdfcac4c8aaa8c2
-
Yedidya Feldblum authored
Summary: [GDB] Migrate `gdb/scripts/` to `platform007`. Reviewed By: pixelb Differential Revision: D14400956 fbshipit-source-id: 59f800c8770fae78ffd51d33161bb56dc6c9ff12
-
- 10 Mar, 2019 2 commits
-
-
Joe Loser authored
Summary: - Replace `Uncvref` alias template with `folly::remove_cvref_t` from `folly/Traits.h` which does the same thing. Pull Request resolved: https://github.com/facebook/folly/pull/1047 Reviewed By: Orvid Differential Revision: D14395552 Pulled By: yfeldblum fbshipit-source-id: 10ac4fbadbd20876fda4957f9a85454ad6c8a994
-
Dan Melnic authored
Summary: Fix SignalHandlerTest signal handler output parsing since we do not need to print the "maybe from PID" message Reviewed By: yfeldblum, mjoras Differential Revision: D14399778 fbshipit-source-id: a5192c0427fa79479218ebb4671dee4164448111
-
- 09 Mar, 2019 3 commits
-
-
Lucian Grijincu authored
Summary: - the test was disabled in {D2299981} (2015) - philippv enabled `-gdwarf-aranges` in fbcode {D4013485} (2016) - `-gdwarf-aranges` is available in clang since https://reviews.llvm.org/D1649 (2013) Reviewed By: philippv Differential Revision: D14398382 fbshipit-source-id: 7b6b4e7ebf86268d8bc34089b0e77dcaa5badf92
-
Yedidya Feldblum authored
Summary: [Folly] `is_transparent`, for testing whether a hash or equal-to type marks itself as transparent. Reviewed By: shixiao Differential Revision: D14355772 fbshipit-source-id: 9bb0ce6f7fc177e2445d094796ae4e56d9a00e76
-
Orvid King authored
Summary: It should be dead now. Reviewed By: yfeldblum Differential Revision: D14350795 fbshipit-source-id: 30a021c0180b73b9d76e34722353c4e65e1c98f8
-
- 08 Mar, 2019 5 commits
-
-
Matthew Glazar authored
Summary: CMake allows the user to add additional compilation options using CXXFLAGS= or -DCMAKE_CXX_FLAGS=. For example, each of the following commands would enable GCC security features in generated code: $ CXXFLAGS=-fstack-protector-strong cmake . $ cmake -DCMAKE_CXX_FLAGS=-fstack-protector-strong . Unfortunately, this doesn't work with folly's build system; CXXFLAGS and CMAKE_CXX_FLAGS are ignored. This makes it harder for package managers to tweak folly's compilation. Teach folly to respect user-supplied compiler flags instead of overriding them. Pull Request resolved: https://github.com/facebook/folly/pull/1046 Reviewed By: wez Differential Revision: D14383310 Pulled By: yfeldblum fbshipit-source-id: a6c527fa1659b93bb88a4e0be617a5d9022489dd
-
Matt Joras authored
Summary: We are getting SIGILLs that end up not printing a code because it's not in the cases in `signal_reason`, which isn't particularly helpful. Additionally, the check for kernel-sourced si_codes is incorrect. Any code > 0 is from the kernel. This causes folly to log nonsense PIDs and UIDs. Differential Revision: D14388102 fbshipit-source-id: 3201a16bbe9eb9038ebc5601044406f5333ec9e9
-
Tyler John Smith authored
Summary: folly dynamic "double / int" (division, same goes for subtraction) results in the operands switching places (always becomes "int / double") due to int and non-int checking logic. Same applies to addition and multiplication, but order doesn't matter for those. If both dynamics are doubles or both are ints, then the problematic logic is bypassed. So this is only when you have one int and one double, and the int comes second, and the operand is subtraction or division. Reviewed By: yfeldblum Differential Revision: D14379896 fbshipit-source-id: e76f1fe677fc4ea69856649ab046a5080a902b0d
-
Phil Willoughby authored
Summary: Exposing this counter allows us to fairly divide the memory usage of shared IOBuf buffers among all the owners in memory-usage tracking code. Reviewed By: simpkins Differential Revision: D14361976 fbshipit-source-id: 73c63c473b117198786143b421c6fcb8aed684d5
-
Orvid King authored
Summary: The file descriptor backed version will be going away. Reviewed By: yfeldblum Differential Revision: D14235700 fbshipit-source-id: 990b0276b085e6bb88bf3bdb83cdeba332f75ac6
-
- 07 Mar, 2019 2 commits
-
-
Ilya Maykov authored
Summary: The tests were accidentally checked in without the cmake build rules to build them. Reviewed By: kevinlewi Differential Revision: D14277667 fbshipit-source-id: 5e0ff305341772232579bbde2dfc60477b4f1937
-
Chad Austin authored
Summary: ssize_t is not standard, so include <sys/types.h>. (I considered switching to intptr_t but decided against it.) Also, on macOS, the function appears to be called backtrace, not unw_backtrace. Reviewed By: yfeldblum Differential Revision: D14307252 fbshipit-source-id: d919bd37fea8f68b5d610e771e577c8ce385f6ec
-
- 06 Mar, 2019 2 commits
-
-
Orvid King authored
Summary: They are dead. Reviewed By: yfeldblum Differential Revision: D14192072 fbshipit-source-id: dcb95be39614d9968db9d63cd9f06396f4779a0a
-
Joe Loser authored
Summary: - Update Ubuntu 14.04 build script to use CMake instead of Autotools. - Rename Ubuntu 14.04 build script to use hyphens rather than underscores to match POSIX standard for bash scripts. - The Ubuntu 14.04 build script is now meant to be run from the top-level rather than from inside the `folly` source tree. - Remove the Ubuntu 12.04 build scripts. It was previously only needed for Travis CI, but Travis CI isn't using it anymore. Pull Request resolved: https://github.com/facebook/folly/pull/1042 Reviewed By: Orvid Differential Revision: D14298995 Pulled By: yfeldblum fbshipit-source-id: e3151620c0f0fa73147ab258b8750480c868c44a
-