| Commit message (Collapse) | Author | Age |
|
|
|
| |
This guarantees that initialization is done in a single-thread context.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FreeBSD
Coded a simple memory allocator meant to be used during jemalloc bootstrap
(malloc_init_hard()). Although protected by "#ifdef __FreeBSD__", it is not
FreeBSD-specific: Any POSIX platform could use it.
Hook it so that it is used in place of jemalloc's own routines while
malloc_init_hard() is executing or memory for mutexes is being
allocated. Currently, 'malloc', 'calloc', '*memalign' and 'free' are diverted
during init or lock initializations.
Details are quite complex, see the big comment block starting with "There are
several problematic interactions between FreeBSD's libthr and this jemalloc."
for more explanations.
Also replaced ad-hoc BSD code to determine the number of CPUs with 'sysconf',
which is POSIX-compliant (and supported on modern BSDs).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The barriers are here to make sure that setting 'malloc_initialized' at end of
init must be noticed later by any thread running on a different core. They are
in theory necessary in the absence of an explicit pthread lock.
What could happen is that the thread doing the initialization later spawns
other threads that could not have the updated 'malloc_initialized' value,
leading to a second initialization. This is dependent on whether OSes force a
full memory barrier before the new thread is run, which I don't know, and don't
want to bother.
This was done for FreeBSD only, for the sake of robustness. In theory, this
would be needed on Windows too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In fact, this is a security threat.
This function calls 'arc4random_addrandom', which was removed from the
reference implementation 7 years go [1], on the ground that this was in fact an
internal interface which is almost impossible to use correctly. This update has
since then been propagated to other implementations (e.g., FreeBSD, IllumOS,
Android).
Do this for all platforms, since 'evutil_secure_rng_add_bytes' is not even used
in the current tree, and for the reason stated above, should never be.
Related bugs at Mozilla and libevent: Links [2] and [3] below.
[1] http://marc.info/?l=openbsd-cvs&m=138238762705209&w=2
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=931354
[3] https://sourceforge.net/p/levent/bugs/320/
|
|
|
|
|
|
| |
'sysctl' interface to currently opened connections changed in FreeBSD 12.
Drop support for FreeBSD < 9, these are very old and unsupported versions.
|
|\ |
|
| | |
|
| |
| |
| |
| | |
symbols.def
|
| |
| |
| |
| | |
Windows will ALWAYS have this enabled but we eventually want all target operating systems to use this as well but that will require more work
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Skia does some nasty things that break with DLL calls like having virtual dtors
without a body definition (and it's honestly surprising that it even builds to
begin with the way it's done, but apparently they use some linking symbol voodoo
to work around that in dependent classes).
Not wanting to have to pull Google code apart to try and fix that for something
we're only using for canvas anyway, it's better to just let Skia reside in
libxul instead.
|
| | |
|
| |
| |
| |
| |
| | |
This fully works for splitting gkmedias.dll back out from xul with one exception
which is Skia throwing undefined externals when linking gkmedias.
|
| |
| |
| |
| | |
This should be ported to the NSS repo
|
|/
|
|
|
|
|
|
|
| |
Remove various obsolete configure options.
Remove Adjust SDK install tracking filth.
Remove redundant code paths in old-configure
This also optimizes linker use
Remove redundant conditional blocks.
Rewrite span.h without constexpr use.
|
|
|
|
| |
Also cleans up some other obsolete checks and stylo reftest lists.
|
|
|
|
| |
interface.
|
| |
|
|
|
|
|
| |
This removes android code from base, build, forms, generic, inspector, style,
printing, tools and xul.
|
| |
|
|
|
|
| |
We don't support AAC outside of OMX at the moment, so oops.
|
|
|
|
|
|
| |
.flac and .aac"
This reverts commit a8e90975d0b7fd481b03a862844c65778f402c5e.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The Seed and RC2 components are completely obsolete, so we shouldn't build them.
AVX2 for Chacha20-Poly1305 would fall outside of our platform sysreqs, and has a
build system issue with non-MSVC flags being passed (needs more research, also a
recent change around NSS 3.53 when the makefile destruction happened)
|
|
|
|
|
| |
This updates to MoonchildProductions/NSS@bd49b2b88 in the repo created for our
consumption of the library.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This changes the toolkit theme for Linux and Windows (Mac already did this) to
style the input textbox on the findbar with -moz-appearance:none so as to give
us styling control (as opposed to using a native widget style) and apply a
neutral style to it.
Also ensures Mac remains readable in case of poorly contrasting text.
|
|
|
|
| |
This reverts commit 85dc118aaca8446cbe33671446ac23147daec44c.
|
|\
| |
| |
| |
| |
| | |
(#1698) from adesh/UXP:fix-performace-api into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1698
|
|/
|
|
| |
This was a fallout from pull request #929.
|
|
|
|
|
|
|
| |
As of [da0c073a7] we no longer need this workaround because the issue is avoided
with proper sleep/wake logic restored.
This reverts commit 2fa993b5639e04c7e1d7403ecf9175a223ce50b4.
|
|
|
|
| |
This was fallout from PR #929 for Issue #21
|
|
|
|
| |
See code comment for details.
|
|
|
|
|
|
|
| |
This avoids overlapping of table styled elements inside flexboxes as used on
some websites.
Resolves #1696
|
|
|
|
| |
See BZ bugs 1674735, 1677047, 1677940 and 1676868 for details.
|
| |
|
|
|
|
| |
This reverts commit 45a976a5f1e83c3c2f7fcf85b1fa5315946f4c1a.
|
| |
|
| |
|
| |
|
|
|
|
| |
The default is now set to the more stable but slower global setting.
|
| |
|
|
|
|
| |
This also adds it to JS_SetGlobalJitCompilerOption()
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This reverts commit bb31c1c65e8b7fcdd3a1d6b80a4fe4c1f5b3d10a.
|