NetBSD/lib/librumpuser
kre 12f8bae508 If we're going to loop, pausing and then retrying malloc() after it
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).
2020-03-24 14:56:31 +00:00
..
build-aux Update supporting files for components which rely on autoconf to allow systems 2017-02-01 09:26:39 +00:00
configure check for utimensat 2015-03-05 00:25:39 +00:00
configure.ac check for utimensat 2015-03-05 00:25:39 +00:00
Makefile introduce some common variables for use in GCC warning disables: 2019-10-13 07:28:04 +00:00
README.compileopts Move librumpuser compile-time options into the librumpuser source 2016-01-25 00:24:23 +00:00
rumpfiber_bio.c Use autoconf for rump kernel posix hypercall layer. 2014-11-04 19:05:17 +00:00
rumpfiber_sp.c Minor fixes to types and includes 2015-02-15 00:54:32 +00:00
rumpfiber.c Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG 2017-12-27 09:01:53 +00:00
rumpfiber.h Minor fixes to types and includes 2015-02-15 00:54:32 +00:00
rumpuser_bio.c Use autoconf for rump kernel posix hypercall layer. 2014-11-04 19:05:17 +00:00
rumpuser_component.c include stdint.h before rumpuser.h (on some platforms it doesn't get 2013-05-07 15:18:35 +00:00
rumpuser_component.h Translate error codes between the hypervisor and rump kernel. 2013-04-30 12:39:20 +00:00
rumpuser_config.h.in check for utimensat 2015-03-05 00:25:39 +00:00
rumpuser_daemonize.c Use autoconf for rump kernel posix hypercall layer. 2014-11-04 19:05:17 +00:00
rumpuser_dl.c Teach rump to process __link_set_evcnts entries. (Second part of 2020-03-22 13:30:10 +00:00
rumpuser_errtrans.c Translate error codes between the hypervisor and rump kernel. 2013-04-30 12:39:20 +00:00
rumpuser_file.c More finegrained disklabel macro checks, for FreeBSD 2014-11-04 21:08:12 +00:00
rumpuser_int.h Clean up random implementation for librumpuser 2014-07-22 22:41:58 +00:00
rumpuser_mem.c RCS Id police (because we can. or have you heard of git id police?) 2014-08-24 14:37:31 +00:00
rumpuser_port.h Evil hack to fix the build: provide PRIxREGISTER here. 2017-05-11 10:21:55 +00:00
rumpuser_pth_dummy.c Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG 2017-12-27 09:01:53 +00:00
rumpuser_pth.c Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG 2017-12-27 09:01:53 +00:00
rumpuser_random.c Use autoconf for rump kernel posix hypercall layer. 2014-11-04 19:05:17 +00:00
rumpuser_sigtrans.c Translate signal numbers between rump kernel and (POSIX) host. 2014-02-20 00:42:27 +00:00
rumpuser_sp.c If we're going to loop, pausing and then retrying malloc() after it 2020-03-24 14:56:31 +00:00
rumpuser.c Fix return value inspection for clock_nanosleep() (not displayed in the 2015-08-16 11:05:06 +00:00
shlib_version Add interfaces that out-of-librumpuser hypercalls can use to unschedule 2013-03-01 18:15:36 +00:00
sp_common.c Fix off-by-one 2020-03-24 01:13:41 +00:00

        $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