Greg Burd
53f5df3999
merged commit 831abf2 from illumos-gate
...
7236 libumem should be able to abort() when an allocation fails
2016-11-30 10:43:02 -05:00
Greg Burd
089236050e
Raw, untested merge of illumos-{joyent,omnios} trying to bring in the per-thread cache (ptc) changes.
2015-08-22 15:40:44 -04:00
Gregory Burd
6b0eb6878b
Fixes and cleanup.
2012-03-17 19:23:10 -04:00
Gregory Burd
f8c1c0e968
Initial merge from Joyent including the vmem_allocator strategy additions.
2012-03-17 11:32:48 -04:00
Wez Furlong
5cc22b9326
I was working in the wrong checkout in my last commit...
...
revert it, and make the constructor-ness conditional on not being
"standalone".
2010-06-27 00:05:03 +00:00
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