RFC: Embed exception_wrapper directly into Try
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 24 May 2017 02:18:12 +0000 (19:18 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 24 May 2017 02:23:15 +0000 (19:23 -0700)
commit790b68acacebb628f9552b1c20fbafa4962aebb7
treee7d891f71902ee2dc25bac50af19265075b1fc85
parent27249d4447e18aa8de6fbd1f483a346aabdd75da
RFC: Embed exception_wrapper directly into Try

Summary:
[Folly] RFC: Embed `exception_wrapper` directly into `Try`.

Rather than storing it elsewhere on the heap. With `exception_wrapper` at 24 bytes on x64, it may now be small enough. However, it will expand the size of `Try<T>` for `sizeof(T) <= 16`, giving `Try` a new minimum size of 32 bytes on x64 instead of 16.

Reviewed By: ericniebler

Differential Revision: D5051436

fbshipit-source-id: 10d59686d64382c88d54340c97567eafb3e2f682
folly/Try-inl.h
folly/Try.h