1. 11 Feb, 2015 22 commits
    • Hans Fugal's avatar
      switch order of method/object in Future::then to match std::bind · d8bc4210
      Hans Fugal authored
      Summary:
      I have half a mind to just rip this out and let people use std::bind if they need this. But I won't be so cruel.
      
      Why isn't this just implemented as `then(std::bind(method, object))` anyway? Is the template soup we have now faster?
      
      Test Plan:
      Fixed the unit tests to use the new format.
      Will look to contbuild to catch all the things this might break (if anyone is using it at all?), and will fix them.
      
      Reviewed By: hannesr@fb.com
      
      Subscribers: trunkagent, exa, folly-diffs@, yfeldblum, jsedgwick, davejwatson
      
      FB internal diff: D1831118
      
      Signature: t1:1831118:1423243771:65db9a89daf14d8bd88331c503ba1ea7ab03b679
      d8bc4210
    • Hans Fugal's avatar
      futures::chain · e1c576b4
      Hans Fugal authored
      Summary:
      `futures::chain<A,Z>(a, b, c, d, e, f, ..., z)` where `a` is a callback suitable for `Future<A>::then` and `z` is a callback suitable for `Future<Y>::then<Z>`.
      
      This will be important, at least in the background, for the new `via`. It will probably also be useful to some user sometime.
      
      I imagine this will be tweaked over time if people find magic ways to get it to deduce the types better. But this works and it's not *too* much trouble to specify A and Z.
      
      Test Plan: unit
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: trunkagent, exa, folly-diffs@, yfeldblum, jsedgwick
      
      FB internal diff: D1831073
      
      Tasks: 6048744
      
      Signature: t1:1831073:1423259292:711be0e047a2acb706fd74e529d5d5fb6abda566
      e1c576b4
    • Andrii Grynenko's avatar
      folly::Singleton leak diagnostics utils · 9f502239
      Andrii Grynenko authored
      Summary: This adds different types of messages depending on whether Singleton was depending on other Singleton or just leaked. It also adds destruction stack trace for such Singletons (if they were ever destroyed) to help debug such leaks/broken dependencies.
      
      Test Plan: unit test
      
      Reviewed By: chip@fb.com
      
      Subscribers: trunkagent, folly-diffs@, yfeldblum
      
      FB internal diff: D1830526
      
      Signature: t1:1830526:1423266462:ba328b0da0bf4030b1c4f686d8f7b609fd20683c
      9f502239
    • Andrii Grynenko's avatar
      Making each SingletonEntry a singleton · 8f7c257f
      Andrii Grynenko authored
      Summary:
      Most of the singleton construction logic is moved to SingletonEntry, and each SingletonEntry is now also a singleton.
      SingletonVault becomes only responsible for keeping singleton construction order (and potentially dependencies) and destoying them in correct order.
      This also significantly improves perf of get() / get_weak() (not-fast)
      
      This diff is based on D1823663.
      
      Test Plan:
      unit test
      
      ============================================================================
      folly/experimental/test/SingletonTest.cpp       relative  time/iter  iters/s
      ============================================================================
      NormalSingleton                                            333.35ps    3.00G
      MeyersSingleton                                   99.99%   333.39ps    3.00G
      FollySingletonSlow                                49.99%   666.84ps    1.50G
      FollySingletonFast                                95.90%   347.61ps    2.88G
      FollySingletonFastWeak                             2.22%    15.00ns   66.66M
      ============================================================================
      
      Reviewed By: chip@fb.com
      
      Subscribers: trunkagent, folly-diffs@, yfeldblum
      
      FB internal diff: D1827390
      
      Signature: t1:1827390:1423268514:da322d1dcaba54905d478b253f26dd76f890fb4e
      8f7c257f
    • Philip Pronin's avatar
      make decodeVarint accept StringPiece · a11dc9b7
      Philip Pronin authored
      Summary: `decodeVarint` now accepts all of `StringPiece`, `MutableStringPiece`, `ByteRange`, and `MutableByteRange`.
      
      Test Plan: fbconfig -r folly unicorn/utils && fbmake runtests_opt -j32
      
      Reviewed By: ott@fb.com, lucian@fb.com
      
      Subscribers: trunkagent, chaoyc, search-fbcode-diffs@, unicorn-diffs@, folly-diffs@, yzhan, yfeldblum
      
      FB internal diff: D1836805
      
      Signature: t1:1836805:1423534085:cca5c3e83ad699e5d56e1d1e3394644ec3f94dab
      a11dc9b7
    • Andre Pinto's avatar
      typo · 2a9f8165
      Andre Pinto authored
      Summary: Correct typo on docs.
      
      Test Plan: N/A
      
      Reviewed By: alikhtarov@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1836264
      
      Signature: t1:1836264:1423527402:4e5f263f446346f7145c33c671f0b9e694db15fd
      2a9f8165
    • Marcin Pawlowski's avatar
      fix open source build · 2657ebb5
      Marcin Pawlowski authored
      Summary:
      include was missing, causing build to fail on
      Arch Linux with gcc 4.9.2 -- found this while resolving
      other issues.
      
      Test Plan: build folly on my personal linux and on dev server
      
      Reviewed By: viswanath@fb.com
      
      Subscribers: fugalh, folly-diffs@, jsedgwick, yfeldblum
      
      FB internal diff: D1835143
      
      Signature: t1:1835143:1423513128:5dcff69a82878f47b40512711ed254f239399c2c
      2657ebb5
    • Andrii Grynenko's avatar
      Revert "Revert "Using type-tags for test SingletonVaults"" · 4d897276
      Andrii Grynenko authored
      Summary:
      This reverts commit 4893c09795ad4b1187518b184ac4812079039988.
      
      Fix unit test in D1823663.
      
      Test Plan: fbconfig -r folly fbmake dbg
      
      Reviewed By: alikhtarov@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1832645
      
      Signature: t1:1832645:1423267466:6012f1d7700d540c7290c29b01b33148cf91183c
      4d897276
    • Nathan Bronson's avatar
      TLS cache for AccessSpreader · 5569e6fa
      Nathan Bronson authored
      Summary:
      Under Linux the process gtod doesn't contain the current cpu, so
      __vdso_getcpu uses RDTSCP, which makes it cost about 20 nanos.  The gtod
      _does_, however, contain a nanosecond time (for CLOCK_REALTIME_COARSE)
      updated during context switches.  This diff adds a TLS cache that uses
      __vdso_clock_gettime_ns(CLOCK_REALTIME_COARSE) to detect context switches.
      The end result is that AccessSpreader goes from ~20 nanos to ~6.
      
      Test Plan: unit tests
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: yfeldblum, trunkagent, folly-diffs@
      
      FB internal diff: D1798922
      
      Signature: t1:1798922:1423264298:32312a5e9bddb3b8aa630c146ef708164a6a4651
      5569e6fa
    • Nicholas Ormrod's avatar
      Revert "Using type-tags for test SingletonVaults" · b2f445a2
      Nicholas Ormrod authored
      Summary: This reverts commit 315cfed207895455ecd359d0c1b9d98f28ed0519.
      
      Test Plan:
      fbconfig -r folly && fbmake dbg
      
      Reviewed By: robbert@fb.com
      
      Subscribers: sdwilsh, folly-diffs@, yfeldblum
      
      FB internal diff: D1831932
      
      Signature: t1:1831932:1423258329:0962b939a93bbf1722a9e1c90090dcc024b63765
      
      Blame Revision: D1823663
      b2f445a2
    • Yedidya Feldblum's avatar
      Dedupe the implementations of EventBase::runInEventBaseThreadAndWait. · 777002cb
      Yedidya Feldblum authored
      Summary: [Folly] Dedupe the implementations of EventBase::runInEventBaseThreadAndWait.
      
      Test Plan:
      Unit tests:
      * `folly/io/async/test/EventBaseTest.cpp`
      
      Reviewed By: subodh@fb.com
      
      Subscribers: trunkagent, folly-diffs@, yfeldblum, dougw, brettp
      
      FB internal diff: D1826291
      
      Signature: t1:1826291:1423225534:42264d8dcc8adec6b90ac8a3d6ce1f4b98f29297
      
      Blame Revision: D1810764, D1823407
      777002cb
    • Andrii Grynenko's avatar
      Using type-tags for test SingletonVaults · 75d52926
      Andrii Grynenko authored
      Summary: This makes test SingletonVaults more similar to global SingletonVault. It also ensures that every SingletonVault is a singleton, which allows potential optimization of making each SingletonEntry a Singleton too, which itself will make get/get_weak as efficient as get_fast/get_weak_fast.
      
      Test Plan: unit test
      
      Reviewed By: chip@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1823663
      
      Signature: t1:1823663:1423188884:4ab2b47cfba270a66613f6f2458b6affc0ed96ad
      75d52926
    • Hans Fugal's avatar
      make wait() and friends return reference to self instead of new Future · 2aa1ef48
      Hans Fugal authored
      Summary:
      we still make the new Future, but assign it to ourselves. this avoids the following buggy pattern that people might expect to work
      
      ```
      auto f = ...
      f.wait();
      
      // Careful. f.value() was moved out into the new Future, so you may have lost something
      someOperationOn(f.value());
      
      // Nope. We already set a callback internally in wait()
      f.then(...);
      ```
      
      Test Plan: unit
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: exa, yfeldblum, trunkagent, fbcode-common-diffs@, sammerat, cold-storage-diffs@, folly-diffs@, jsedgwick, aflock
      
      FB internal diff: D1809040
      
      Tasks: 6048284
      
      Signature: t1:1809040:1422900812:1b416408eb5eaa71e88778c9c22ed8bfba087efe
      2aa1ef48
    • Andrei Alexandrescu's avatar
      Add StringKeyed(Unordered){Set,Map} to folly · 1474b109
      Andrei Alexandrescu authored
      Summary: We're using StringKeyed* from common/datastruct to avoid unnecessary string creation whenever we're looking up string keys. C++14 does offer a solution, see e.g. http://stackoverflow.com/questions/10536788/avoiding-key-construction-for-stdmapfind. That is not supported by current compilers.
      
      Test Plan: unittests
      
      Reviewed By: pavlo@fb.com
      
      Subscribers: trunkagent, net-systems@, folly-diffs@, yfeldblum
      
      FB internal diff: D1825700
      
      Signature: t1:1825700:1423086724:530550c3c80e33c80900f31c0ade05c66b22cbe8
      1474b109
    • Andrei Alexandrescu's avatar
      Disallow assignment to rvalue Range objects (and StringPiece in particular) · 7eaace04
      Andrei Alexandrescu authored
      Summary:
      Before this diff the code below compiled and did absolutely nothing of interest:
      
      StringPiece fun();
      ...
      fun() = "hello";
      
      i.e. assignment to an rvalue range was allowed. Such code is almost always, if not always, in error. This diff fixes that.
      
      Test Plan: ran unittests
      
      Reviewed By: ldbrandy@fb.com
      
      Subscribers: mpawlowski, net-systems@, folly-diffs@, yfeldblum
      
      FB internal diff: D1825360
      
      Signature: t1:1825360:1423097817:fdaaf893cd1abbe71dc857a315df7c45cb6a0bd0
      7eaace04
    • Darren Mo's avatar
      Subprocess Process Group Improvements · 5079904b
      Darren Mo authored
      Summary: Eliminated a potential race condition by removing unnecessary code.
      
      Test Plan: Unit tests pass.
      
      Reviewed By: lesha@fb.com
      
      Subscribers: tudorb, trunkagent, folly-diffs@, yfeldblum
      
      FB internal diff: D1824924
      
      Signature: t1:1824924:1423102017:6bce388dccf9126d6ac3a1741d8300a51c5276ed
      
      Blame Revision: D1492526
      5079904b
    • Yedidya Feldblum's avatar
      Avoid EventBase depending on Baton (mutex/condvar variant). · 31d4d5d6
      Yedidya Feldblum authored
      Summary: [Folly] Avoid EventBase depending on Baton (mutex/condvar variant).
      
      Test Plan:
      Unit tests:
      * folly/io/async/test/EventBaseTest.cpp
      
      Reviewed By: subodh@fb.com
      
      Subscribers: trunkagent, fma, folly-diffs@, yfeldblum, dougw, brettp
      
      FB internal diff: D1823407
      
      Signature: t1:1823407:1423088450:71ae1673ed8067103e2aaa1ac9b239eae9ebe9de
      
      Blame Revision: D1810764
      31d4d5d6
    • Hans Fugal's avatar
      Fix comment · b6741322
      Hans Fugal authored
      Summary: It is true. Also, add a useful message about which thread this Future will complete in.
      
      Test Plan: it should still compile
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: trunkagent, exa, folly-diffs@, jsedgwick, yfeldblum
      
      FB internal diff: D1819849
      
      Tasks: 5705286, 6008465
      
      Signature: t1:1819849:1423074012:79bf11c877eb2f061cb5d07f7ab45fa4cc4a894b
      b6741322
    • Hans Fugal's avatar
      Future<T>::onTimeout(Duration, function<T()>, Timekeeper*=nullptr) · dc64cee6
      Hans Fugal authored
      Summary:
      (or func returns Future<T>)
      
      Invoke and respond to a timeout with a callback, rather than using `within` and adding `onError` or `then` or something.
      
      Test Plan: new tests
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: jsedgwick, yfeldblum, trunkagent, fugalh, exa, folly-diffs@
      
      FB internal diff: D1763174
      
      Tasks: 4548494
      
      Signature: t1:1763174:1423074062:05cec1dfb1110b31b599033949ebe0ee70dd0552
      dc64cee6
    • Hans Fugal's avatar
      Fix another comment · eaed836c
      Hans Fugal authored
      Summary:
      I don't know what this paragraph is even saying. It looks like
      copypasta
      
      Test Plan: still compiles or my uncle is a monkey
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: trunkagent, exa, folly-diffs@, jsedgwick, yfeldblum
      
      FB internal diff: D1819905
      
      Tasks: 5705286
      
      Signature: t1:1819905:1423074021:a095fe2a17d5698678a527b60c9384625df869fd
      eaed836c
    • Tom Jackson's avatar
      Fixing find_first_of O(n) case · c7e6c224
      Tom Jackson authored
      Summary:
      The `memchr()`-based `find_first_of()` behaves extremely badly when it's used in a loop and the input string doesn't contain all the needles. This was discovered when a reasonable line-breaking routine tried to use it to break lines by a mix of '\r' and '\n'. The entire remainder of the file was scanned each time a line was read.
      
      Before:
      
      ```
      CountDelimsBase                    1.26s   794.86m
      CountDelimsNoSSE         100.03%   1.26s   795.12m
      CountDelimsStd         40501.63%   3.11ms  321.93
      CountDelimsMemchr         98.31%   1.28s   781.41m
      CountDelimsByteSet     23162.41%   5.43ms  184.11
      ```
      
      After:
      
      ```
      CountDelimsBase                   3.20ms  312.08 <-- Base impl no longer considers memchr
      CountDelimsNoSSE         102.37%  3.13ms  319.47
      CountDelimsStd           103.19%  3.11ms  322.05
      CountDelimsMemchr          0.25%  1.27s   788.39m
      CountDelimsByteSet        59.68%  5.37ms  186.27
      ```
      
      Test Plan: Benchmarks
      
      Reviewed By: njormrod@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1823536
      
      Signature: t1:1823536:1423081687:bb2ec8cdea477ee9b9c8d8ad2bfdecdc52657515
      c7e6c224
    • Sara Golemon's avatar
      f4acb308
  2. 09 Feb, 2015 2 commits
  3. 04 Feb, 2015 12 commits
    • Andrew Cox's avatar
      Bump version to 24:0 · 64f2f273
      Andrew Cox authored
      64f2f273
    • Andrii Grynenko's avatar
      Fix folly::Singleton error message · d10d3c88
      Andrii Grynenko authored
      Test Plan: fbmake runtests
      
      Reviewed By: chip@fb.com, pavlo@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1825369
      
      Signature: t1:1825369:1423080185:8507643a3f8860bae6a2240e0ae28fbaf2885b12
      d10d3c88
    • Dave Watson's avatar
      Future constructor · 2006de6b
      Dave Watson authored
      Summary:
      As a replacement for makeFuture().  The main advantage is for non-void futures, implicit conversion works pretty well.
      
      See unittest for examples
      
      Test Plan: fbconfig -r folly/futures; fbmake runtests
      
      Reviewed By: hannesr@fb.com
      
      Subscribers: yfeldblum, trunkagent, doug, folly-diffs@, jsedgwick
      
      FB internal diff: D1806575
      
      Signature: t1:1806575:1422465608:6099f791591b70ce1bcda439b49307b8f3187d89
      2006de6b
    • Tom Jackson's avatar
      Adding demonstrative test of O(n^2) string split case · e7e16f3d
      Tom Jackson authored
      Summary:
      Even though the benchmark only keeps the first 10 lines, it gets slower the bigger the "file" is.
      
      ```
      folly/gen/test/StringBenchmark.cpp              relative  time/iter  iters/s
      ----------------------------------------------------------------------------
      Lines_Gen(1e3)                                               5.53us  180.94K
      Lines_Gen(2e3)                                    66.43%     8.32us  120.21K
      Lines_Gen(3e3)                                    48.26%    11.45us   87.33K
      ```
      
      Test Plan: Benchmarks
      
      Reviewed By: lesha@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1823545
      
      Tasks: 6155600
      
      Signature: t1:1823545:1423023712:86fdb3dadbec44195e4b3596cf793cea80ae3a76
      e7e16f3d
    • Philip Pronin's avatar
      fix AsyncServerSocket::bind issue · ad4a9ff7
      Philip Pronin authored
      Summary:
      When closing sockets on retry, we should use `shutdownSocketSet_`
      if it is set (so socket will properly be removed from the set).
      
      Also I changed all `::close()` and `::shutdown()` calls to `*NoInt()`
      version.
      
      Test Plan:
      fbconfig unicorn/test:basic_compression_test && fbmake opt -j32
      while _bin/unicorn/test/test:basic_compression_test; do echo DONE; done
      
      Reviewed By: mcduff@fb.com
      
      Subscribers: trunkagent, folly-diffs@, yzhan, yfeldblum
      
      FB internal diff: D1821104
      
      Tasks: 4752579, 6123510
      
      Signature: t1:1821104:1423001050:5bc09ffdd6666c2884ea82dbd70831a56513cfc9
      
      Blame Revision: D1795120
      ad4a9ff7
    • Tianjiao Yin's avatar
      print better error message · d8386e34
      Tianjiao Yin authored
      Summary:
      before:
      
      E0203 12:32:34.548096 3354863 [admonitor-local] Singleton.cpp:72] Singleton of type N8facebook12configerator22ConfigeratorStaticDataE has a living reference at destroyInstances time; beware! Raw pointer is 0x7fd6ccc81000. It is very likely that some other singleton is holding a shared_ptr to it. Make dependencies between these singletons are properly defined.
      
      after:
      
      E0203 13:48:09.013022 3913115 Singleton.cpp:72] Singleton of type facebook::configerator::ConfigeratorStaticData has a living reference at destroyInstances time; beware! Raw pointer is 0x7f6f7dc4c000. It is very likely that some other singleton is holding a shared_ptr to it. Make dependencies between these singletons are properly defined.
      
      Test Plan: run it
      
      Reviewed By: chip@fb.com
      
      Subscribers: folly-diffs@, yfeldblum
      
      FB internal diff: D1822466
      
      Signature: t1:1822466:1423000686:345f40fa706701476256a7157468521bc69166a0
      d8386e34
    • Dave Watson's avatar
      kill asyncsslserversocket · 46fd8dca
      Dave Watson authored
      Summary: This was only used in a unittest, every real use case uses AsyncServerSocket, and decides on its own to do SSL or not.
      
      Test Plan: fbconfig -r thrift/lib/cpp/test; fbmake runtests
      
      Reviewed By: alandau@fb.com
      
      Subscribers: fugalh, trunkagent, doug, alandau, bmatheny, ssl-diffs@, mshneer, jsedgwick, folly-diffs@
      
      FB internal diff: D1806807
      
      Signature: t1:1806807:1422396209:02333c736e1ef10963e3fe0b4ed6ecf6122475bb
      46fd8dca
    • Dave Watson's avatar
      Remove request context enable flag · e34cac05
      Dave Watson authored
      Summary:
      Originally meant as a kill switch.  It's turned on in everything except adfinder, so we can probably remove this flag after running a couple adfinder canaries
      
      I have no idea who should review this in ads team, guessed and added some people
      
      Test Plan: https://our.intern.facebook.com/intern/tupperware/canary/view/?experiment_id=32937
      
      Reviewed By: haijunz@fb.com
      
      Subscribers: trunkagent, doug, ruibalp, nli, alandau, bmatheny, wormhole-diffs@, mshneer, folly-diffs@
      
      FB internal diff: D1809255
      
      Tasks: 5645329
      
      Signature: t1:1809255:1422490068:5b4551e6c126d86cac8f8e7b06da6474e6b8a25a
      e34cac05
    • Andrii Grynenko's avatar
      Wait for some time if Singleton isn't destroyed immediately · 32ab0252
      Andrii Grynenko authored
      Summary: This diff introduces 5 seconds wait time to let other threads release Singleton which may be temporarily locked. This helps prevent most of "Singleton object alive after destruction" warnings in cases where weak_ptr API is used correctly. Abusive use of folly::Singletons, where dependencies between singletons are not properly defined will still cause a warning.
      
      Test Plan: unit test
      
      Reviewed By: chip@fb.com
      
      Subscribers: trunkagent, folly-diffs@
      
      FB internal diff: D1808371
      
      Signature: t1:1808371:1422487261:573eb40b6a260e428d96be476659335250c7ea76
      32ab0252
    • Haijun Zhu's avatar
      Set CLOEXEC for connected fd · 4bffc758
      Haijun Zhu authored
      Summary:
      AsyncSocket sets CLOEXEC if it connects an address, but won't
      if it uses a connected fd. This sets CLOEXEC for such fd.
      
      Test Plan: fbconfig folly/io/async/test && fbmake runtests
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: trunkagent, folly-diffs@, zacm
      
      FB internal diff: D1809300
      
      Signature: t1:1809300:1422900997:40fcc84506582ac67076fd975a36d094522c35c2
      4bffc758
    • Yedidya Feldblum's avatar
      EventBase::runInEventLoopThreadAndWait. · 1219e494
      Yedidya Feldblum authored
      Summary:
      [Folly] EventBase::runInEventLoopThreadAndWait.
      
      Useful for when some code needs to be run in the event loop thread, but another thread needs to trigger the code and then wait for it to be done.
      
      Test Plan:
      Unit tests:
      * `folly/io/async/test/EventBaseTest.cpp`
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: trunkagent, folly-diffs@, brettp, dougw
      
      FB internal diff: D1810764
      
      Signature: t1:1810764:1422900654:7ff0aa7feb2792266f620b344cf8a1110a09f7ef
      1219e494
    • Brad Kim's avatar
  4. 02 Feb, 2015 4 commits
    • woo's avatar
      Bump version to 23:0 · 440b7da3
      woo authored
      440b7da3
    • Marcin Pawlowski's avatar
      fixing readme and configure script links to double-conv · eb0011d2
      Marcin Pawlowski authored
      Summary:
      Fixing following the issues raised by nsuke on github
      following his diff (https://github.com/facebook/folly/pull/112)
      
      Test Plan: visual inspection, tested build on arch linux
      
      Reviewed By: davejwatson@fb.com
      
      Subscribers: folly-diffs@
      
      FB internal diff: D1807378
      
      Tasks: 5909189
      
      Signature: t1:1807378:1422403093:ca024f396a27ecd9b304c57643f0107764a38ca1
      eb0011d2
    • Nathan Bronson's avatar
      add some missing methods to DeterministicAtomic · b446406a
      Nathan Bronson authored
      Summary:
      fetch_and and fetch_or are actually required in some instances,
      since the operation they perform isn't reversible.  This also adds some
      other missing functions, ^= and fetch_{add,sub,xor}.
      
      Test Plan: use from other code's unit tests
      
      Reviewed By: mssarang@fb.com
      
      Subscribers: yfeldblum, folly-diffs@
      
      FB internal diff: D1798924
      
      Signature: t1:1798924:1422892374:a9859039075ddcac54f75259b9bc6a29bb963a09
      b446406a
    • Chip Turner's avatar
      Revert "[folly::gen] Making 'just()' reference arguments like 'from()'" · ba7fdc79
      Chip Turner authored
      Summary: This reverts commit 90da92b05762f8032560d0d6a66237ab2772d7f2.
      
      Test Plan: compiles
      
      Reviewed By: tjackson@fb.com
      
      Subscribers: lins, anca, folly-diffs@, yfeldblum
      
      FB internal diff: D1817376
      
      Tasks: 6118752
      ba7fdc79