[clang-tidy][NFC] Remove optimized container implementations in `misc-no-recursion` (#187630)
About half of this check's code is dedicated to implementing a pair of
set containers with optimizations for when the element count is small.
But the check only uses these containers while constructing the warning
message. That's not generally a hot path in any check. Just to confirm,
I ran the check over `clang/lib/Sema/Sema.cpp` and all its included
headers before and after, and saw no performance difference. So, these
containers seem like a false optimization.
Move initialization of %dfc and %sfc into _bootstrap() (which will
eventually itself be re-factored to reduce duplication). Also, catch
up with the others: no need to initialize %usp before calling main().
mlx5: postpone freeing the completed command entity to taskqueue
because cancel_delayed_work_sync() might need to sleep, which cannot be
done in the interrupt thread where the completion runs.
Sponsored by: Nvidia networking
MFC after: 1 week
[clang] On Windows, silence warning when building with MSVC (#187937)
This fixes:
```
[2124/7029] Building CXX object tools\clang\lib\AST\CMakeFiles\obj.clangAST.dir\TemplateBase.cpp.obj
C:\git\llvm-project\clang\lib\AST\TemplateBase.cpp(753): warning C4312: 'reinterpret_cast': conversion from 'clang::SourceLocation::UIntTy' to 'clang::TemplateArgumentLocInfo::LocOrPointer' of greater size
```
[mlir] Deterministic containers in BytecodeWriter (#187819)
Iteration over use lists in writeUseListOrders is non-deterministic as a
result of using a DenseMap. Replacing with a Vector-backed `MapVector`
restores deterministic behaviour.
Protect IGMP and MLD6 fast timer with rwlock.
Multicast interface addresses for IPv4 and IPv6 get their own per
interface lock. Protect the TAILQ if_maddrlist with rwlock
if_maddrlock. Also struct in_multi and in6_multi use this lock for
their state and timer. Sleeps in malloc(9) are possible. Run IGMP
and MLD6 fast timeout with shared instead of exclusive net lock.
To prevent calling ip_output() or ip6_output() while holding the
multicast lock, delay igmp_sendpkt() and mld6_sendpkt(). All
information that is needed to create and send a multicast packet
is stored in igmp_pktinfo or mld6_pktinfo. If necessary, multiple
pktinfo are queued. After the lock has been released, packes are
sent based on pktinfo.
OK mvs@
devel/p5-TimeDate: Limit portscout to stable versions
Port changes:
- Add PORTSCOUT to stay with stable versions only
PR: 293723
Reported by: Sergei Vyshenski <svysh.fbsd at gmail.com> (maintainer)
Approved by: maintainer, osa (mentor)
devel/p5-TimeDate: Limit portscout to stable versions
Port changes:
- Add PORTSCOUT to stay with stable versions only
PR: 293723
Reported by: Sergei Vyshenski <svysh.fbsd at gmail.com> (maintainer)
Approved by: maintainer, osa (mentor)
[clangd] Code completion for declaration of class method (#165916)
Code completion previously could not tell apart the declaration of
a method from a call to it, and provided call-like behaviour even
in declaration contexts. This included things like not offering
completion for private methods, and inserting placeholders for
the parameters as though the user was going to fill in arguments.
This patch adds support to Parser and SemaCodeComplete to
detect and provide dedicated behaviour for declaration contexts.
In these contexts, the flag CodeCompletionResult::DeclaringEntity
is set, and createCodeCompletionString() is adjusted to handle this
flag, e.g. by inserting parameter declarations as text chunks rather
than placeholder chunks.
The DeclaringEntity flag is also available for consumers of
SemaCodeComplete, such as clangd, to customize their behaviour.
In addition, the patch tweaks the conditions under which the
[6 lines not shown]
For many many years now, it has been unnecessary to initialize the user
stack pointer before calling main(). TL;DR - %usp comes from the exception
frame and is restored in the syscall stub (always) or rei (if an AST is
pending). For newly-forked processes, those take the non-AST path through
rei, but lwp_trampoline() takes care of it in that case.
security/sudo-rs: Update 0.2.12 => 0.2.13
Changelog:
- Password now gets echoed by default, see sudoers file to revert
https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.13
Port changes:
- Replace hardcoded /usr/local with %%PREFIX%% in files/sudoers.
- Use absolute path for "@includedir ..." in files/sudoers.
PR: 293735
Reported by: Valdemar Erk <valdemar at erk.dev>
Approved by: Marc Schoolderman <marc at trifectatech.org> (maintainer)
Approved by: osa@ (mentor)
security/sudo-rs: Update 0.2.12 => 0.2.13
Changelog:
- Password now gets echoed by default, see sudoers file to revert
https://github.com/trifectatechfoundation/sudo-rs/releases/tag/v0.2.13
Port changes:
- Replace hardcoded /usr/local with %%PREFIX%% in files/sudoers.
- Use absolute path for "@includedir ..." in files/sudoers.
PR: 293735
Reported by: Valdemar Erk <valdemar at erk.dev>
Approved by: Marc Schoolderman <marc at trifectatech.org> (maintainer)
Approved by: osa@ (mentor)