12f8bae508
has failed, in the hope that some other thread has free'd some memory, but we want to bound the number of attempts, it helps if we actually count them - otherwise we never get nearer to the limit. In practice, malloc() for a reasonable application on a modern system almost never fails, so the code containing this bug has probably never been, and never will be, executed, but just in case, someday. For this, it isn't clear if the intent was to have 10 retries (ie: 11 attempts) or 10 tries, but as the code said "retries > 10", I am assuming the former (not that it matters, if the malloc() has failed 10 times in a row, with 10 second pauses between, the chances of an 11th succeeding aren't great). |
||
---|---|---|
.. | ||
build-aux | ||
Makefile | ||
README.compileopts | ||
configure | ||
configure.ac | ||
rumpfiber.c | ||
rumpfiber.h | ||
rumpfiber_bio.c | ||
rumpfiber_sp.c | ||
rumpuser.c | ||
rumpuser_bio.c | ||
rumpuser_component.c | ||
rumpuser_component.h | ||
rumpuser_config.h.in | ||
rumpuser_daemonize.c | ||
rumpuser_dl.c | ||
rumpuser_errtrans.c | ||
rumpuser_file.c | ||
rumpuser_int.h | ||
rumpuser_mem.c | ||
rumpuser_port.h | ||
rumpuser_pth.c | ||
rumpuser_pth_dummy.c | ||
rumpuser_random.c | ||
rumpuser_sigtrans.c | ||
rumpuser_sp.c | ||
shlib_version | ||
sp_common.c |
README.compileopts
$NetBSD: README.compileopts,v 1.1 2016/01/25 00:24:23 pooka Exp $ This file describes compile-time options (make variables) for the rumpuser POSIX implementation. Note: after changing an option, do a clean build. Global options: RUMPUSER_THREADS values: pthread/none/fiber or <undefined> defval: <undefined> effect: Define the way threading is implemented in the rumpuser hypercall implmentation. <undefined> - use default implementation (currently "pthread") pthread - use pthreads to implement threading none - do not support kernel threads at all fiber - user a fiber interface, cooperatively scheduled contexts