| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
vm_page_array initialization improvements.
(cherry picked from commit 15927ea545dd5119e164043a24026155250f8a2b)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Allow for fictitious physical pages in vm_page_scan_contig().
(cherry picked from commit 332a8c368c824313c1bcac21a4ad1c73666818ae)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Check that the page which is freed as zeroed, indeed has all-zero content.
(cherry picked from commit 0519574f8cf9e9258b0499d6f2833990b377c5d7)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In vm_page_free_phys_pglist(), do not take vm_page_queue_free_mtx if
there is nothing to do.
(cherry picked from commit d054fc982f42ac1c95e784cabcf25c437b0dc81c)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Generalize vm_page_ps_is_valid() to support testing other predicates on
the (super)page, renaming the function to vm_page_ps_test().
In vm_page_ps_test(), always check that the base pages within the specified
superpage all belong to the same object. To date, that check has not been
needed, but upcoming changes require it.
(cherry picked from commit 8df894b522e2199c482090bcc1064dadc3259a72)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Optimize vm_page_try_to_free(). Specifically, the call to pmap_remove_all()
can be avoided when the page's containing object has a reference count of
zero. (If the object has a reference count of zero, then none of its pages
can possibly be mapped.)
Address nearby style issues in vm_page_try_to_free(), and change its
return type to "bool".
Optimize vm_object_page_remove() by eliminating pointless calls to
pmap_remove_all(). If the object to which a page belongs has no
references, then that page cannot possibly be mapped.
(cherry picked from commit 2d2427db5b735ecdb6fe8ad9251f524b4260bb6a)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Speed up vm_page_array initialization.
(cherry picked from commit 7c7c98c4dc6d7946663f0050ac2155d81bc4542a)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fix a logic error in the item size calculation for internal UMA zones.
(cherry picked from commit 81448270d4454329f3302889a4d99f3bbca26f4e)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove inline specifier from vm_page_free_wakeup(), do not
micro-manage compiler.
(cherry picked from commit c31a8a35798f25fb0758d0e64c1013c203f75ca9)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Split vm_page_free_toq().
(cherry picked from commit c8dd21ff3bde9b30fa86dd16c8dae3c2c34e1250)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Modify vm_page_grab_pages() to handle VM_ALLOC_NOWAIT, use it in
sendfile_swapin().
(cherry picked from commit 00ffd58e267b0466241a684db7dbfd7f2fecbf80)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Introduce vm_page_grab_pages(), which is intended to replace loops calling
vm_page_grab() on consecutive page indices. Besides simplifying the code
in the caller, vm_page_grab_pages() allows for batching optimizations.
For example, the current implementation replaces calls to vm_page_lookup()
on consecutive page indices by cheaper calls to vm_page_next().
(cherry picked from commit 9d710dfe3f1905122f3d9e3c84da8e4dc03363ee)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add a vm_page_change_lock() helper.
(cherry picked from commit e44297aa7c8b20f74352986ad5c27fed648542cc)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Make vm_page_sunbusy() assert that the page is unlocked.
(cherry picked from commit 8a00dc568742c6a3e32ef33b446a660cefa790f1)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Optimize vm_object_madvise().
(cherry picked from commit 7093b6d4b52a9bc798ae8b86f7ef56f1d1fd2b03)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
MFC r309126 (by emaste):
Correct lld llvm-tblgen dependency file name
MFC r309169:
Get rid of separate Subversion mergeinfo properties for llvm-dwarfdump
and llvm-lto. The mergeinfo confuses Subversion enormously, and these
directories will just use the mergeinfo for llvm itself.
MFC r312765:
Pull in r276136 from upstream llvm trunk (by Wei Mi):
Use ValueOffsetPair to enhance value reuse during SCEV expansion.
In D12090, the ExprValueMap was added to reuse existing value during
SCEV expansion. However, const folding and sext/zext distribution can
make the reuse still difficult.
A simplified case is: suppose we know S1 expands to V1 in
ExprValueMap, and
S1 = S2 + C_a
S3 = S2 + C_b
where C_a and C_b are different SCEVConstants. Then we'd like to
expand S3 as V1 - C_a + C_b instead of expanding S2 literally. It is
helpful when S2 is a complex SCEV expr and S2 has no entry in
ExprValueMap, which is usually caused by the fact that S3 is
generated from S1 after const folding.
In order to do that, we represent ExprValueMap as a mapping from SCEV
to ValueOffsetPair. We will save both S1->{V1, 0} and S2->{V1, C_a}
into the ExprValueMap when we create SCEV for V1. When S3 is
expanded, it will first expand S2 to V1 - C_a because of S2->{V1,
C_a} in the map, then expand S3 to V1 - C_a + C_b.
Differential Revision: https://reviews.llvm.org/D21313
This should fix assertion failures when building OpenCV >= 3.1.
PR: 215649
MFC r312831:
Revert r312765 for now, since it causes assertions when building
lang/spidermonkey24.
Reported by: antoine
PR: 215649
MFC r316511 (by jhb):
Add an implementation of __ffssi2() derived from __ffsdi2().
Newer versions of GCC include an __ffssi2() symbol in libgcc and the
compiler can emit calls to it in generated code. This is true for at
least GCC 6.2 when compiling world for mips and mips64.
Reviewed by: jmallett, dim
Sponsored by: DARPA / AFRL
Differential Revision: https://reviews.freebsd.org/D10086
MFC r318601 (by adrian):
[libcompiler-rt] add bswapdi2/bswapsi2
This is required for mips gcc 6.3 userland to build/run.
Reviewed by: emaste, dim
Approved by: emaste
Differential Revision: https://reviews.freebsd.org/D10838
MFC r318884 (by emaste):
lldb: map TRAP_CAP to a trace trap
In the absense of a more specific handler for TRAP_CAP (generated by
ENOTCAPABLE or ECAPMODE while in capability mode) treat it as a trace
trap.
Example usage (testing the bug in PR219173):
% proccontrol -m trapcap lldb usr.bin/hexdump/obj/hexdump -- -Cv -s 1 /bin/ls
...
(lldb) run
Process 12980 launching
Process 12980 launched: '.../usr.bin/hexdump/obj/hexdump' (x86_64)
Process 12980 stopped
* thread #1, stop reason = trace
frame #0: 0x0000004b80c65f1a libc.so.7`__sys_lseek + 10
...
In the future we should have LLDB control the trapcap procctl itself
(as it does with ASLR), as well as report a specific stop reason.
This change eliminates an assertion failure from LLDB for now.
MFC r319796:
Remove a few unneeded files from libllvm, libclang and liblldb.
MFC r319885 (by emaste):
lld: ELF: Fix ICF crash on absolute symbol relocations.
If two sections contained relocations to absolute symbols with the same
value we would crash when trying to access their sections. Add a check that
both symbols point to sections before accessing their sections, and treat
absolute symbols as equal if their values are equal.
Obtained from: LLD commit r292578
MFC r319918:
Revert r319796 for now, it can cause undefined references when linking
in some circumstances.
Reported by: Shawn Webb <shawn.webb@hardenedbsd.org>
MFC r319957 (by emaste):
lld: Add armelf emulation mode
Obtained from: LLD r305375
MFC r321369:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
5.0.0 (trunk r308421). Upstream has branched for the 5.0.0 release,
which should be in about a month. Please report bugs and regressions,
so we can get them into the release.
Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.
MFC r321420:
Add a few more object files to liblldb, which should solve errors when
linking the lldb executable in some cases. In particular, when the
-ffunction-sections -fdata-sections options are turned off, or
ineffective.
Reported by: Shawn Webb, Mark Millard
MFC r321433:
Cleanup stale Options.inc files from the previous libllvm build for
clang 4.0.0. Otherwise, these can get included before the two newly
generated ones (which are different) for clang 5.0.0.
Reported by: Mark Millard
MFC r321439 (by bdrewery):
Move llvm Options.inc hack from r321433 for NO_CLEAN to lib/clang/libllvm.
The files are only ever generated to .OBJDIR, not to WORLDTMP (as a
sysroot) and are only ever included from a compilation. So using
a beforebuild target here removes the file before the compilation
tries to include it.
MFC r321664:
Pull in r308891 from upstream llvm trunk (by Benjamin Kramer):
[CodeGenPrepare] Cut off FindAllMemoryUses if there are too many uses.
This avoids excessive compile time. The case I'm looking at is
Function.cpp from an old version of LLVM that still had the giant
memcmp string matcher in it. Before r308322 this compiled in about 2
minutes, after it, clang takes infinite* time to compile it. With
this patch we're at 5 min, which is still bad but this is a
pathological case.
The cut off at 20 uses was chosen by looking at other cut-offs in LLVM
for user scanning. It's probably too high, but does the job and is
very unlikely to regress anything.
Fixes PR33900.
* I'm impatient and aborted after 15 minutes, on the bug report it was
killed after 2h.
Pull in r308986 from upstream llvm trunk (by Simon Pilgrim):
[X86][CGP] Reduce memcmp() expansion to 2 load pairs (PR33914)
D35067/rL308322 attempted to support up to 4 load pairs for memcmp
inlining which resulted in regressions for some optimized libc memcmp
implementations (PR33914).
Until we can match these more optimal cases, this patch reduces the
memcmp expansion to a maximum of 2 load pairs (which matches what we
do for -Os).
This patch should be considered for the 5.0.0 release branch as well
Differential Revision: https://reviews.llvm.org/D35830
These fix a hang (or extremely long compile time) when building older
LLVM ports.
Reported by: antoine
PR: 219139
MFC r321719:
Pull in r309503 from upstream clang trunk (by Richard Smith):
PR33902: Invalidate line number cache when adding more text to
existing buffer.
This led to crashes as the line number cache would report a bogus
line number for a line of code, and we'd try to find a nonexistent
column within the line when printing diagnostics.
This fixes an assertion when building the graphics/champlain port.
Reported by: antoine, kwm
PR: 219139
MFC r321723:
Upgrade our copies of clang, llvm, lld and lldb to r309439 from the
upstream release_50 branch. This is just after upstream's 5.0.0-rc1.
MFC r322320:
Upgrade our copies of clang, llvm and libc++ to r310316 from the
upstream release_50 branch.
MFC r322326 (by emaste):
lldb: Make i386-*-freebsd expression work on JIT path
* Enable i386 ABI creation for freebsd
* Added an extra argument in ABISysV_i386::PrepareTrivialCall for mmap
syscall
* Unlike linux, the last argument of mmap is actually 64-bit(off_t).
This requires us to push an additional word for the higher order bits.
* Prior to this change, ktrace dump will show mmap failures due to
invalid argument coming from the 6th mmap argument.
Submitted by: Karnajit Wangkhem
Differential Revision: https://reviews.llvm.org/D34776
MFC r322360 (by emaste):
lldb: Report inferior signals as signals, not exceptions, on FreeBSD
This is the FreeBSD equivalent of LLVM r238549.
This serves 2 purposes:
* LLDB should handle inferior process signals SIGSEGV/SIGILL/SIGBUS/
SIGFPE the way it is suppose to be handled. Prior to this fix these
signals will neither create a coredump, nor exit from the debugger
or work for signal handling scenario.
* eInvalidCrashReason need not report "unknown crash reason" if we have
a valid si_signo
llvm.org/pr23699
Patch by Karnajit Wangkhem
Differential Revision: https://reviews.llvm.org/D35223
Submitted by: Karnajit Wangkhem
Obtained from: LLVM r310591
MFC r322474 (by emaste):
lld: Add `-z muldefs` option.
Obtained from: LLVM r310757
MFC r322740:
Upgrade our copies of clang, llvm, lld and libc++ to r311219 from the
upstream release_50 branch.
MFC r322855:
Upgrade our copies of clang, llvm, lldb and compiler-rt to r311606 from
the upstream release_50 branch.
As of this version, lib/msun's trig test should also work correctly
again (see bug 220989 for more information).
PR: 220989
MFC r323112:
Upgrade our copies of clang, llvm, lldb and compiler-rt to r312293 from
the upstream release_50 branch. This corresponds to 5.0.0 rc4.
As of this version, the cad/stepcode port should now compile in a more
reasonable time on i386 (see bug 221836 for more information).
PR: 221836
MFC r323245:
Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
5.0.0 release (upstream r312559).
Release notes for llvm, clang and lld will be available here soon:
<http://releases.llvm.org/5.0.0/docs/ReleaseNotes.html>
<http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html>
<http://releases.llvm.org/5.0.0/tools/lld/docs/ReleaseNotes.html>
Relnotes: yes
(cherry picked from commit 12cd91cf4c6b96a24427c0de5374916f2808d263)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Remove redundand CLD instructions.
(cherry picked from commit 8b9abbccd27eb39ccc1bd61f8d76eca3f735aa2d)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Update comment explaining the check, to reality.
(cherry picked from commit e02369b09e64d8f72734fb231ef6480c8959c36f)
|
| | |
| | |
| | |
| | |
| | |
| | | |
Remove MP SAFE marks and stray register name in comments.
(cherry picked from commit 7eb24bfbf5752b6ad27fbb38b6e2c7c2a617454a)
|
| | |
| | |
| | |
| | | |
(cherry picked from commit a4663900cc73925a0b330d8d452adb4d4a1410c3)
|
| | |
| | |
| | |
| | | |
This reverts commit 2589da26b930eaf9441b6bf27c0f410062adf507.
|
| | |
| | |
| | |
| | | |
This reverts commit a9197dec5d4dc4631abb11db58f5cc72ce0625fd.
|
| | |
| | |
| | |
| | | |
This reverts commit 6501017038915547fe361a5ae4ca94ba466d0e4e.
|
| | |
| | |
| | |
| | | |
This reverts commit 242fd9ef5c10f63b2abc67e7479b7c4d83f0f4c3.
|
| | |
| | |
| | |
| | | |
This reverts commit f43c3967e3e3ee580a8542614291b6c1c93eed96.
|
| | |
| | |
| | |
| | | |
This reverts commit cf2b1f5568d7328668ab821286d6b946275f8d6f.
|
| | |
| | |
| | |
| | | |
This reverts commit c15b1102756fd1613686a6d232b018ae7b0616d5.
|
| | |
| | |
| | |
| | | |
This reverts commit ba6ece08e939b4f3d25e9e81956e8d622ed1fc2e.
|
| | |
| | |
| | |
| | | |
This reverts commit 5dad0dd804a33b8a372d49fa342b24c67b1c2fb3.
|
| | |
| | |
| | |
| | | |
This reverts commit 74f422aa0c80a2b2cc5b62800ec3530ffacfd71e.
|
| | |
| | |
| | |
| | | |
This reverts commit d574a360a44f0e9e7f2ac9410d978250eff2eee4.
|
| | |
| | |
| | |
| | | |
This reverts commit 00eb70b7d08a826b8a95fd890f398d0eaa79d177.
|
| | |
| | |
| | |
| | | |
This reverts commit 5b5a512657c1593040d28ac2bc8a48fd895aebca.
|
| | |
| | |
| | |
| | | |
This reverts commit ad10a4776f2fb0039e322a9e45c4a4746be66161.
|
| | |
| | |
| | |
| | | |
This reverts commit 457061d949ae73e58071fe42a7430d13af05e237.
|
| | |
| | |
| | |
| | | |
This reverts commit 8926fdba02d1f614e3919986cdb7cae9949ebe76.
|
| | |
| | |
| | |
| | | |
This reverts commit f6fafa493af1cb084b840fdc32ccf2b6ebcf8212.
|
| | |
| | |
| | |
| | | |
This reverts commit 3fc6a8b162a129fe68141c503b32e15a57320907.
|
| | |
| | |
| | |
| | | |
This reverts commit baf97fd773b0e19536ce41d9325f923f68da228e.
|
| | |
| | |
| | |
| | | |
This reverts commit 1e4ba7cf2d30da6611ada62b467173029303a4d1.
|
| | |
| | |
| | |
| | | |
This reverts commit cbd1eed96e34173b1f65e50333ea628a0db27366.
|
| | |
| | |
| | |
| | | |
This reverts commit 39eb19ab2b6c1de1c3864ee90d8570fca27edaff.
|
| | |
| | |
| | |
| | | |
This reverts commit 1027b09f970c81aab8f721168a4500261978c198.
|
| | |
| | |
| | |
| | | |
This reverts commit 4766afb923cc9718a46119776ce2c47de644df8c.
|
| | |
| | |
| | |
| | | |
This reverts commit f5e0fba2ae028c37a9c910c9244b6828f782851c.
|
| | |
| | |
| | |
| | | |
This reverts commit f203cac76577ea45b9cd11818d169a0848443507.
|
| | |
| | |
| | |
| | | |
This reverts commit 75492dc7653f9d5eb0e33bc8277957739f587ff0.
|
| | |
| | |
| | |
| | | |
This reverts commit 430a2bea3907149b30cc75fc722b6cf1f81da82a.
|
| | |
| | |
| | |
| | | |
This reverts commit 045793a68906243d204d36b336867187c1a33f00.
|
|/ /
| |
| |
| | |
This reverts commit 8b4a98409db64c77fc3324f23aacf7b42b55de57.
|