From 4bb3aa5df3fac0a6a631b9f9e9229e98f5370f62 Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Mon, 9 Sep 2024 15:16:47 -0600 Subject: [PATCH 01/16] shut up clang about gcc pragmas --- src/agent/Core/ApplicationPool/Pool/StateInspection.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp b/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp index f73f1d25ce..27b3fac326 100644 --- a/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp +++ b/src/agent/Core/ApplicationPool/Pool/StateInspection.cpp @@ -81,12 +81,17 @@ Pool::inspectProcessList(const InspectOptions &options, stringstream &result, if (process->metrics.isValid()) { snprintf(cpubuf, sizeof(cpubuf), "%d%%", (int) process->metrics.cpu); +#ifndef __clang__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-truncation" - //don't worry about format-truncation here, no one has 9.3PB RAM +#endif + // GCC warns about format-truncation here, but no one has 9.3PB RAM + // So we can safely ignore this warning. snprintf(membuf, sizeof(membuf), "%ldM", (unsigned long) (process->metrics.realMemory() / 1024)); +#ifndef __clang__ #pragma GCC diagnostic pop +#endif } else { snprintf(cpubuf, sizeof(cpubuf), "0%%"); snprintf(membuf, sizeof(membuf), "0M"); From 72eb3a88ded8a757e2284cbac31150fd704aaafd Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Mon, 9 Sep 2024 15:28:01 -0600 Subject: [PATCH 02/16] bump boost --- .../vendor-modified/boost/asio.hpp | 15 + .../vendor-modified/boost/asio/as_tuple.hpp | 44 +- .../asio/associated_immediate_executor.hpp | 5 +- .../vendor-modified/boost/asio/associator.hpp | 2 +- .../boost/asio/async_result.hpp | 142 ++-- .../boost/asio/basic_datagram_socket.hpp | 22 +- .../boost/asio/basic_deadline_timer.hpp | 4 +- .../boost/asio/basic_random_access_file.hpp | 4 +- .../boost/asio/basic_raw_socket.hpp | 20 +- .../boost/asio/basic_readable_pipe.hpp | 2 +- .../boost/asio/basic_seq_packet_socket.hpp | 6 +- .../boost/asio/basic_serial_port.hpp | 4 +- .../boost/asio/basic_signal_set.hpp | 2 +- .../boost/asio/basic_socket.hpp | 4 +- .../boost/asio/basic_socket_acceptor.hpp | 18 +- .../boost/asio/basic_stream_file.hpp | 4 +- .../boost/asio/basic_stream_socket.hpp | 12 +- .../boost/asio/basic_waitable_timer.hpp | 4 +- .../boost/asio/basic_writable_pipe.hpp | 2 +- .../boost/asio/bind_allocator.hpp | 110 ++- .../boost/asio/bind_cancellation_slot.hpp | 113 ++- .../boost/asio/bind_executor.hpp | 128 +++- .../boost/asio/bind_immediate_executor.hpp | 113 ++- .../vendor-modified/boost/asio/buffer.hpp | 4 +- .../boost/asio/buffer_registration.hpp | 2 +- .../boost/asio/cancel_after.hpp | 303 ++++++++ .../vendor-modified/boost/asio/cancel_at.hpp | 296 ++++++++ .../{experimental/impl => }/co_composed.hpp | 269 +++++-- .../boost/asio/completion_condition.hpp | 49 ++ .../vendor-modified/boost/asio/compose.hpp | 211 +----- .../vendor-modified/boost/asio/composed.hpp | 415 ++++++++++ .../vendor-modified/boost/asio/connect.hpp | 262 +++++-- .../vendor-modified/boost/asio/coroutine.hpp | 7 +- .../boost/asio/default_completion_token.hpp | 91 +++ .../vendor-modified/boost/asio/deferred.hpp | 14 +- .../vendor-modified/boost/asio/detached.hpp | 4 +- .../asio/detail/buffered_stream_storage.hpp | 2 +- .../completion_message.hpp} | 30 +- .../completion_payload.hpp} | 62 +- .../completion_payload_handler.hpp} | 28 +- .../boost/asio/detail/config.hpp | 58 +- .../asio/detail/deadline_timer_service.hpp | 6 +- .../asio/detail/handler_alloc_helpers.hpp | 132 +--- .../boost/asio/detail/impl/descriptor_ops.ipp | 69 +- .../asio/detail/impl/dev_poll_reactor.ipp | 2 +- .../impl/reactive_descriptor_service.ipp | 12 +- .../impl/reactive_socket_service_base.ipp | 10 +- .../boost/asio/detail/impl/socket_ops.ipp | 79 +- .../detail/impl/socket_select_interrupter.ipp | 2 +- .../boost/asio/detail/initiation_base.hpp | 64 ++ .../boost/asio/detail/memory.hpp | 11 - .../detail/reactive_descriptor_service.hpp | 36 +- .../asio/detail/reactive_socket_send_op.hpp | 1 - .../asio/detail/reactive_socket_service.hpp | 8 +- .../detail/reactive_socket_service_base.hpp | 41 +- .../boost/asio/detail/recycling_allocator.hpp | 9 + .../boost/asio/detail/resolve_endpoint_op.hpp | 2 +- .../boost/asio/detail/resolve_query_op.hpp | 2 +- .../boost/asio/detail/thread_info_base.hpp | 12 +- .../boost/asio/detail/timed_cancel_op.hpp | 363 +++++++++ .../boost/asio/detail/wrapped_handler.hpp | 80 +- .../boost/asio/execution/allocator.hpp | 2 +- .../boost/asio/execution/blocking.hpp | 2 +- .../asio/execution/blocking_adaptation.hpp | 2 +- .../boost/asio/execution/context.hpp | 2 +- .../boost/asio/execution/mapping.hpp | 2 +- .../boost/asio/execution/occupancy.hpp | 2 +- .../boost/asio/execution/outstanding_work.hpp | 2 +- .../boost/asio/execution/relationship.hpp | 2 +- .../boost/asio/experimental/basic_channel.hpp | 3 +- .../experimental/basic_concurrent_channel.hpp | 3 +- .../boost/asio/experimental/co_composed.hpp | 116 +-- .../detail/channel_receive_op.hpp | 5 +- .../detail/channel_send_functions.hpp | 46 +- .../experimental/detail/channel_send_op.hpp | 1 - .../experimental/detail/channel_service.hpp | 32 +- .../detail/coro_promise_allocator.hpp | 5 +- .../detail/impl/channel_service.hpp | 6 +- .../experimental/detail/partial_promise.hpp | 8 +- .../asio/experimental/impl/as_single.hpp | 19 +- .../boost/asio/experimental/impl/coro.hpp | 2 +- .../asio/experimental/parallel_group.hpp | 78 +- .../boost/asio/experimental/promise.hpp | 6 +- .../boost/asio/experimental/use_coro.hpp | 10 +- .../boost/asio/experimental/use_promise.hpp | 2 +- .../vendor-modified/boost/asio/immediate.hpp | 144 ++++ .../boost/asio/impl/append.hpp | 21 +- .../boost/asio/impl/as_tuple.hpp | 59 +- .../boost/asio/impl/awaitable.hpp | 6 +- .../boost/asio/impl/cancel_after.hpp | 270 +++++++ .../boost/asio/impl/cancel_at.hpp | 270 +++++++ .../boost/asio/impl/co_spawn.hpp | 8 + .../boost/asio/impl/connect.hpp | 226 ++---- .../boost/asio/impl/consign.hpp | 21 +- .../boost/asio/impl/detached.hpp | 4 +- .../boost/asio/impl/prepend.hpp | 21 +- .../vendor-modified/boost/asio/impl/read.hpp | 203 +---- .../boost/asio/impl/read_at.hpp | 98 +-- .../boost/asio/impl/read_until.hpp | 299 +------- .../boost/asio/impl/redirect_error.hpp | 73 +- .../vendor-modified/boost/asio/impl/spawn.hpp | 2 +- .../vendor-modified/boost/asio/impl/write.hpp | 211 +----- .../boost/asio/impl/write_at.hpp | 103 +-- .../boost/asio/io_context_strand.hpp | 10 +- .../boost/asio/ip/basic_resolver.hpp | 12 +- .../boost/asio/ip/detail/socket_option.hpp | 2 +- .../boost/asio/ip/impl/address_v6.ipp | 2 +- .../boost/asio/placeholders.hpp | 18 +- .../boost/asio/posix/basic_descriptor.hpp | 2 +- .../asio/posix/basic_stream_descriptor.hpp | 4 +- .../vendor-modified/boost/asio/read.hpp | 155 +++- .../vendor-modified/boost/asio/read_at.hpp | 90 ++- .../vendor-modified/boost/asio/read_until.hpp | 150 +++- .../boost/asio/redirect_error.hpp | 46 +- .../boost/asio/registered_buffer.hpp | 4 +- .../vendor-modified/boost/asio/spawn.hpp | 1 - .../asio/ssl/detail/impl/openssl_init.ipp | 4 +- .../boost/asio/ssl/impl/context.ipp | 17 +- .../vendor-modified/boost/asio/ssl/stream.hpp | 10 +- .../vendor-modified/boost/asio/this_coro.hpp | 4 +- .../boost/asio/use_awaitable.hpp | 4 +- .../vendor-modified/boost/asio/use_future.hpp | 2 +- .../boost/asio/uses_executor.hpp | 2 +- .../vendor-modified/boost/asio/version.hpp | 2 +- .../vendor-modified/boost/asio/write.hpp | 182 ++++- .../vendor-modified/boost/asio/write_at.hpp | 96 ++- .../boost/assert/source_location.hpp | 5 +- .../boost/atomic/detail/futex.hpp | 53 +- .../vendor-modified/boost/bind/bind.hpp | 52 +- .../boost/container/adaptive_pool.hpp | 16 +- .../boost/container/allocator.hpp | 2 +- .../boost/container/allocator_traits.hpp | 161 +++- .../boost/container/container_fwd.hpp | 20 +- .../vendor-modified/boost/container/deque.hpp | 713 +++++++++++++++--- .../container/detail/adaptive_node_pool.hpp | 2 +- .../detail/adaptive_node_pool_impl.hpp | 94 +-- .../container/detail/advanced_insert_int.hpp | 49 +- .../container/detail/allocation_type.hpp | 14 +- .../boost/container/detail/block_list.hpp | 4 +- .../boost/container/detail/block_slist.hpp | 4 +- .../container/detail/construct_in_place.hpp | 36 +- .../boost/container/detail/copy_move_algo.hpp | 28 +- .../detail/dispatch_uses_allocator.hpp | 2 +- .../boost/container/detail/flat_tree.hpp | 78 +- .../container/detail/function_detector.hpp | 2 +- .../boost/container/detail/is_container.hpp | 4 +- .../detail/is_contiguous_container.hpp | 2 +- .../boost/container/detail/is_pair.hpp | 8 +- .../boost/container/detail/iterators.hpp | 16 +- .../boost/container/detail/math_functions.hpp | 18 +- .../boost/container/detail/mpl.hpp | 8 +- .../detail/multiallocation_chain.hpp | 106 ++- .../container/detail/node_alloc_holder.hpp | 23 +- .../boost/container/detail/node_pool.hpp | 2 +- .../boost/container/detail/pair.hpp | 34 +- .../boost/container/detail/pool_common.hpp | 2 +- .../container/detail/pool_common_alloc.hpp | 4 +- .../boost/container/detail/pool_resource.hpp | 8 +- .../boost/container/detail/tree.hpp | 138 ++-- .../boost/container/detail/version_type.hpp | 8 +- .../boost/container/detail/workaround.hpp | 12 + .../boost/container/devector.hpp | 210 ++++-- .../boost/container/flat_map.hpp | 127 +++- .../boost/container/flat_set.hpp | 4 +- .../vendor-modified/boost/container/list.hpp | 52 +- .../vendor-modified/boost/container/map.hpp | 21 +- .../boost/container/new_allocator.hpp | 2 +- .../boost/container/node_allocator.hpp | 23 +- .../boost/container/node_handle.hpp | 11 +- .../boost/container/options.hpp | 30 +- .../boost/container/pmr/memory_resource.hpp | 2 +- .../pmr/monotonic_buffer_resource.hpp | 2 +- .../boost/container/pmr/resource_adaptor.hpp | 6 +- .../boost/container/scoped_allocator.hpp | 2 +- .../vendor-modified/boost/container/set.hpp | 4 +- .../vendor-modified/boost/container/slist.hpp | 55 +- .../boost/container/small_vector.hpp | 88 +-- .../boost/container/stable_vector.hpp | 78 +- .../boost/container/static_vector.hpp | 12 +- .../boost/container/string.hpp | 102 +-- .../boost/container/uses_allocator.hpp | 6 +- .../boost/container/vector.hpp | 295 ++++++-- .../boost/core/detail/minstd_rand.hpp | 58 ++ .../boost/core/detail/string_view.hpp | 26 +- .../boost/core/empty_value.hpp | 58 +- .../boost/core/lightweight_test.hpp | 1 + .../boost/core/pointer_in_range.hpp | 49 ++ .../vendor-modified/boost/core/span.hpp | 2 + .../vendor-modified/boost/core/type_name.hpp | 9 +- .../boost/function/function_base.hpp | 56 +- .../boost/function/function_template.hpp | 179 ++++- .../boost/intrusive/detail/algorithm.hpp | 16 +- .../boost/intrusive/detail/hash.hpp | 2 +- .../boost/intrusive/detail/hook_traits.hpp | 14 +- .../boost/intrusive/pointer_traits.hpp | 36 +- .../detail/converter_lexical_streams.hpp | 39 +- .../boost/libs/random/src/random_device.cpp | 4 +- .../boost/move/detail/config_begin.hpp | 1 - .../boost/move/detail/launder.hpp | 53 ++ .../boost/move/detail/type_traits.hpp | 10 +- .../boost/move/detail/workaround.hpp | 7 +- .../vendor-modified/boost/mp11/version.hpp | 2 +- .../boost/mpl/aux_/integral_wrapper.hpp | 3 +- .../vendor-modified/boost/predef/version.h | 2 +- .../boost/smart_ptr/detail/requires_cxx11.hpp | 2 +- .../detail/sp_has_gcc_intrinsics.hpp | 5 +- .../detail/generic_category_message.hpp | 14 +- .../boost/thread/detail/thread.hpp | 4 +- .../boost/thread/exceptions.hpp | 2 - .../vendor-modified/boost/thread/once.hpp | 2 +- .../boost/unordered/concurrent_flat_map.hpp | 14 +- .../unordered/concurrent_flat_map_fwd.hpp | 15 + .../boost/unordered/concurrent_flat_set.hpp | 14 +- .../unordered/concurrent_flat_set_fwd.hpp | 15 + .../boost/unordered/detail/fca.hpp | 28 +- .../unordered/detail/foa/concurrent_table.hpp | 48 +- .../boost/unordered/detail/foa/core.hpp | 113 ++- .../unordered/detail/foa/cumulative_stats.hpp | 177 +++++ .../boost/unordered/detail/foa/table.hpp | 12 +- .../boost/unordered/hash_traits.hpp | 40 +- .../boost/unordered/unordered_flat_map.hpp | 12 + .../unordered/unordered_flat_map_fwd.hpp | 15 + .../boost/unordered/unordered_flat_set.hpp | 12 + .../unordered/unordered_flat_set_fwd.hpp | 14 + .../boost/unordered/unordered_map_fwd.hpp | 19 + .../boost/unordered/unordered_node_map.hpp | 12 + .../unordered/unordered_node_map_fwd.hpp | 15 + .../boost/unordered/unordered_node_set.hpp | 12 + .../unordered/unordered_node_set_fwd.hpp | 14 + .../boost/unordered/unordered_set_fwd.hpp | 17 + .../boost/utility/detail/minstd_rand.hpp | 44 +- .../vendor-modified/boost/version.hpp | 4 +- 232 files changed, 7786 insertions(+), 3440 deletions(-) create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/cancel_after.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/cancel_at.hpp rename src/cxx_supportlib/vendor-modified/boost/asio/{experimental/impl => }/co_composed.hpp (80%) create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/composed.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/default_completion_token.hpp rename src/cxx_supportlib/vendor-modified/boost/asio/{experimental/detail/channel_message.hpp => detail/completion_message.hpp} (79%) rename src/cxx_supportlib/vendor-modified/boost/asio/{experimental/detail/channel_payload.hpp => detail/completion_payload.hpp} (69%) rename src/cxx_supportlib/vendor-modified/boost/asio/{experimental/detail/channel_handler.hpp => detail/completion_payload_handler.hpp} (69%) create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/detail/initiation_base.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/detail/timed_cancel_op.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/immediate.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_after.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_at.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/core/detail/minstd_rand.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/core/pointer_in_range.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/move/detail/launder.hpp create mode 100644 src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/cumulative_stats.hpp diff --git a/src/cxx_supportlib/vendor-modified/boost/asio.hpp b/src/cxx_supportlib/vendor-modified/boost/asio.hpp index 1d526b8ae8..09efee9d6a 100644 --- a/src/cxx_supportlib/vendor-modified/boost/asio.hpp +++ b/src/cxx_supportlib/vendor-modified/boost/asio.hpp @@ -61,12 +61,16 @@ #include #include #include +#include +#include #include #include #include +#include #include #include #include +#include #include #include #include @@ -74,6 +78,7 @@ #include #include #include +#include #include #include #include @@ -101,6 +106,7 @@ #include #include #include +#include #include #include #include @@ -182,6 +188,15 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp b/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp index 6e91d8edd5..be508b8681 100644 --- a/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +++ b/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp @@ -107,16 +107,42 @@ class as_tuple_t CompletionToken token_; }; -/// Adapt a @ref completion_token to specify that the completion handler -/// arguments should be combined into a single tuple argument. -template -BOOST_ASIO_NODISCARD inline -constexpr as_tuple_t> -as_tuple(CompletionToken&& completion_token) +/// A function object type that adapts a @ref completion_token to specify that +/// the completion handler arguments should be combined into a single tuple +/// argument. +/** + * May also be used directly as a completion token, in which case it adapts the + * asynchronous operation's default completion token (or boost::asio::deferred + * if no default is available). + */ +struct partial_as_tuple { - return as_tuple_t>( - static_cast(completion_token)); -} + /// Default constructor. + constexpr partial_as_tuple() + { + } + + /// Adapt a @ref completion_token to specify that the completion handler + /// arguments should be combined into a single tuple argument. + template + BOOST_ASIO_NODISCARD inline + constexpr as_tuple_t> + operator()(CompletionToken&& completion_token) const + { + return as_tuple_t>( + static_cast(completion_token)); + } +}; + +/// A function object that adapts a @ref completion_token to specify that the +/// completion handler arguments should be combined into a single tuple +/// argument. +/** + * May also be used directly as a completion token, in which case it adapts the + * asynchronous operation's default completion token (or boost::asio::deferred + * if no default is available). + */ +BOOST_ASIO_INLINE_VARIABLE constexpr partial_as_tuple as_tuple; } // namespace asio } // namespace boost diff --git a/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp b/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp index 7e898f478f..64fa4d943d 100644 --- a/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +++ b/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp @@ -50,9 +50,10 @@ struct has_immediate_executor_type struct default_immediate_executor { - typedef require_result_t type; + typedef decay_t> type; - static type get(const E& e) noexcept + static auto get(const E& e) noexcept + -> decltype(boost::asio::require(e, execution::blocking.never)) { return boost::asio::require(e, execution::blocking.never); } diff --git a/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp b/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp index 3096de3e2c..d9f5e6e94e 100644 --- a/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +++ b/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp @@ -24,7 +24,7 @@ namespace asio { /// Used to generically specialise associators for a type. template