| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
more ready to deal with the noise.
|
|
|
|
| |
reported by kettenis
|
|
|
|
|
| |
let's see what falls out.
ok beck deraadt kettenis mpi
|
|
|
|
| |
OK kettenis@ visa@ mpi@
|
| |
|
|
|
|
|
|
|
|
|
| |
the memory in uvm. Another process could use the false 0 then. To
be on the safe side, protect all access to ku_indx and ku_pagecnt
with a mutex. Update ku_indx and ku_pagecnt before calling
uvm_km_free(). Update ksp after uvm_km_free() to keep accounting
correct.
tested by sthen@; OK mpi@ visa@ deraadt@
|
|
|
|
|
|
|
| |
no other process which could free it. Better panic in malloc(9)
or pool_get(9) instead of sleeping forever.
tested by visa@ patrick@ Jan Klemkow
suggested by kettenis@; OK deraadt@
|
|
|
|
|
|
|
|
| |
if the size passed is exactly half the size of the bucket that the
allocation was actually from, then it was incorrect.
problem noted by florian@
ok florian@ visa@
|
|
|
|
|
|
|
|
| |
the code has rotted, and obviously hasnt been used for ages. it is
also hard to make mpsafe. if we need something like this again it
would be better to do it from scratch.
ok tedu@ visa@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this is almost a straightforward change of spl ops with mutex ops,
except the accounting has been shuffled around. memory is counted
as used before an attempt to allocate it from uvm is made to prevent
overcommitting memory. this is modelled on how pools limit allocations.
the uvm bits have been eyeballed by kettenis@ who says they should be safe.
visa@ found some nits which have been fixed.
tested by chris@ and amit kulkarni
ok kettenis@ visa@ mpi@
|
|
|
|
|
|
|
|
|
| |
and free(9).
The exception is at early boot when only one CPU is running since we
grab the KERNL_LOCK() relatively late in main().
ok kettenis@
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
| |
define in sys/limits.h. OK guenther@
|
| |
|
|
|
|
| |
to include that than rdnvar.h. ok deraadt dlg
|
|
|
|
|
|
|
| |
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h.
PROT_MASK is introduced as the one true way of extracting those bits.
Remove UVM_ADV_* wrapper, using the standard names.
ok doug guenther kettenis
|
|
|
|
|
|
| |
malloc bucket isn't precise, it can have anything in it.
should fix recent panics. sorry for inconvenience.
ok deraadt millert
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
ok mpi@ kspillner@
|
| |
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
| |
ok deraadt
|
|
|
|
|
|
|
| |
While here, change malloc(9)'s size argument from "unsigned long" to
"size_t".
ok tedu
|
| |
|
| |
|
|
|
|
| |
ok deraadt@
|
| |
|
|
|
|
|
|
| |
(then immediately reacquire it). this has the effect of giving interrupts
on other CPUs to a chance to run and reduces latency in many cases.
ok deraadt
|
|
|
|
|
|
| |
<uvm/uvm.h> if possible and remove double inclusions.
ok beck@, mlarkin@, deraadt@
|
| |
|
|
|
|
| |
tested on vax (gcc3) ok miod@
|
| |
|
|
|
|
| |
ok miod
|
|
|
|
| |
this adds a tiny bit more protection from list manipulation.
|
|
|
|
|
| |
allow some more pool debug code to be enabled if not compiled in
bump poison size back up to 64
|
|
|
|
| |
ok deraadt
|
|
|
|
| |
ok deraadt mpi
|
| |
|
|
|
|
| |
ok deraadt
|
|
|
|
|
|
| |
in MI code; gcc 2.95 does not accept such annotation for function pointer
declarations, only function prototypes.
To be uncommented once gcc 2.95 bites the dust.
|
|
|
|
|
|
| |
function pointer arguments which are {used as,} wrappers around the kernel
printf function.
No functional change.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
no oks (it is really a pain to review properly)
extensively tested, I'm confident it'll be stable
'now is the time' from several icb inhabitants
Diff provides:
- ability to specify different allocators for different regions/maps
- a simpler implementation of the current allocator
- currently in compatibility mode: it will generate similar addresses
as the old allocator
|
|
|
|
| |
ok deraadt@
|