cb3fbbb1729254e9a49e3f8fbe1cadbd519ece52 |
|
29-Sep-2012 |
Arun Sharma <asharma@fb.com> |
Reduce the number of ifdefs in machine independent code Hopefully we don't have too many GNUC users who don't have fetch and add.
/external/libunwind/src/mi/mempool.c
|
b4bde18112016cb720f3df2c0f23f5897f85f7b3 |
|
07-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Apply UNW_ALIGN more in src/mi/mempool.c Apply UNW_ALIGN in a few places in src/mi/mempool.c that I missed in commit c2f757418 ("Rename and share `ALIGN' macro from _UCD_internal.h").
/external/libunwind/src/mi/mempool.c
|
9a3565ddc1e956ef1f52806093e949c7809f6e79 |
|
19-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Simplify `sos_alloc()' implementation Instead of maintaining a pointer to the `sos_memory' array, maintain an index that tells the next free position. When atomic operations are available, the allocation boils down to a single fetch-and-add operation.
/external/libunwind/src/mi/mempool.c
|
26fc1563fba945d0356e4a7dd935a6a57b3c03db |
|
19-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Align `sos_memory' to MAX_ALIGN We give aligned pointers from the `sos_memory' array, so any non-aligned bytes are only wasted.
/external/libunwind/src/mi/mempool.c
|
c36a14f24507a3fd988430eba872ded895ed6913 |
|
19-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Workaround non-power-of-two i386 sizeof(long double) in src/mi/mempool.c To ensure that we return properly aligned pointers from sos_alloc(), MAX_ALIGN must be a power-of-two. On i386 the power-of-two assumption fails as sizeof(long double) = 12. Fix this by rounding up to 16.
/external/libunwind/src/mi/mempool.c
|
e6edad069c95127383a8122608a6bd3785413204 |
|
12-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Use GCC __BIGGEST_ALIGNMENT__ for sos-pool MAX_ALIGN Use the __BIGGEST_ALIGNMENT__ macro provided by GCC for sos_alloc() allocation alignment. The macro gives ``the largest alignment ever used for any data type on the target machine you are compiling for.'' __BIGGEST_ALIGNMENT__ also has some other nice properties, e.g. it is power-of-two on all architectures (note that on i386, sizeof(long double) = 12), and on some architectures (e.g. SuperH) the alignment requirement can be lower than sizeof(long double).
/external/libunwind/src/mi/mempool.c
|
c2f7574187cfbb36dbcdc85bc61a027a4025f394 |
|
04-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Rename and share `ALIGN' macro from _UCD_internal.h Rename the `ALIGN' macro to `UNW_ALIGN', and move it from `_UCD_internal.h' to `libunwind_i.h' so that we can share it with the mempool code. `ALIGN' was clashing with system headers on FreeBSD: In file included from src/coredump/_UCD_access_reg_freebsd.c:26: src/coredump/_UCD_internal.h:102:1: warning: "ALIGN" redefined In file included from /usr/include/sys/param.h:115, from src/coredump/_UCD_lib.h:52, from src/coredump/_UCD_access_reg_freebsd.c:24: /usr/include/machine/param.h:79:1: warning: this is the location of the previous definition
/external/libunwind/src/mi/mempool.c
|
97b483dcaa0fdad69f48f01de42bf556b3a40956 |
|
20-May-2005 |
hp.com!davidm <hp.com!davidm> |
Drop include of "mempool.h", which causes problems in the kernel, due to a conflicting <linux/mempool.h>. (SOS_MEMORY_SIZE): Move to libunwind_i.h. (Logical change 1.295)
/external/libunwind/src/mi/mempool.c
|
670dd57e827a3583a9284634cf1244eb8cab4795 |
|
20-May-2005 |
hp.com!davidm <hp.com!davidm> |
Include "libunwind_i.h" instead of "libunwind.h" and a whole bunch of standard header files. Use lock_release instead of mutex_unlock/sigprocmask calls. (Logical change 1.294)
/external/libunwind/src/mi/mempool.c
|
b38691980f4e0c1cf0e2309aa6cc35decc6b9cb7 |
|
03-May-2005 |
hp.com!davidm <hp.com!davidm> |
(sos_alloc): Fix soslock vs. sos_lock typo. 2005/02/23 14:40:44-08:00 mostang.com!davidm Adjust for sigset_t to intrmask_t renaming. (Logical change 1.290)
/external/libunwind/src/mi/mempool.c
|
58badbb3393efc20f87a0ca462c5ba463eb3e8ba |
|
23-Apr-2004 |
mostang.com!davidm <mostang.com!davidm> |
(add_memory): Rephrase for-loop conditional to avoid bug in Intel-compiler which gets triggered with -O3 -ip. (Logical change 1.212)
/external/libunwind/src/mi/mempool.c
|
65a70e7f88f0bc0b428605a68f21e6eeb5c28804 |
|
30-Jan-2004 |
hp.com!davidm <hp.com!davidm> |
Rename: src/mempool.c -> src/mi/mempool.c (Logical change 1.162)
/external/libunwind/src/mi/mempool.c
|
b88369b8314dc8e8fe617184b07527fb34b66f22 |
|
30-Jan-2004 |
hp.com!davidm <hp.com!davidm> |
Initial revision
/external/libunwind/src/mi/mempool.c
|