| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for stable branches:
- shift to MALLOC_PRODUCTION
- turn off automatic crash dumps
- remove kernel debuggers, INVARIANT*[1], WITNESS* from GENERIC
kernel config files
[1] INVARIANT* left on for ia64 at least temporarily, marcel@ will test
to see if they are still required as they had been for stable/8.
Approved by: re (implicit)
Notes:
svn path=/stable/9/; revision=226405
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-g, by reverting r219139. The LLVM PR referenced in that revision was
fixed in the mean time, and we imported a clang snapshot soon
afterwards, so the temporary workaround of disabling clang's integrated
assembler is no longer needed.
In this particular case, using e.g. DEBUG_FLAGS=-g causes clang to
output certain directives into assembly that our version of GNU as
chokes on.
Reported by: dougb
Approved by: re (kib)
Notes:
svn path=/head/; revision=224201
|
|
|
|
| |
Notes:
svn path=/head/; revision=223576
|
|
|
|
|
|
|
| |
assertion failures in _malloc_thread_cleanup().
Notes:
svn path=/head/; revision=223369
|
|
|
|
|
|
|
| |
it's already added to SRCS there.
Notes:
svn path=/head/; revision=219709
|
|
|
|
|
|
|
|
|
| |
support for it. Note that while sparc64 also supports the static TLS
model and thus tls_model("initial-exec"), using the default model
turned out to yield slightly better buildstone performance.
Notes:
svn path=/head/; revision=219535
|
|
|
|
|
|
|
|
|
|
| |
MALLOC_OPTIONS environment variable, not JEMALLOC_OPTIONS.
Reviewed by: jasone
Approved by: emaste (mentor)
Notes:
svn path=/head/; revision=219377
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kernel.debug (or possibly other files), when WITH_CTF is active.
This is caused by a bug in clang's integrated assembler, causing malloc
to sometimes hang during initialization in statically linked executables
that use threading, such as the copy of ctfmerge that is built during
the bootstrap stage of buildworld. The bug has been submitted upstream:
http://llvm.org/bugs/show_bug.cgi?id=9352
Note that you might have to rebuild and install libc first, to get your
kernel build to finish, because the ctfmerge binary built during
bootstrap is linked with your base system's copy of libc.a, which might
already contain a bad copy of malloc.o.
Notes:
svn path=/head/; revision=219139
|
|
|
|
|
|
|
|
|
|
| |
Do not use strlcpy() where simple assignment is enough.
Noted by: bde (long time ago)
MFC after: 1 week
Notes:
svn path=/head/; revision=217144
|
|
|
|
|
|
|
| |
thought.
Notes:
svn path=/head/; revision=214200
|
|
|
|
|
|
|
|
|
|
| |
PR: docs/143330
Submitted by: Efstratios Karatzas (gpf dot kira at gmail dot com)
Discussed with: ru@
MFC after: 7 days
Notes:
svn path=/head/; revision=214148
|
|
|
|
|
|
|
|
|
|
|
| |
strtonum does not require limits.h
Obtained from: OpenBSD
Discussed with: ru@
MFC after: 5 days
Notes:
svn path=/head/; revision=214147
|
|
|
|
|
|
|
| |
They have no effect when coming in pairs, or before .Bl/.Bd
Notes:
svn path=/head/; revision=213573
|
|
|
|
|
|
|
|
| |
Submitted by: brueffer
MFC after: 1 week
Notes:
svn path=/head/; revision=213477
|
|
|
|
|
|
|
|
|
|
| |
and random(3).
Submitted by: Valentin Nechayev <netch netch kiev ua>
MFC after: 1 week
Notes:
svn path=/head/; revision=213476
|
|
|
|
|
|
|
| |
Approved by: rrs (mentor)
Notes:
svn path=/head/; revision=212463
|
|
|
|
|
|
|
|
|
|
|
| |
add a wrapper for it in libc and rework the code in libthr, the
system call still can return EINTR, we keep this feature.
Discussed on: thread
Reviewed by: jilles
Notes:
svn path=/head/; revision=212405
|
|
|
|
|
|
|
| |
Approved by: rrs (mentor)
Notes:
svn path=/head/; revision=211936
|
|
|
|
|
|
|
|
| |
Reported and tested by: Fabian Keil <freebsd-listen fabiankeil de>
MFC after: 17 days
Notes:
svn path=/head/; revision=211894
|
|
|
|
|
|
|
|
|
| |
their implementations aren't in the same files. Introduce LIBC_ARCH
and use that in preference to MACHINE_CPUARCH. Tested by amd64 and
powerpc64 builds (thanks nathanw@)
Notes:
svn path=/head/; revision=211774
|
|
|
|
|
|
|
|
| |
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
Notes:
svn path=/head/; revision=211725
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
atexit and __cxa_atexit handlers that are either installed by unloaded
dso, or points to the functions provided by the dso.
Use _rtld_addr_phdr to locate segment information from the address of
private variable belonging to the dso, supplied by crtstuff.c. Provide
utility function __elf_phdr_match_addr to do the match of address against
dso executable segment.
Call back into libthr from __cxa_finalize using weak
__pthread_cxa_finalize symbol to remove any atfork handler which
function points into unloaded object.
The rtld needs private __pthread_cxa_finalize symbol to not require
resolution of the weak undefined symbol at initialization time. This
cannot work, since rtld is relocated before sym_zero is set up.
Idea by: kan
Reviewed by: kan (previous version)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=211706
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=211704
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
number of host CPUs and osreldate.
This eliminates the last sysctl(2) calls from the dynamically linked image
startup.
No objections from: kan
Tested by: marius (sparc64)
MFC after: 1 month
Notes:
svn path=/head/; revision=211416
|
|
|
|
|
|
|
|
|
| |
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
Notes:
svn path=/head/; revision=211397
|
|
|
|
| |
Notes:
svn path=/head/; revision=210933
|
|
|
|
|
|
|
|
| |
see problems described in the comment to:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/128933
Notes:
svn path=/head/; revision=210853
|
|
|
|
| |
Notes:
svn path=/head/; revision=210765
|
|
|
|
|
|
|
| |
Obtained from: projects/ppc64
Notes:
svn path=/head/; revision=209878
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
finished using it. This allows the mutex's allocated memory to be
freed.
This is one sense a rather silly change, since at this point we're
less than a microsecond away from calling _exit; but fixing this
memory leak is likely to make life easier for anyone trying to
track down other memory leaks.
Notes:
svn path=/head/; revision=209117
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bottom of the manpages and order them consistently.
GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.
Found by: mdocml lint run
Reviewed by: ru
Notes:
svn path=/head/; revision=208027
|
|
|
|
|
|
|
|
|
|
|
| |
go ahead and remove the hint.
PR: 143944
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
MFC after: 1 week
Notes:
svn path=/head/; revision=207946
|
|
|
|
|
|
|
|
| |
Suggested by: bde
MFC after: 2 weeks
Notes:
svn path=/head/; revision=207009
|
|
|
|
|
|
|
|
|
|
| |
of NULL and changed type in declaration.
Suggested by: bde
MFC after: 2 weeks
Notes:
svn path=/head/; revision=206998
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.
Noted by: jh [1]
Reviewed by: jh
MFC after: 2 weeks
Notes:
svn path=/head/; revision=206898
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().
PR: kern/121897 [1]
MFC after: 2 weeks
Notes:
svn path=/head/; revision=206893
|
|
|
|
|
|
|
|
|
|
|
| |
Although groff_mdoc(7) gives another impression, this is the ordering
most widely used and also required by mdocml/mandoc.
Reviewed by: ru
Approved by: philip, ed (mentors)
Notes:
svn path=/head/; revision=206622
|
|
|
|
|
|
|
|
|
|
|
| |
System V compatibility option (malloc "V" flag) is in effect a zero sized
reallocf() could cause a double free.
PR: bin/141753
Submitted by: Dan Lukes
Notes:
svn path=/head/; revision=204636
|
|
|
|
|
|
|
| |
insert/remove speed by ~30%.
Notes:
svn path=/head/; revision=204493
|
|
|
|
|
|
|
| |
like ia64, leave it empty (default model).
Notes:
svn path=/head/; revision=203969
|
|
|
|
|
|
|
|
|
| |
the static TLS model, which is fundamentally different from the dynamic
TLS model. The consequence was data corruption. Limit the attribute to
i386 and amd64.
Notes:
svn path=/head/; revision=203950
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/143350
Empty string test gone wrong.
Testing this requires that you have a locale that has the sign string
unset but has int_n_sign_posn set (the default locale falls through to
use "()" around negative numbers which is probably another bug).
I created that setup by hand and indeed without this fix negative
numbers are put out as positive numbers (doesn't fall through to use
"-" as default indicator).
Unfixed example in nl_NL.ISO8859-1 with lc->negative_sign set to empty
string:
strfmon(buf, sizeof(buf), "%-8i", -42.0);
==>
example2: 'EUR 42,00' 'Eu 42,00'
Fixed:
example2: 'EUR 42,00-' 'Eu 42,00-'
This file and suggested fix are identical in at least freebsd-8.
Backport might be appropriate but some expert on locales should
probably have a look at us defaulting to negative numbers in
parenthesis when LC_* is default. That doesn't look right and is not
what other OSes are doing.
PR: 143350
Submitted by: Corinna Vinschen
Reviewed by: bug reporter submitted, tested by me
Notes:
svn path=/head/; revision=203734
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix a race in chunk_dealloc_dss().
* Check for allocation failure before zeroing memory in base_calloc().
Merge enhancements from a divergent version of jemalloc:
* Convert thread-specific caching from magazines to an algorithm that is
more tunable, and implement incremental GC.
* Add support for medium size classes, [4KiB..32KiB], 2KiB apart by
default.
* Add dirty page tracking for pages within active small/medium object
runs. This allows malloc to track precisely which pages are in active
use, which makes dirty page purging more effective.
* Base maximum dirty page count on proportion of active memory.
* Use optional zeroing in arena_chunk_alloc() to avoid needless zeroing
of chunks. This is useful in the context of DSS allocation, since a
long-lived application may commonly recycle chunks.
* Increase the default chunk size from 1MiB to 4MiB.
Remove feature:
* Remove the dynamic rebalancing code, since thread caching reduces its
utility.
Notes:
svn path=/head/; revision=203329
|
|
|
|
|
|
|
|
|
|
| |
deallocate.
Submitted by: Ryan Stone (rysto32 at gmail dot com)
Approved by: jasone
Notes:
svn path=/head/; revision=203077
|
|
|
|
|
|
|
| |
initialization of ssize_invs.
Notes:
svn path=/head/; revision=200345
|
|
|
|
|
|
|
|
|
| |
as intended.
PR: standards/138307
Notes:
svn path=/head/; revision=200340
|
|
|
|
|
|
|
| |
thorough security review has been completed.
Notes:
svn path=/head/; revision=200198
|
|
|
|
|
|
|
|
|
|
| |
of setenv(), putenv() and unsetenv() when dealing with corrupt entries in
environ. They now output a warning and complete their task without error.
MFC after: 1 week
Notes:
svn path=/head/; revision=200195
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of returning an error if a corrupt (not a "name=value" string) entry
in the environ array is detected when (re)-building the internal
environment. This should prevent applications or libraries from
experiencing issues arising from the expectation that these calls will
complete even with corrupt entries. The behavior is now as it was prior to
7.0.
Reviewed by: jilles
MFC after: 1 week
Notes:
svn path=/head/; revision=200191
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
find a variable. Include a note that it must not cause the internal
environment to be generated since malloc() depends upon getenv(). To call
malloc() would create a circular dependency.
Recommended by: green
Approved by: jilles
MFC after: 1 week
Notes:
svn path=/head/; revision=200190
|