path: root/lib/ncurses/formw/Makefile.depend
diff options
authorIan Lepore <ian@FreeBSD.org>2014-07-29 02:37:48 +0000
committerIan Lepore <ian@FreeBSD.org>2014-07-29 02:37:48 +0000
commitb92672d0cb8aba98ee9b415a9f6707146dc3ec54 (patch)
treef707a4246d62b369e2d96a6b920f93c984bbe4fc /lib/ncurses/formw/Makefile.depend
parent0e58c32732b0fdcaa425cf086d6290a95b6afcb8 (diff)
A while back, the array of segments used for a load/mapping operation was
moved from the stack into the tag structure. In retrospect that was a bad idea, because nothing protects that array from concurrent access by multiple threads. This change moves the array to the map structure (actually it's allocated following the structure, but all in a single malloc() call). This also establishes a "sane" limit of 4096 segments per map. This is mostly to prevent trying to allocate all of memory if someone accidentally uses a tag with nsegments set to BUS_SPACE_UNRESTRICTED. If there's ever a genuine need for more than 4096, don't hesitate to increase this (or maybe make it tunable). Reviewed by: cognet
Notes: svn path=/head/; revision=269216
Diffstat (limited to 'lib/ncurses/formw/Makefile.depend')
0 files changed, 0 insertions, 0 deletions