- 15 Jan, 2020 3 commits
-
-
Shrikrishna Khare authored
Summary: Broadcom provides this library and they decided to rename it from OpenBCM to OpenNSA. Thus, rename corresponding fbcode_builder code. Reviewed By: wez Differential Revision: D19396687 fbshipit-source-id: 8233dbf4de9342b5a0e54ae275d6c73d43abe6d0
-
Yedidya Feldblum authored
Summary: [Folly] Cut unused `AsyncSocketException::SASL_HANDSHAKE_TIMEOUT`. Reviewed By: vitaut Differential Revision: D19343864 fbshipit-source-id: ed4374bc2b376ff71e592323ed8c37290700e870
-
Konstantin Tsoy authored
Summary: Add recvmmsg Differential Revision: D18927890 fbshipit-source-id: de500dd1c266f21fbfc39c2972df787da50c7a80
-
- 14 Jan, 2020 3 commits
-
-
Igor Sugak authored
Summary: UndefinedBehaviorSanitizer: implicit-integer-truncation buck-out/dev/gen/folly/synchronization/atomic_util#header-mode-symlink-tree-with-header-map,headers/folly/synchronization/AtomicUtil-inl.h:115:28 ``` Here both `mask` and the first argument in `std::atomic<..>::fetch_and` have type `unsigned char`. Before bitwise not operation `mask` variable undergoes [integral promotion](https://en.cppreference.com/w/cpp/language/implicit_conversion#Integral_promotion) resulting in truncation error. Since here this is intentional add a `static_cast` to be explicit about it. Reviewed By: yfeldblum Differential Revision: D19320340 fbshipit-source-id: 41c987c19b77fa21ee9aa83cf06dfc7cddba91c8
-
Rosen Penev authored
Summary: Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com> Pull Request resolved: https://github.com/facebook/folly/pull/1301 Reviewed By: yfeldblum Differential Revision: D19302630 Pulled By: Orvid fbshipit-source-id: 9833e4ab3fe93592fa8f868f6ed2d56a263949fe
-
Adam Simpkins authored
Summary: Enable `INSTALL_PYTHON_LIB=ON` for internal builds of Eden on Windows. Reviewed By: pkaush Differential Revision: D19060630 fbshipit-source-id: 40d4f8784958fbeaad4f0d332c55fa0cb810cb5e
-
- 13 Jan, 2020 7 commits
-
-
Phil Willoughby authored
Summary: Add `FOLLY_NO_UNIQUE_ADDRESS ` to expose C++20's `[[no_unique_address]]` where available. (Note: this ignores all push blocking failures!) Reviewed By: pixelb Differential Revision: D19375089 fbshipit-source-id: 9a83ae791002e02df5b93b61f20209e5f467a959
-
Igor Sugak authored
Reviewed By: yfeldblum Differential Revision: D19359860 fbshipit-source-id: b084d8cd603238e76d61de1eed3f233cf5b7fb27
-
Igor Sugak authored
Reviewed By: yfeldblum Differential Revision: D19359673 fbshipit-source-id: 610ae77e205038267e0e331a04486eef0329c165
-
Felix Handte authored
Summary: For long-lived IOBufs, it can be useful to know whether their memory footprint can be usefully shrunk. This diff exposes a method that lets users see the smallest capacity an IOBuf could have while wrapping a particularly sized object. Without this, they have to do hacky math. Reviewed By: yfeldblum Differential Revision: D18440359 fbshipit-source-id: 1324700b58f0b2762cb3347b907ca5e04ebecb99
-
Gabriel Russo authored
Summary: This constructor would never be called since the class is abstract (the method `add` from `Executor` is not implemented). This causes a warning which fails builds because of `-Werror`. Reviewed By: yfeldblum Differential Revision: D19345492 fbshipit-source-id: 20f185e0903a03acbde2e55e5a575e20deb5ad2a
-
Gabriel Russo authored
Summary: This variable shadows the field `options_`, so rename it to get rid of the warning `constructor parameter 'options_' shadows the field 'options_' of 'FiberManager'` (which is turned into an error because of `-Werror`). This happens on clang 8. Reviewed By: yfeldblum Differential Revision: D19331755 fbshipit-source-id: 3615cf9b6c7516775f1dc198a08bc784a52c0fb4
-
Dan Melnic authored
Summary: Add non persistent events overflow tests Reviewed By: danobi, kevin-vigor Differential Revision: D19349804 fbshipit-source-id: 360d1f41d074b3d1af5f163213dadfc35f28c353
-
- 11 Jan, 2020 2 commits
-
-
Igor Sugak authored
Reviewed By: yfeldblum Differential Revision: D19357723 fbshipit-source-id: d099419271f74b013a276079723250ce842e2b24
-
Yedidya Feldblum authored
Summary: [Folly] Fix evaluation-order assumption in futures varidic collect - argument evaluation order is unspecified so it must not be relied on when side-effects must occur in a specific order. Reviewed By: lewissbaker Differential Revision: D19347873 fbshipit-source-id: db4326d995a241619f96ff2bacdf5a5fa2332091
-
- 10 Jan, 2020 4 commits
-
-
Jason Fried authored
Summary: There have been weird edge cases we haven't tracked down yet that saw python segfaulting at shutdown, caused by drive() run from the destructor of AsyncioExecutor after Python had run Py_Finalize shutting down the runtime. This fix uses new checks from Python >=3.7 to check if Python is finalizing Reviewed By: yfeldblum, nanshu Differential Revision: D19321677 fbshipit-source-id: 79a6f95df383a86d80e064eb55a8a81e29d50ace
-
Paul McKenney authored
Summary: Pull Request resolved: https://github.com/facebook/folly/pull/1305 The current documentation for Folly::rcu_domain is lacking, so this commit adds a comment header. It also updates the Rcu.h header comment Reviewed By: vitaut Differential Revision: D18604342 fbshipit-source-id: 165b43b450b90d6dbcf62b0cb4b0231fe38b7372
-
Igor Sugak authored
Reviewed By: yfeldblum Differential Revision: D19337438 fbshipit-source-id: 361322c02824c078a92b9cdd36ffacd0869580b0
-
Maged Michael authored
Summary: Make the behavior of reclamation using an executor be the same as without an executor, in particular reclamation of the tagged list is skipped if it is found to be locked. Reviewed By: davidtgoldblatt Differential Revision: D19325821 fbshipit-source-id: 2eae06b320717aa1122d7cc7afdd4c58791fbfa8
-
- 09 Jan, 2020 6 commits
-
-
generatedunixname89002005287564 authored
Reviewed By: yfeldblum Differential Revision: D19328769 fbshipit-source-id: 5d929eaa3bf4e2d0a63b8f1d95a613fee68525b4
-
Dan Melnic authored
Summary: Fix mem leak when running in overflow mode Reviewed By: danobi Differential Revision: D19333236 fbshipit-source-id: f8a93113d095cb227808c9c8e5704112c7f5c4fb
-
Eric Niebler authored
Summary: `folly::cold_detail::ColdClass` was marking things (like `folly::Unexpected`) cold, but at the cost of inhibiting the inliner from doing its job. This is leading to bad codegen, which offsets any small wins we mind get for the `cold` attribute. Reviewed By: yfeldblum Differential Revision: D19324159 fbshipit-source-id: 7ed431b6c9d6e963c3bf438c707fa6cf6a38bf9d
-
Wez Furlong authored
Summary: Don't error out if we can't read the ELF/MACH-O header; just treat it is not an object. Reviewed By: chadaustin, simpkins Differential Revision: D19253434 fbshipit-source-id: c5ecc7f0bc7a20e2611b7e2ff754355155f095da
-
Gabriel Russo authored
Reviewed By: yfeldblum Differential Revision: D19312260 fbshipit-source-id: 9751f70ac83d801cbc8708741e608f73cad8a464
-
Nick Terrell authored
Summary: We haven't found them super useful, so lets delete them and replace them with USDTs. The problems with the counters are: * We only have the aggregated results. We can't look at a particular process, stack trace, etc. * The speed reported isn't accurate. Reviewed By: yfeldblum Differential Revision: D18319361 fbshipit-source-id: 778213fb63eae90cc7900b075e054c021ecf561e
-
- 08 Jan, 2020 3 commits
-
-
Dan Melnic authored
Add IP_BIND_ADDRESS_NO_PORT AsyncSocket support. Add the ability to set the socket options pre and post bind() Summary: Add IP_BIND_ADDRESS_NO_PORT AsyncSocket support. Add the ability to set the socket options pre and post bind() (Note: this ignores all push blocking failures!) Reviewed By: danobi Differential Revision: D19315183 fbshipit-source-id: a8dc330c1f585766a00ba7724dcd9f7a6e64bbfb
-
Eric Hammerle authored
Summary: AsyncSSLSocket::connect() creates a new instance of AsyncSSLSocketConnector referred with a raw pointer and passes it to AsyncSocket::connect(). AsyncSSLSocket assumed a callback irrespective of connection success or failure so that this raw pointer will be properly disposed off. However currently, if a connect attempt is cancelled the parent class may end up clearing the connect callback without invoking a connection error, thereby causing a leak. Since the cancelConnect() function also cancels the callback, the raw pointer should be cleaned up during cancellation. Reviewed By: knekritz Differential Revision: D18365027 fbshipit-source-id: 2cc171fc1a026b771dcb0bdd7c45b7ee450b97f7
-
Yedidya Feldblum authored
Summary: [Folly] `folly::atomic_ref`, a partial backport of `std::atomic_ref` from C++20. Reviewed By: davidtgoldblatt Differential Revision: D18413170 fbshipit-source-id: dddaabd69d2119ee695c75b214ca1c0204edfe6b
-
- 07 Jan, 2020 3 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Fix some outdated comments referring to `TAsyncTransport`. Reviewed By: rhodo Differential Revision: D19287080 fbshipit-source-id: 7ed234f4e5c9e17d1a3fd645f851129f4ac86b8f
-
Andrii Vasylevskyi authored
Summary: wasi-libc already defines mmsghdr struct https://github.com/CraneStation/wasi-libc/blob/d4db3fa2120b27e01aac8f5f1b749dbbe1344880/libc-top-half/musl/include/sys/socket.h#L33 In folly we currently check for MSG_WAITFORONE to avoid redefinition, but MSG_WAITFORONE and bunch of other things are excluded from wasi-libc. So no to get to deep into rabbit hole just extending exclusion for wasm32. Reviewed By: yfeldblum Differential Revision: D19269397 fbshipit-source-id: 1bdd8344a2bec8a0b5be48bfedc94cc0d9a8635a
-
Yedidya Feldblum authored
Summary: [Folly] Cut unused `AsyncSocket::isBufferMutovable_` and constants `SSL_MODE_MOVE_BUFFER_OWNERSHIP` and `kOpenSslModeMoveBufferOwnership`. Reviewed By: w-o-o Differential Revision: D19286264 fbshipit-source-id: 57e28e65cf86fd550fa8fe81e1657a2e9409e459
-
- 06 Jan, 2020 5 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Rename `FB_STRINGIZE` to `FOLLY_PP_STRINGIZE`. Reviewed By: Orvid Differential Revision: D19229502 fbshipit-source-id: 8dfdb3d9d576ce6b08d35747136c93a37a31d882
-
Rosen Penev authored
Summary: Found with readability-inconsistent-declaration-parameter-name Signed-off-by: Rosen Penev <rosenp@gmail.com> Pull Request resolved: https://github.com/facebook/folly/pull/1295 Reviewed By: Orvid Differential Revision: D19249469 Pulled By: yfeldblum fbshipit-source-id: f0e98bd3f6095c20e5c25220cf814a8347e24792
-
Yedidya Feldblum authored
Summary: [Folly] Write `max_align_v` and `max_align_t` using C++14 `constexpr` syntax v.s. using the recursive approach required by C++11. Instantiates fewer function templates in each translation unit. Reviewed By: Orvid Differential Revision: D19229027 fbshipit-source-id: e01ac2d428a42a6e4f86f55f5528c42f9b70cd9f
-
Yedidya Feldblum authored
Summary: [Folly] Cut redundant anonymous namespace in compression code. Reviewed By: Orvid Differential Revision: D19281237 fbshipit-source-id: 634c199f307682feced2e45e1f22a34766db0ce1
-
Rosen Penev authored
Summary: Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <rosenp@gmail.com> Pull Request resolved: https://github.com/facebook/folly/pull/1303 Reviewed By: Orvid Differential Revision: D19281234 Pulled By: yfeldblum fbshipit-source-id: 1bbf5966f2c7c05d28f32e62af9f2e0dc37788f6
-
- 05 Jan, 2020 1 commit
-
-
Igor Sugak authored
Summary: UndefinedBehaviorSanitizer: implicit-integer-truncation folly/compression/test/CompressionTest.cpp:111:34 ``` Note, this is not an undefined behavior, but usually is unintentional. In this case it's intentional, add an explicit static_cast to the destination type. Reviewed By: yfeldblum Differential Revision: D19281230 fbshipit-source-id: 5374028e551b96e757fbb9f63af2cbbd8ee100e6
-
- 04 Jan, 2020 1 commit
-
-
Rosen Penev authored
Summary: Found with modernize-use-nullptr Signed-off-by: Rosen Penev <rosenp@gmail.com> Pull Request resolved: https://github.com/facebook/folly/pull/1300 Differential Revision: D19271712 Pulled By: yfeldblum fbshipit-source-id: e61fe0252a78c0acc3bef57b3d1f152caa2dcd2a
-
- 03 Jan, 2020 2 commits
-
-
Dan Melnic authored
Summary: Use function ptr instead of std::function (Note: this ignores all push blocking failures!) Reviewed By: yfeldblum, kevin-vigor Differential Revision: D19277936 fbshipit-source-id: 59c2c79ed07690ffe69461e6a90dbf8b297e51fa
-
Yedidya Feldblum authored
Summary: [Folly] DRY the applicability traits tests a little by extracting a type alias. Reviewed By: markisaa Differential Revision: D18748005 fbshipit-source-id: 15d0ceec078a925e7205e7d9398b55cd03004a07
-