Commit graph

10 commits

Author SHA1 Message Date
Wez Furlong
7d4d667891 Change the constructor attribute to putting this function in the
.init section.

The constructor is called too late, and clobbers state, leading
to heap corruption later.
2010-06-26 23:00:02 +00:00
Wez Furlong
1028ce923e Sync with the current sources from onnv-gate.
The solaris sources use a non-portable create-thread-suspended flag when
spawning the update thread; I've thrown together a pthreads portable
equivalent.  This has not had any real level of testing.

These changes include a lock around the underlying brk() call; the lack of lock
in earlier revisions of this repo may be the reason that
UMEM_OPTIONS=backend=sbrk was flaky.
2010-06-26 16:02:39 +00:00
Wez Furlong
b9dc821378 move umem_startup constructor to the umem .so itself, rather than
the malloc replacement.

Rename ec_atomic to umem_atomic.

Add a posix_memalign function.

-ldl isn't universal; make a configure check for it.
2010-06-26 13:10:39 +00:00
Wez Furlong
f82ad44b62 * allow the sbrk backend to be requested via UMEM_OPTIONS=backend=sbrk, but note that this appears to be broken on non-solaris platforms.
* make a safer/better check for number of cpus on linux
 * use pthread_once to register the forkhandler, as it is possible to call it twice in some scenarios without this protection
2010-04-30 21:27:09 +00:00
Wez Furlong
da390045aa improve compatibility with PPC platforms. 2010-02-19 15:14:55 +00:00
Wez Furlong
f90f13368b update copyright info 2008-06-03 03:48:16 +00:00
Devon H. O'Dell
7b6452aa2d Insert bits to allow successful compilation (and apparent success in
running) on FreeBSD.
2006-10-13 18:03:34 +00:00
Wez Furlong
724af76462 merge some OSX related fixes from ecelerity 2006-10-13 15:54:13 +00:00
Richard Dawe
e781f51fc3 Use doxygen to build docs; generate spec file using configure; use tar.bz2 instead of tar.gz 2006-05-13 20:37:27 +00:00
Wez Furlong
d7fe11594f Initial revision 2006-03-10 02:45:59 +00:00