summaryrefslogtreecommitdiff
path: root/umem.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-27I was working in the wrong checkout in my last commit...HEADomniti-svn-trunkmasterwez1-1/+3
revert it, and make the constructor-ness conditional on not being "standalone". git-svn-id: https://labs.omniti.com/portableumem/trunk@61 1665872d-e22b-0410-9e5d-a57ad4215e6d
2010-06-26Change the constructor attribute to putting this function in thewez1-1/+2
.init section. The constructor is called too late, and clobbers state, leading to heap corruption later. git-svn-id: https://labs.omniti.com/portableumem/trunk@60 1665872d-e22b-0410-9e5d-a57ad4215e6d
2010-06-26Sync with the current sources from onnv-gate.wez1-16/+150
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. git-svn-id: https://labs.omniti.com/portableumem/trunk@59 1665872d-e22b-0410-9e5d-a57ad4215e6d
2010-06-26move umem_startup constructor to the umem .so itself, rather thanwez1-0/+7
the malloc replacement. Rename ec_atomic to umem_atomic. Add a posix_memalign function. -ldl isn't universal; make a configure check for it. git-svn-id: https://labs.omniti.com/portableumem/trunk@58 1665872d-e22b-0410-9e5d-a57ad4215e6d
2010-04-30 * allow the sbrk backend to be requested via UMEM_OPTIONS=backend=sbrk, but ↵wez1-1/+5
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 git-svn-id: https://labs.omniti.com/portableumem/trunk@56 1665872d-e22b-0410-9e5d-a57ad4215e6d
2010-02-19improve compatibility with PPC platforms.wez1-4/+1
git-svn-id: https://labs.omniti.com/portableumem/trunk@52 1665872d-e22b-0410-9e5d-a57ad4215e6d
2008-06-03update copyright infowez1-1/+1
git-svn-id: https://labs.omniti.com/portableumem/trunk@49 1665872d-e22b-0410-9e5d-a57ad4215e6d
2006-10-13Insert bits to allow successful compilation (and apparent success indhodell1-1/+1
running) on FreeBSD. git-svn-id: https://labs.omniti.com/portableumem/trunk@27 1665872d-e22b-0410-9e5d-a57ad4215e6d
2006-10-13merge some OSX related fixes from eceleritywez1-5/+10
git-svn-id: https://labs.omniti.com/portableumem/trunk@26 1665872d-e22b-0410-9e5d-a57ad4215e6d
2006-05-13Use doxygen to build docs; generate spec file using configure; use tar.bz2 ↵richdawe1-1/+32
instead of tar.gz git-svn-id: https://labs.omniti.com/portableumem/trunk@16 1665872d-e22b-0410-9e5d-a57ad4215e6d
2006-03-10Initial revisionwez1-0/+3158
git-svn-id: https://labs.omniti.com/portableumem/trunk@2 1665872d-e22b-0410-9e5d-a57ad4215e6d