grpc 1.57.0 → 1.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +1468 -1087
- data/include/grpc/event_engine/event_engine.h +28 -24
- data/include/grpc/event_engine/extensible.h +68 -0
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +6 -0
- data/include/grpc/event_engine/internal/slice_cast.h +12 -0
- data/include/grpc/event_engine/memory_allocator.h +5 -3
- data/include/grpc/event_engine/slice.h +5 -0
- data/include/grpc/grpc_crl_provider.h +94 -0
- data/include/grpc/grpc_security.h +38 -1
- data/include/grpc/impl/call.h +29 -0
- data/include/grpc/impl/channel_arg_names.h +400 -0
- data/include/grpc/impl/grpc_types.h +1 -353
- data/include/grpc/impl/slice_type.h +1 -1
- data/include/grpc/module.modulemap +3 -0
- data/include/grpc/support/port_platform.h +86 -21
- data/src/core/client_channel/backend_metric.cc +95 -0
- data/src/core/client_channel/backend_metric.h +47 -0
- data/src/core/client_channel/backup_poller.cc +178 -0
- data/src/core/client_channel/backup_poller.h +37 -0
- data/src/core/client_channel/channel_connectivity.cc +265 -0
- data/src/core/client_channel/client_channel_channelz.cc +93 -0
- data/src/core/client_channel/client_channel_channelz.h +85 -0
- data/src/core/client_channel/client_channel_factory.cc +32 -0
- data/src/core/client_channel/client_channel_factory.h +46 -0
- data/src/core/client_channel/client_channel_filter.cc +3654 -0
- data/src/core/client_channel/client_channel_filter.h +636 -0
- data/src/core/client_channel/client_channel_internal.h +79 -0
- data/src/core/client_channel/client_channel_plugin.cc +55 -0
- data/src/core/client_channel/client_channel_service_config.cc +153 -0
- data/src/core/client_channel/client_channel_service_config.h +111 -0
- data/src/core/client_channel/config_selector.cc +60 -0
- data/src/core/client_channel/config_selector.h +125 -0
- data/src/core/client_channel/connector.h +87 -0
- data/src/core/client_channel/dynamic_filters.cc +174 -0
- data/src/core/client_channel/dynamic_filters.h +110 -0
- data/src/core/client_channel/global_subchannel_pool.cc +65 -0
- data/src/core/client_channel/global_subchannel_pool.h +63 -0
- data/src/core/client_channel/http_proxy_mapper.cc +305 -0
- data/src/core/client_channel/http_proxy_mapper.h +53 -0
- data/src/core/client_channel/local_subchannel_pool.cc +60 -0
- data/src/core/client_channel/local_subchannel_pool.h +59 -0
- data/src/core/client_channel/retry_filter.cc +160 -0
- data/src/core/client_channel/retry_filter.h +122 -0
- data/src/core/client_channel/retry_filter_legacy_call_data.cc +2054 -0
- data/src/core/client_channel/retry_filter_legacy_call_data.h +443 -0
- data/src/core/client_channel/retry_service_config.cc +283 -0
- data/src/core/client_channel/retry_service_config.h +105 -0
- data/src/core/client_channel/retry_throttle.cc +139 -0
- data/src/core/client_channel/retry_throttle.h +92 -0
- data/src/core/client_channel/service_config_channel_arg_filter.cc +136 -0
- data/src/core/client_channel/subchannel.cc +812 -0
- data/src/core/client_channel/subchannel.h +387 -0
- data/src/core/client_channel/subchannel_interface_internal.h +41 -0
- data/src/core/client_channel/subchannel_pool_interface.cc +66 -0
- data/src/core/client_channel/subchannel_pool_interface.h +100 -0
- data/src/core/client_channel/subchannel_stream_client.cc +468 -0
- data/src/core/client_channel/subchannel_stream_client.h +225 -0
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.cc +56 -16
- data/src/core/ext/filters/backend_metrics/backend_metric_filter.h +20 -6
- data/src/core/ext/filters/channel_idle/channel_idle_filter.cc +49 -46
- data/src/core/ext/filters/channel_idle/channel_idle_filter.h +18 -10
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.cc +326 -0
- data/src/core/ext/filters/channel_idle/legacy_channel_idle_filter.h +143 -0
- data/src/core/ext/filters/deadline/deadline_filter.cc +21 -24
- data/src/core/ext/filters/deadline/deadline_filter.h +0 -4
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +19 -14
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +13 -4
- data/src/core/ext/filters/fault_injection/fault_injection_service_config_parser.h +1 -1
- data/src/core/ext/filters/http/client/http_client_filter.cc +30 -39
- data/src/core/ext/filters/http/client/http_client_filter.h +10 -5
- data/src/core/ext/filters/http/client_authority_filter.cc +23 -25
- data/src/core/ext/filters/http/client_authority_filter.h +12 -4
- data/src/core/ext/filters/http/http_filters_plugin.cc +58 -38
- data/src/core/ext/filters/http/message_compress/compression_filter.cc +56 -84
- data/src/core/ext/filters/http/message_compress/compression_filter.h +54 -12
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.cc +325 -0
- data/src/core/ext/filters/http/message_compress/legacy_compression_filter.h +139 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +55 -53
- data/src/core/ext/filters/http/server/http_server_filter.h +11 -4
- data/src/core/ext/filters/message_size/message_size_filter.cc +80 -109
- data/src/core/ext/filters/message_size/message_size_filter.h +36 -24
- data/src/core/ext/filters/rbac/rbac_filter.cc +24 -20
- data/src/core/ext/filters/rbac/rbac_filter.h +11 -4
- data/src/core/ext/filters/rbac/rbac_service_config_parser.cc +4 -7
- data/src/core/ext/filters/rbac/rbac_service_config_parser.h +1 -1
- data/src/core/ext/filters/server_config_selector/server_config_selector.h +2 -2
- data/src/core/ext/filters/server_config_selector/server_config_selector_filter.cc +28 -15
- data/src/core/ext/filters/stateful_session/stateful_session_filter.cc +60 -65
- data/src/core/ext/filters/stateful_session/stateful_session_filter.h +43 -9
- data/src/core/ext/filters/stateful_session/stateful_session_service_config_parser.h +1 -1
- data/src/core/ext/gcp/metadata_query.cc +0 -1
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +5 -2
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +10 -12
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +1 -1
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +29 -32
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +1018 -904
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +47 -4
- data/src/core/ext/transport/chttp2/transport/context_list_entry.h +12 -2
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +56 -88
- data/src/core/ext/transport/chttp2/transport/flow_control.h +85 -12
- data/src/core/ext/transport/chttp2/transport/frame.cc +506 -0
- data/src/core/ext/transport/chttp2/transport/frame.h +193 -22
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +4 -3
- data/src/core/ext/transport/chttp2/transport/frame_data.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +0 -2
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +22 -18
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +10 -3
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +1 -1
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +34 -82
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +5 -8
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +1 -3
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +1 -1
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +16 -22
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +12 -3
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +3 -4
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.cc +37 -29
- data/src/core/ext/transport/chttp2/transport/hpack_parse_result.h +61 -36
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +79 -11
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +17 -8
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +3 -1
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +122 -32
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +142 -37
- data/src/core/ext/transport/chttp2/transport/internal.h +220 -162
- data/src/core/ext/transport/chttp2/transport/legacy_frame.h +43 -0
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.cc +44 -0
- data/src/core/ext/transport/chttp2/transport/max_concurrent_streams_policy.h +67 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +146 -50
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.cc +90 -0
- data/src/core/ext/transport/chttp2/transport/ping_abuse_policy.h +59 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.cc +108 -0
- data/src/core/ext/transport/chttp2/transport/ping_callbacks.h +115 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.cc +120 -0
- data/src/core/ext/transport/chttp2/transport/ping_rate_policy.h +88 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +1 -1
- data/src/core/ext/transport/chttp2/transport/write_size_policy.cc +60 -0
- data/src/core/ext/transport/chttp2/transport/write_size_policy.h +66 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +225 -176
- data/src/core/ext/transport/inproc/inproc_transport.cc +168 -1227
- data/src/core/ext/transport/inproc/inproc_transport.h +8 -4
- data/src/core/ext/transport/inproc/legacy_inproc_transport.cc +1303 -0
- data/src/core/ext/transport/inproc/legacy_inproc_transport.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb.h +725 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.c +149 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/certs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb.h +827 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.c +180 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/clusters.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb.h +733 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb.h +2772 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.c +532 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/config_dump_shared.upb_minitable.h +48 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb.h +248 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.c +66 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/init_dump.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb.h +280 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.c +74 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/listeners.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.c +56 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/memory.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/metrics.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/mutex_stats.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb.h +928 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.c +150 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/server_info.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/admin/v3/tap.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb.h +122 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/envoy/annotations/deprecation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/annotations/resource.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb.h +1753 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.c +375 -0
- data/src/core/ext/upb-gen/envoy/config/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb.h +3607 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.c +651 -0
- data/src/core/ext/upb-gen/envoy/config/bootstrap/v3/bootstrap.upb_minitable.h +51 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb.h +526 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.c +125 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/circuit_breaker.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb.h +3934 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.c +737 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/cluster.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb.h +146 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.c +57 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/filter.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb.h +687 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.c +125 -0
- data/src/core/ext/upb-gen/envoy/config/cluster/v3/outlier_detection.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb.h +1829 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.c +394 -0
- data/src/core/ext/upb-gen/envoy/config/common/matcher/v3/matcher.upb_minitable.h +44 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb.h +1070 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.c +227 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/address.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/backoff.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb.h +2436 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.c +578 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/base.upb_minitable.h +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb.h +1130 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.c +225 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/config_source.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/event_service_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb.h +116 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_method_list.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb.h +1688 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.c +378 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/grpc_service.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb.h +1938 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.c +315 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/health_check.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb.h +166 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb.h +144 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/http_uri.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb.h +2275 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.c +483 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/protocol.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/proxy_protocol.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/resolver.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb.h +287 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/socket_option.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb.h +335 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.c +83 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/substitution_format_string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb.h +129 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/config/core/v3/udp_socket_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb.h +504 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.c +139 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb.h +993 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.c +229 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/endpoint_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb.h +911 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.c +179 -0
- data/src/core/ext/upb-gen/envoy/config/endpoint/v3/load_report.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/api_listener.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb.h +1613 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.c +268 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb.h +1447 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.c +260 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/listener_components.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb.h +327 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/quic_config.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb.h +197 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.c +77 -0
- data/src/core/ext/upb-gen/envoy/config/listener/v3/udp_listener_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb.h +183 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/metrics_service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb.h +974 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.c +219 -0
- data/src/core/ext/upb-gen/envoy/config/metrics/v3/stats.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb.h +1183 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.c +250 -0
- data/src/core/ext/upb-gen/envoy/config/overload/v3/overload.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb.h +1704 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.c +348 -0
- data/src/core/ext/upb-gen/envoy/config/rbac/v3/rbac.upb_minitable.h +40 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb.h +885 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.c +151 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb.h +9754 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.c +1670 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/route_components.upb_minitable.h +87 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb.h +341 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.c +97 -0
- data/src/core/ext/upb-gen/envoy/config/route/v3/scoped_route.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb.h +1545 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.c +328 -0
- data/src/core/ext/upb-gen/envoy/config/tap/v3/common.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb.h +119 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/datadog.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb.h +119 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.c +56 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/dynamic_ot.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb.h +190 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.c +73 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/http_tracer.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb.h +202 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/lightstep.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb.h +409 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opencensus.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb.h +237 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.c +65 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/opentelemetry.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb.h +102 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/service.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb.h +254 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.c +85 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/skywalking.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb.h +49 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.c +33 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/trace.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb.h +256 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/xray.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb.h +201 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.c +65 -0
- data/src/core/ext/upb-gen/envoy/config/trace/v3/zipkin.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb.h +2709 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.c +556 -0
- data/src/core/ext/upb-gen/envoy/data/accesslog/v3/accesslog.upb_minitable.h +45 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +134 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/extensions/clusters/aggregate/v3/cluster.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb.h +428 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.c +116 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/common/fault/v3/fault.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb.h +656 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.c +141 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/fault/v3/fault.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +266 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.c +87 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/rbac/v3/rbac.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb.h +463 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.c +102 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/router/v3/router.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +209 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +3985 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.c +682 -0
- data/src/core/ext/upb-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb_minitable.h +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +239 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.c +67 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +488 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.c +135 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/common/v3/common.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +86 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.c +44 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +250 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.c +68 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +101 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.c +50 -0
- data/src/core/ext/upb-gen/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +39 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.c +28 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/cert.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb.h +1484 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.c +267 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/common.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +361 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.c +108 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/secret.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +1509 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.c +270 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +217 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb.h +712 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.c +151 -0
- data/src/core/ext/upb-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb.h +73 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/ads.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb.h +2141 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.c +402 -0
- data/src/core/ext/upb-gen/envoy/service/discovery/v3/discovery.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb.h +324 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/service/load_stats/v3/lrs.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb.h +940 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.c +188 -0
- data/src/core/ext/upb-gen/envoy/service/status/v3/csds.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb.h +131 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/cookie.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb.h +312 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.c +86 -0
- data/src/core/ext/upb-gen/envoy/type/http/v3/path_transformation.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb.h +124 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/filter_state.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb.h +299 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.c +105 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/http_inputs.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb.h +260 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/metadata.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb.h +166 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/node.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb.h +130 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.c +54 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/number.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb.h +110 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/path.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb.h +271 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.c +96 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/regex.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb.h +109 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.c +43 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/status_code_input.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb.h +306 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.c +81 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb.h +230 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.c +70 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/struct.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb.h +476 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.c +113 -0
- data/src/core/ext/upb-gen/envoy/type/matcher/v3/value.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb.h +525 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.c +127 -0
- data/src/core/ext/upb-gen/envoy/type/metadata/v3/metadata.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb.h +506 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.c +139 -0
- data/src/core/ext/upb-gen/envoy/type/tracing/v3/custom_tag.upb_minitable.h +34 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb.h +227 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.c +76 -0
- data/src/core/ext/upb-gen/envoy/type/v3/hash_policy.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb.h +38 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb.h +148 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/envoy/type/v3/http_status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb.h +162 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.c +64 -0
- data/src/core/ext/upb-gen/envoy/type/v3/percent.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb.h +238 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/envoy/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb.h +232 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_strategy.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb.h +42 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.c +26 -0
- data/src/core/ext/upb-gen/envoy/type/v3/ratelimit_unit.upb_minitable.h +29 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb.h +117 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.c +49 -0
- data/src/core/ext/upb-gen/envoy/type/v3/semantic_version.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb.h +146 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.c +57 -0
- data/src/core/ext/upb-gen/envoy/type/v3/token_bucket.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb.h +56 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.c +38 -0
- data/src/core/ext/upb-gen/google/api/annotations.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb.h +1743 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.c +369 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/checked.upb_minitable.h +42 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb.h +1829 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.c +399 -0
- data/src/core/ext/upb-gen/google/api/expr/v1alpha1/syntax.upb_minitable.h +43 -0
- data/src/core/ext/upb-gen/google/api/http.upb.h +496 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.c +111 -0
- data/src/core/ext/upb-gen/google/api/http.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb.h +165 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/api/httpbody.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/any.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb.h +6397 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.c +1357 -0
- data/src/core/ext/upb-gen/google/protobuf/descriptor.upb_minitable.h +78 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/duration.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb.h +69 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.c +35 -0
- data/src/core/ext/upb-gen/google/protobuf/empty.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb.h +422 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.c +115 -0
- data/src/core/ext/upb-gen/google/protobuf/struct.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb.h +99 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.c +46 -0
- data/src/core/ext/upb-gen/google/protobuf/timestamp.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb.h +508 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.c +163 -0
- data/src/core/ext/upb-gen/google/protobuf/wrappers.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb.h +165 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/google/rpc/status.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb.h +385 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.c +106 -0
- data/src/core/ext/upb-gen/opencensus/proto/trace/v1/trace_config.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb.h +237 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/altscontext.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb.h +1658 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.c +342 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/handshaker.upb_minitable.h +41 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb.h +197 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.c +69 -0
- data/src/core/ext/upb-gen/src/proto/grpc/gcp/transport_security_common.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb.h +144 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/src/proto/grpc/health/v1/health.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb.h +877 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.c +221 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lb/v1/load_balancer.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb.h +297 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.c +92 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb.h +1333 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.c +243 -0
- data/src/core/ext/upb-gen/src/proto/grpc/lookup/v1/rls_config.upb_minitable.h +38 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/udpa/annotations/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb.h +125 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/udpa/annotations/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/udpa/annotations/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb.h +131 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/udpa/annotations/status.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/udpa/annotations/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/validate/validate.upb.h +6507 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.c +943 -0
- data/src/core/ext/upb-gen/validate/validate.upb_minitable.h +57 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h +322 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c +118 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h +125 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c +37 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h +336 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c +117 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h +36 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h +109 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb.h +87 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.c +45 -0
- data/src/core/ext/upb-gen/xds/core/v3/authority.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb.h +116 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/xds/core/v3/cidr.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb.h +234 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.c +78 -0
- data/src/core/ext/upb-gen/xds/core/v3/collection_entry.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb.h +134 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.c +62 -0
- data/src/core/ext/upb-gen/xds/core/v3/context_params.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb.h +115 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/core/v3/extension.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb.h +144 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.c +55 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb.h +331 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.c +84 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_locator.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb.h +146 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.c +59 -0
- data/src/core/ext/upb-gen/xds/core/v3/resource_name.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb.h +350 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.c +126 -0
- data/src/core/ext/upb-gen/xds/data/orca/v3/orca_load_report.upb_minitable.h +33 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb.h +161 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.c +52 -0
- data/src/core/ext/upb-gen/xds/service/orca/v3/orca.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb.h +116 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.c +53 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/cel.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb.h +263 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.c +72 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/domain.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb.h +71 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.c +36 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/http_inputs.upb_minitable.h +30 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb.h +282 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.c +75 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/ip.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb.h +1107 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.c +265 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/matcher.upb_minitable.h +39 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb.h +726 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.c +157 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/range.upb_minitable.h +35 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb.h +159 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.c +58 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/regex.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb.h +304 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/matcher/v3/string.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb.h +233 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.c +79 -0
- data/src/core/ext/upb-gen/xds/type/v3/cel.upb_minitable.h +31 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb.h +235 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.c +82 -0
- data/src/core/ext/upb-gen/xds/type/v3/range.upb_minitable.h +32 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb.h +114 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.c +51 -0
- data/src/core/ext/upb-gen/xds/type/v3/typed_struct.upb_minitable.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.c +83 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/certs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.c +127 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/clusters.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.c +101 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.c +276 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/config_dump_shared.upbdefs.h +125 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.c +42 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/init_dump.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/listeners.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/memory.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/metrics.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/mutex_stats.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/server_info.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/admin/v3/tap.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/deprecation.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/envoy/annotations/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.c +233 -0
- data/src/core/ext/upbdefs-gen/envoy/config/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +444 -0
- data/src/core/ext/upbdefs-gen/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +140 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +97 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.c +574 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/cluster.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/filter.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.c +142 -0
- data/src/core/ext/upbdefs-gen/envoy/config/cluster/v3/outlier_detection.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.c +201 -0
- data/src/core/ext/upbdefs-gen/envoy/config/common/matcher/v3/matcher.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.c +139 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/address.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/backoff.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.c +274 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/base.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.c +167 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/config_source.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/event_service_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_method_list.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.c +236 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/grpc_service.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.c +244 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/health_check.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/http_uri.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.c +314 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/protocol.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/proxy_protocol.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/resolver.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/socket_option.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/substitution_format_string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.c +48 -0
- data/src/core/ext/upbdefs-gen/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.c +101 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +139 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.c +135 -0
- data/src/core/ext/upbdefs-gen/envoy/config/endpoint/v3/load_report.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/api_listener.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.c +231 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.c +189 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/listener_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.c +100 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/listener/v3/udp_listener_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/metrics_service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.c +124 -0
- data/src/core/ext/upbdefs-gen/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-gen/envoy/config/overload/v3/overload.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.c +222 -0
- data/src/core/ext/upbdefs-gen/envoy/config/rbac/v3/rbac.upbdefs.h +85 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.c +125 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.c +984 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/route_components.upbdefs.h +320 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-gen/envoy/config/route/v3/scoped_route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.c +205 -0
- data/src/core/ext/upbdefs-gen/envoy/config/tap/v3/common.upbdefs.h +90 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/datadog.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/dynamic_ot.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/http_tracer.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/lightstep.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.c +104 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opencensus.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/opentelemetry.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/service.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/skywalking.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/trace.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.c +74 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/xray.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.c +78 -0
- data/src/core/ext/upbdefs-gen/envoy/config/trace/v3/zipkin.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.c +404 -0
- data/src/core/ext/upbdefs-gen/envoy/data/accesslog/v3/accesslog.upbdefs.h +110 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +91 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +122 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +79 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.c +108 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/router/v3/router.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +605 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +135 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +49 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +216 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +90 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +263 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.c +133 -0
- data/src/core/ext/upbdefs-gen/envoy/extensions/upstreams/http/v3/http_protocol_options.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/ads.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.c +199 -0
- data/src/core/ext/upbdefs-gen/envoy/service/discovery/v3/discovery.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-gen/envoy/service/load_stats/v3/lrs.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.c +155 -0
- data/src/core/ext/upbdefs-gen/envoy/service/status/v3/csds.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/cookie.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/filter_state.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/http_inputs.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/metadata.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/node.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/number.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/path.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/regex.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/status_code_input.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.c +64 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.c +57 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.c +81 -0
- data/src/core/ext/upbdefs-gen/envoy/type/matcher/v3/value.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.c +77 -0
- data/src/core/ext/upbdefs-gen/envoy/type/metadata/v3/metadata.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.c +84 -0
- data/src/core/ext/upbdefs-gen/envoy/type/tracing/v3/custom_tag.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/hash_policy.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.c +93 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/http_status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/percent.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.c +68 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_strategy.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/ratelimit_unit.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/semantic_version.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-gen/envoy/type/v3/token_bucket.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/google/api/annotations.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.c +153 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/checked.upbdefs.h +95 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.c +152 -0
- data/src/core/ext/upbdefs-gen/google/api/expr/v1alpha1/syntax.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/google/api/http.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/google/api/httpbody.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/any.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.c +488 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/descriptor.upbdefs.h +190 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/duration.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.c +31 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/empty.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/struct.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/timestamp.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/google/protobuf/wrappers.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/google/rpc/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-gen/opencensus/proto/trace/v1/trace_config.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +98 -0
- data/src/core/ext/upbdefs-gen/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.c +33 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/udpa/annotations/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.c +282 -0
- data/src/core/ext/upbdefs-gen/validate/validate.upbdefs.h +145 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.c +62 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/status.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/annotations/v3/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/authority.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/cidr.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.c +55 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/collection_entry.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.c +38 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/context_params.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/extension.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_locator.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-gen/xds/core/v3/resource_name.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/cel.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/domain.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/http_inputs.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/ip.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.c +125 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/matcher.upbdefs.h +80 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.c +70 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/range.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/regex.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-gen/xds/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/cel.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.c +35 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.c +36 -0
- data/src/core/ext/upbdefs-gen/xds/type/v3/typed_struct.upbdefs.h +35 -0
- data/src/core/ext/xds/certificate_provider_store.cc +2 -1
- data/src/core/ext/xds/certificate_provider_store.h +0 -5
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +0 -1
- data/src/core/ext/xds/xds_api.cc +92 -167
- data/src/core/ext/xds/xds_api.h +4 -9
- data/src/core/ext/xds/xds_bootstrap.h +6 -4
- data/src/core/ext/xds/xds_bootstrap_grpc.cc +4 -16
- data/src/core/ext/xds/xds_bootstrap_grpc.h +2 -1
- data/src/core/ext/xds/xds_certificate_provider.cc +88 -287
- data/src/core/ext/xds/xds_certificate_provider.h +44 -111
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +17 -28
- data/src/core/ext/xds/xds_channel_stack_modifier.h +3 -5
- data/src/core/ext/xds/xds_client.cc +531 -475
- data/src/core/ext/xds/xds_client.h +51 -37
- data/src/core/ext/xds/xds_client_grpc.cc +57 -16
- data/src/core/ext/xds/xds_client_grpc.h +4 -1
- data/src/core/ext/xds/xds_client_stats.cc +11 -11
- data/src/core/ext/xds/xds_client_stats.h +8 -14
- data/src/core/ext/xds/xds_cluster.cc +134 -53
- data/src/core/ext/xds/xds_cluster.h +12 -6
- data/src/core/ext/xds/xds_cluster_specifier_plugin.cc +9 -5
- data/src/core/ext/xds/xds_common_types.cc +14 -11
- data/src/core/ext/xds/xds_endpoint.cc +106 -67
- data/src/core/ext/xds/xds_endpoint.h +7 -4
- data/src/core/ext/xds/xds_health_status.cc +14 -2
- data/src/core/ext/xds/xds_health_status.h +5 -3
- data/src/core/ext/xds/xds_http_fault_filter.cc +1 -2
- data/src/core/ext/xds/xds_http_fault_filter.h +1 -2
- data/src/core/ext/xds/xds_http_filters.cc +1 -5
- data/src/core/ext/xds/xds_http_filters.h +2 -4
- data/src/core/ext/xds/xds_http_rbac_filter.cc +8 -11
- data/src/core/ext/xds/xds_http_rbac_filter.h +1 -2
- data/src/core/ext/xds/xds_http_stateful_session_filter.cc +2 -6
- data/src/core/ext/xds/xds_http_stateful_session_filter.h +1 -2
- data/src/core/ext/xds/xds_lb_policy_registry.cc +4 -7
- data/src/core/ext/xds/xds_listener.cc +29 -25
- data/src/core/ext/xds/xds_listener.h +13 -3
- data/src/core/ext/xds/xds_resource_type.h +1 -7
- data/src/core/ext/xds/xds_resource_type_impl.h +11 -11
- data/src/core/ext/xds/xds_route_config.cc +45 -35
- data/src/core/ext/xds/xds_route_config.h +2 -1
- data/src/core/ext/xds/xds_routing.cc +2 -2
- data/src/core/ext/xds/xds_server_config_fetcher.cc +112 -83
- data/src/core/ext/xds/xds_transport.h +3 -0
- data/src/core/ext/xds/xds_transport_grpc.cc +65 -56
- data/src/core/ext/xds/xds_transport_grpc.h +4 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +0 -1
- data/src/core/lib/avl/avl.h +11 -173
- data/src/core/lib/backoff/random_early_detection.cc +4 -2
- data/src/core/lib/backoff/random_early_detection.h +2 -4
- data/src/core/lib/channel/call_tracer.cc +315 -1
- data/src/core/lib/channel/call_tracer.h +63 -4
- data/src/core/lib/channel/channel_args.cc +95 -81
- data/src/core/lib/channel/channel_args.h +116 -29
- data/src/core/lib/channel/channel_args_preconditioning.cc +0 -1
- data/src/core/lib/channel/channel_stack.cc +36 -1
- data/src/core/lib/channel/channel_stack.h +10 -10
- data/src/core/lib/channel/channel_stack_builder.h +4 -15
- data/src/core/lib/channel/channel_stack_builder_impl.cc +1 -19
- data/src/core/lib/channel/channel_stack_trace.cc +19 -0
- data/src/core/lib/channel/channel_stack_trace.h +24 -0
- data/src/core/lib/channel/channel_trace.cc +1 -1
- data/src/core/lib/channel/channelz_registry.h +4 -2
- data/src/core/lib/channel/connected_channel.cc +152 -93
- data/src/core/lib/channel/context.h +3 -0
- data/src/core/lib/channel/promise_based_filter.cc +23 -11
- data/src/core/lib/channel/promise_based_filter.h +1042 -3
- data/src/core/lib/channel/server_call_tracer_filter.cc +43 -42
- data/src/core/lib/channel/status_util.cc +0 -1
- data/src/core/lib/channel/tcp_tracer.h +140 -0
- data/src/core/lib/compression/compression_internal.cc +10 -7
- data/src/core/lib/config/config_vars.cc +0 -1
- data/src/core/lib/config/config_vars.h +1 -1
- data/src/core/lib/config/config_vars_non_generated.cc +0 -2
- data/src/core/lib/config/core_configuration.cc +2 -2
- data/src/core/lib/config/core_configuration.h +8 -7
- data/src/core/lib/debug/stats_data.cc +202 -35
- data/src/core/lib/debug/stats_data.h +102 -0
- data/src/core/lib/event_engine/ares_resolver.cc +794 -0
- data/src/core/lib/event_engine/ares_resolver.h +151 -0
- data/src/core/lib/event_engine/cf_engine/cf_engine.cc +12 -3
- data/src/core/lib/event_engine/cf_engine/cf_engine.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.cc +9 -2
- data/src/core/lib/event_engine/cf_engine/cfstream_endpoint.h +3 -0
- data/src/core/lib/event_engine/cf_engine/cftype_unique_ref.h +3 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.cc +249 -0
- data/src/core/lib/event_engine/cf_engine/dns_service_resolver.h +120 -0
- data/src/core/lib/event_engine/channel_args_endpoint_config.cc +2 -0
- data/src/core/lib/event_engine/event_engine.cc +0 -2
- data/src/core/lib/event_engine/extensions/can_track_errors.h +40 -0
- data/src/core/lib/event_engine/extensions/supports_fd.h +160 -0
- data/src/core/lib/event_engine/forkable.cc +47 -50
- data/src/core/lib/event_engine/forkable.h +46 -25
- data/src/core/lib/event_engine/grpc_polled_fd.h +92 -0
- data/src/core/lib/event_engine/nameser.h +102 -0
- data/src/core/lib/event_engine/posix.h +11 -122
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.cc +6 -8
- data/src/core/lib/event_engine/posix_engine/ev_epoll1_linux.h +2 -3
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.cc +35 -18
- data/src/core/lib/event_engine/posix_engine/ev_poll_posix.h +12 -10
- data/src/core/lib/event_engine/posix_engine/event_poller.h +3 -1
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.cc +23 -4
- data/src/core/lib/event_engine/posix_engine/event_poller_posix_default.h +3 -1
- data/src/core/lib/event_engine/posix_engine/grpc_polled_fd_posix.h +205 -0
- data/src/core/lib/event_engine/posix_engine/internal_errqueue.cc +0 -2
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.cc +132 -0
- data/src/core/lib/event_engine/posix_engine/native_posix_dns_resolver.h +57 -0
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.cc +35 -12
- data/src/core/lib/event_engine/posix_engine/posix_endpoint.h +1 -1
- data/src/core/lib/event_engine/posix_engine/posix_engine.cc +112 -28
- data/src/core/lib/event_engine/posix_engine/posix_engine.h +29 -20
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener.cc +14 -6
- data/src/core/lib/event_engine/posix_engine/posix_engine_listener_utils.cc +21 -3
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.cc +11 -5
- data/src/core/lib/event_engine/posix_engine/tcp_socket_utils.h +7 -0
- data/src/core/lib/event_engine/posix_engine/timer_manager.cc +17 -27
- data/src/core/lib/event_engine/posix_engine/timer_manager.h +0 -3
- data/src/core/lib/event_engine/posix_engine/traced_buffer_list.cc +2 -0
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_eventfd.cc +0 -1
- data/src/core/lib/event_engine/posix_engine/wakeup_fd_pipe.cc +0 -1
- data/src/core/lib/event_engine/query_extensions.h +85 -0
- data/src/core/lib/event_engine/ref_counted_dns_resolver_interface.h +55 -0
- data/src/core/lib/event_engine/shim.cc +5 -17
- data/src/core/lib/event_engine/shim.h +0 -2
- data/src/core/lib/event_engine/slice_buffer.cc +0 -1
- data/src/core/lib/event_engine/tcp_socket_utils.cc +0 -1
- data/src/core/lib/event_engine/thread_pool/thread_count.cc +79 -0
- data/src/core/lib/event_engine/thread_pool/thread_count.h +181 -0
- data/src/core/lib/event_engine/thread_pool/thread_pool_factory.cc +19 -10
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.cc +209 -120
- data/src/core/lib/event_engine/thread_pool/work_stealing_thread_pool.h +24 -61
- data/src/core/lib/event_engine/utils.cc +2 -1
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.cc +824 -0
- data/src/core/lib/event_engine/windows/grpc_polled_fd_windows.h +75 -0
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.cc +115 -0
- data/src/core/lib/event_engine/windows/native_windows_dns_resolver.h +51 -0
- data/src/core/lib/event_engine/windows/win_socket.cc +20 -13
- data/src/core/lib/event_engine/windows/win_socket.h +19 -7
- data/src/core/lib/event_engine/windows/windows_endpoint.cc +35 -37
- data/src/core/lib/event_engine/windows/windows_endpoint.h +1 -1
- data/src/core/lib/event_engine/windows/windows_engine.cc +83 -38
- data/src/core/lib/event_engine/windows/windows_engine.h +16 -2
- data/src/core/lib/event_engine/windows/windows_listener.cc +2 -3
- data/src/core/lib/event_engine/work_queue/basic_work_queue.cc +2 -0
- data/src/core/lib/event_engine/work_queue/basic_work_queue.h +4 -1
- data/src/core/lib/event_engine/work_queue/work_queue.h +4 -0
- data/src/core/lib/experiments/config.cc +46 -3
- data/src/core/lib/experiments/config.h +9 -0
- data/src/core/lib/experiments/experiments.cc +683 -270
- data/src/core/lib/experiments/experiments.h +324 -85
- data/src/core/lib/gpr/alloc.cc +1 -0
- data/src/core/lib/gpr/posix/sync.cc +2 -2
- data/src/core/lib/gpr/posix/time.cc +0 -5
- data/src/core/lib/gpr/windows/sync.cc +2 -2
- data/src/core/lib/gprpp/debug_location.h +15 -0
- data/src/core/lib/gprpp/directory_reader.h +48 -0
- data/src/core/lib/gprpp/down_cast.h +49 -0
- data/src/core/lib/gprpp/dual_ref_counted.h +36 -7
- data/src/core/lib/gprpp/fork.h +1 -1
- data/src/core/lib/gprpp/host_port.cc +0 -2
- data/src/core/lib/gprpp/linux/env.cc +1 -19
- data/src/core/lib/gprpp/load_file.cc +2 -1
- data/src/core/lib/gprpp/load_file.h +2 -1
- data/src/core/lib/gprpp/manual_constructor.h +1 -2
- data/src/core/lib/gprpp/match.h +1 -1
- data/src/core/lib/gprpp/no_destruct.h +1 -1
- data/src/core/lib/gprpp/orphanable.h +27 -0
- data/src/core/lib/gprpp/per_cpu.cc +2 -0
- data/src/core/lib/gprpp/per_cpu.h +36 -7
- data/src/core/lib/gprpp/posix/directory_reader.cc +82 -0
- data/src/core/lib/gprpp/posix/stat.cc +0 -1
- data/src/core/lib/gprpp/posix/thd.cc +27 -2
- data/src/core/lib/gprpp/ref_counted.h +66 -23
- data/src/core/lib/gprpp/ref_counted_ptr.h +133 -27
- data/src/core/lib/gprpp/ref_counted_string.cc +44 -0
- data/src/core/lib/gprpp/ref_counted_string.h +161 -0
- data/src/core/lib/gprpp/status_helper.cc +1 -3
- data/src/core/lib/gprpp/strerror.cc +0 -2
- data/src/core/lib/gprpp/thd.h +8 -0
- data/src/core/lib/gprpp/time.cc +0 -1
- data/src/core/lib/gprpp/time.h +5 -4
- data/src/core/lib/gprpp/validation_errors.cc +0 -1
- data/src/core/lib/gprpp/windows/directory_reader.cc +81 -0
- data/src/core/lib/gprpp/windows/thd.cc +10 -1
- data/src/core/lib/gprpp/work_serializer.cc +323 -12
- data/src/core/lib/gprpp/work_serializer.h +30 -9
- data/src/core/lib/gprpp/xxhash_inline.h +29 -0
- data/src/core/lib/http/format_request.cc +0 -1
- data/src/core/lib/http/httpcli.cc +0 -2
- data/src/core/lib/http/httpcli_security_connector.cc +1 -0
- data/src/core/lib/iomgr/buffer_list.cc +2 -0
- data/src/core/lib/iomgr/combiner.cc +25 -19
- data/src/core/lib/iomgr/combiner.h +8 -3
- data/src/core/lib/iomgr/event_engine_shims/endpoint.cc +62 -40
- data/src/core/lib/iomgr/event_engine_shims/endpoint.h +16 -0
- data/src/core/lib/iomgr/event_engine_shims/tcp_client.cc +3 -2
- data/src/core/lib/iomgr/exec_ctx.cc +12 -0
- data/src/core/lib/iomgr/exec_ctx.h +55 -19
- data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +2 -2
- data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +2 -2
- data/src/core/lib/iomgr/polling_entity.cc +10 -0
- data/src/core/lib/iomgr/polling_entity.h +2 -0
- data/src/core/lib/iomgr/port.h +14 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +13 -0
- data/src/core/lib/iomgr/tcp_client_posix.cc +4 -3
- data/src/core/lib/iomgr/tcp_posix.cc +27 -18
- data/src/core/lib/iomgr/tcp_server_posix.cc +65 -50
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +12 -0
- data/src/core/lib/iomgr/timer_manager.cc +7 -1
- data/src/core/lib/iomgr/timer_manager.h +2 -0
- data/src/core/lib/json/json_object_loader.h +0 -1
- data/src/core/lib/json/json_reader.cc +0 -1
- data/src/core/lib/json/json_writer.cc +1 -1
- data/src/core/lib/matchers/matchers.cc +0 -1
- data/src/core/lib/promise/activity.cc +17 -3
- data/src/core/lib/promise/activity.h +13 -6
- data/src/core/lib/promise/all_ok.h +80 -0
- data/src/core/lib/promise/arena_promise.h +5 -1
- data/src/core/lib/promise/cancel_callback.h +0 -2
- data/src/core/lib/promise/context.h +45 -8
- data/src/core/lib/promise/detail/basic_seq.h +1 -372
- data/src/core/lib/promise/detail/join_state.h +2077 -0
- data/src/core/lib/promise/detail/promise_like.h +8 -1
- data/src/core/lib/promise/detail/seq_state.h +5801 -0
- data/src/core/lib/promise/detail/status.h +42 -5
- data/src/core/lib/promise/for_each.h +13 -6
- data/src/core/lib/promise/if.h +4 -1
- data/src/core/lib/promise/interceptor_list.h +13 -6
- data/src/core/lib/promise/latch.h +10 -8
- data/src/core/lib/promise/loop.h +9 -6
- data/src/core/lib/promise/map.h +0 -1
- data/src/core/lib/promise/party.cc +45 -33
- data/src/core/lib/promise/party.h +176 -10
- data/src/core/lib/promise/pipe.h +30 -34
- data/src/core/lib/promise/poll.h +43 -19
- data/src/core/lib/promise/prioritized_race.h +0 -1
- data/src/core/lib/promise/promise.h +4 -1
- data/src/core/lib/promise/race.h +0 -1
- data/src/core/lib/promise/seq.h +124 -8
- data/src/core/lib/promise/sleep.cc +1 -1
- data/src/core/lib/promise/sleep.h +5 -10
- data/src/core/lib/promise/status_flag.h +226 -0
- data/src/core/lib/promise/try_join.h +71 -21
- data/src/core/lib/promise/try_seq.h +161 -7
- data/src/core/lib/resource_quota/api.cc +1 -0
- data/src/core/lib/resource_quota/arena.cc +2 -0
- data/src/core/lib/resource_quota/arena.h +44 -10
- data/src/core/lib/resource_quota/memory_quota.cc +132 -25
- data/src/core/lib/resource_quota/memory_quota.h +12 -12
- data/src/core/lib/resource_quota/resource_quota.h +1 -0
- data/src/core/lib/security/authorization/audit_logging.cc +0 -1
- data/src/core/lib/security/authorization/authorization_policy_provider.h +1 -1
- data/src/core/lib/security/authorization/grpc_server_authz_filter.cc +15 -12
- data/src/core/lib/security/authorization/grpc_server_authz_filter.h +14 -5
- data/src/core/lib/security/authorization/matchers.cc +0 -1
- data/src/core/lib/security/authorization/rbac_policy.cc +0 -2
- data/src/core/lib/security/authorization/rbac_policy.h +1 -1
- data/src/core/lib/security/authorization/stdout_logger.cc +0 -1
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +0 -2
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +1 -1
- data/src/core/lib/security/credentials/composite/composite_credentials.h +1 -1
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +4 -1
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +8 -2
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +28 -22
- data/src/core/lib/security/credentials/external/external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +9 -11
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +5 -3
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +4 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +12 -11
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +0 -1
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +0 -2
- data/src/core/lib/security/credentials/jwt/json_token.cc +17 -0
- data/src/core/lib/security/credentials/jwt/json_token.h +4 -0
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +0 -1
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +43 -2
- data/src/core/lib/security/credentials/local/local_credentials.cc +0 -2
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +9 -7
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +0 -1
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +2 -2
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +1 -1
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +116 -10
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +14 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +0 -2
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_match.cc +86 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +16 -79
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +0 -3
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_verifier.h +2 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +33 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +23 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.cc +255 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_crl_provider.h +129 -0
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +26 -1
- data/src/core/lib/security/credentials/tls/tls_utils.cc +2 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +23 -30
- data/src/core/lib/security/credentials/xds/xds_credentials.h +2 -4
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +1 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +2 -2
- data/src/core/lib/security/security_connector/load_system_roots_supported.cc +3 -7
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +1 -1
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +7 -59
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +1 -1
- data/src/core/lib/security/security_connector/ssl_utils.cc +35 -19
- data/src/core/lib/security/security_connector/ssl_utils.h +4 -0
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +9 -20
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +2 -2
- data/src/core/lib/security/transport/auth_filters.h +71 -4
- data/src/core/lib/security/transport/client_auth_filter.cc +9 -9
- data/src/core/lib/security/transport/legacy_server_auth_filter.cc +244 -0
- data/src/core/lib/security/transport/secure_endpoint.cc +3 -6
- data/src/core/lib/security/transport/security_handshaker.cc +2 -11
- data/src/core/lib/security/transport/security_handshaker.h +0 -6
- data/src/core/lib/security/transport/server_auth_filter.cc +70 -92
- data/src/core/lib/slice/slice.h +11 -0
- data/src/core/lib/slice/slice_buffer.cc +15 -0
- data/src/core/lib/slice/slice_buffer.h +22 -5
- data/src/core/lib/slice/slice_refcount.h +1 -1
- data/src/core/lib/surface/builtins.cc +6 -25
- data/src/core/lib/surface/call.cc +935 -246
- data/src/core/lib/surface/call.h +30 -13
- data/src/core/lib/surface/call_log_batch.cc +0 -2
- data/src/core/lib/surface/call_trace.cc +46 -6
- data/src/core/lib/surface/channel.cc +26 -33
- data/src/core/lib/surface/channel.h +6 -28
- data/src/core/lib/surface/channel_init.cc +441 -14
- data/src/core/lib/surface/channel_init.h +274 -27
- data/src/core/lib/surface/completion_queue.cc +4 -1
- data/src/core/lib/surface/event_string.cc +0 -1
- data/src/core/lib/surface/init.cc +22 -48
- data/src/core/lib/surface/lame_client.cc +8 -1
- data/src/core/lib/surface/server.cc +518 -302
- data/src/core/lib/surface/server.h +68 -44
- data/src/core/lib/surface/version.cc +2 -2
- data/src/core/lib/surface/wait_for_cq_end_op.cc +75 -0
- data/src/core/lib/surface/wait_for_cq_end_op.h +72 -0
- data/src/core/lib/transport/batch_builder.cc +9 -12
- data/src/core/lib/transport/batch_builder.h +2 -4
- data/src/core/lib/transport/bdp_estimator.cc +2 -2
- data/src/core/lib/transport/bdp_estimator.h +2 -2
- data/src/core/lib/transport/call_factory.cc +41 -0
- data/src/core/lib/transport/call_factory.h +56 -0
- data/src/core/lib/transport/call_filters.cc +371 -0
- data/src/core/lib/transport/call_filters.h +1500 -0
- data/src/core/lib/transport/call_final_info.cc +38 -0
- data/src/core/lib/transport/call_final_info.h +54 -0
- data/src/core/lib/transport/call_size_estimator.cc +41 -0
- data/src/core/lib/transport/call_size_estimator.h +52 -0
- data/src/core/lib/transport/call_spine.cc +107 -0
- data/src/core/lib/transport/call_spine.h +429 -0
- data/src/core/lib/transport/connectivity_state.cc +3 -4
- data/src/core/lib/transport/connectivity_state.h +4 -0
- data/src/core/lib/transport/error_utils.cc +0 -2
- data/src/core/lib/transport/handshaker.cc +0 -10
- data/src/core/lib/transport/handshaker.h +0 -7
- data/src/core/lib/transport/message.cc +45 -0
- data/src/core/lib/transport/message.h +61 -0
- data/src/core/lib/transport/metadata.cc +37 -0
- data/src/core/lib/transport/metadata.h +78 -0
- data/src/core/lib/transport/metadata_batch.cc +9 -2
- data/src/core/lib/transport/metadata_batch.h +39 -5
- data/src/core/lib/transport/parsed_metadata.h +2 -4
- data/src/core/lib/transport/simple_slice_based_metadata.h +1 -2
- data/src/core/lib/transport/tcp_connect_handshaker.cc +0 -1
- data/src/core/lib/transport/timeout_encoding.h +2 -2
- data/src/core/lib/transport/transport.cc +13 -105
- data/src/core/lib/transport/transport.h +132 -168
- data/src/core/lib/transport/transport_fwd.h +3 -1
- data/src/core/lib/transport/transport_op_string.cc +0 -2
- data/src/core/lib/uri/uri_parser.cc +0 -1
- data/src/core/load_balancing/address_filtering.cc +108 -0
- data/src/core/load_balancing/address_filtering.h +118 -0
- data/src/core/load_balancing/backend_metric_data.h +57 -0
- data/src/core/load_balancing/child_policy_handler.cc +317 -0
- data/src/core/load_balancing/child_policy_handler.h +88 -0
- data/src/core/load_balancing/delegating_helper.h +116 -0
- data/src/core/load_balancing/endpoint_list.cc +187 -0
- data/src/core/load_balancing/endpoint_list.h +220 -0
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.cc +83 -0
- data/src/core/load_balancing/grpclb/client_load_reporting_filter.h +46 -0
- data/src/core/load_balancing/grpclb/grpclb.cc +1935 -0
- data/src/core/load_balancing/grpclb/grpclb.h +39 -0
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc +89 -0
- data/src/core/load_balancing/grpclb/grpclb_balancer_addresses.h +39 -0
- data/src/core/load_balancing/grpclb/grpclb_client_stats.cc +90 -0
- data/src/core/load_balancing/grpclb/grpclb_client_stats.h +81 -0
- data/src/core/load_balancing/grpclb/load_balancer_api.cc +202 -0
- data/src/core/load_balancing/grpclb/load_balancer_api.h +77 -0
- data/src/core/load_balancing/health_check_client.cc +520 -0
- data/src/core/load_balancing/health_check_client.h +52 -0
- data/src/core/load_balancing/health_check_client_internal.h +204 -0
- data/src/core/load_balancing/lb_policy.cc +98 -0
- data/src/core/load_balancing/lb_policy.h +481 -0
- data/src/core/load_balancing/lb_policy_factory.h +49 -0
- data/src/core/load_balancing/lb_policy_registry.cc +142 -0
- data/src/core/load_balancing/lb_policy_registry.h +82 -0
- data/src/core/load_balancing/oob_backend_metric.cc +340 -0
- data/src/core/load_balancing/oob_backend_metric.h +57 -0
- data/src/core/load_balancing/oob_backend_metric_internal.h +119 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection.cc +1208 -0
- data/src/core/load_balancing/outlier_detection/outlier_detection.h +94 -0
- data/src/core/load_balancing/pick_first/pick_first.cc +1232 -0
- data/src/core/load_balancing/pick_first/pick_first.h +36 -0
- data/src/core/load_balancing/priority/priority.cc +900 -0
- data/src/core/load_balancing/ring_hash/ring_hash.cc +878 -0
- data/src/core/load_balancing/ring_hash/ring_hash.h +62 -0
- data/src/core/load_balancing/rls/rls.cc +2477 -0
- data/src/core/load_balancing/round_robin/round_robin.cc +916 -0
- data/src/core/load_balancing/subchannel_interface.h +141 -0
- data/src/core/load_balancing/subchannel_list.h +455 -0
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc +198 -0
- data/src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h +71 -0
- data/src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc +1819 -0
- data/src/core/load_balancing/weighted_target/weighted_target.cc +755 -0
- data/src/core/load_balancing/xds/cds.cc +757 -0
- data/src/core/load_balancing/xds/xds_channel_args.h +37 -0
- data/src/core/load_balancing/xds/xds_cluster_impl.cc +863 -0
- data/src/core/load_balancing/xds/xds_cluster_manager.cc +652 -0
- data/src/core/load_balancing/xds/xds_override_host.cc +1313 -0
- data/src/core/load_balancing/xds/xds_override_host.h +63 -0
- data/src/core/load_balancing/xds/xds_wrr_locality.cc +300 -0
- data/src/core/plugin_registry/grpc_plugin_registry.cc +5 -0
- data/src/core/plugin_registry/grpc_plugin_registry_extra.cc +0 -3
- data/src/core/resolver/binder/binder_resolver.cc +147 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.cc +758 -0
- data/src/core/resolver/dns/c_ares/dns_resolver_ares.h +30 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h +90 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +206 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +818 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc +1219 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper.h +140 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +29 -0
- data/src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +35 -0
- data/src/core/resolver/dns/dns_resolver_plugin.cc +68 -0
- data/src/core/resolver/dns/dns_resolver_plugin.h +27 -0
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +588 -0
- data/src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h +35 -0
- data/src/core/resolver/dns/event_engine/service_config_helper.cc +97 -0
- data/src/core/resolver/dns/event_engine/service_config_helper.h +32 -0
- data/src/core/resolver/dns/native/dns_resolver.cc +183 -0
- data/src/core/resolver/dns/native/dns_resolver.h +24 -0
- data/src/core/resolver/endpoint_addresses.cc +147 -0
- data/src/core/resolver/endpoint_addresses.h +164 -0
- data/src/core/resolver/fake/fake_resolver.cc +255 -0
- data/src/core/resolver/fake/fake_resolver.h +129 -0
- data/src/core/resolver/google_c2p/google_c2p_resolver.cc +326 -0
- data/src/core/resolver/polling_resolver.cc +272 -0
- data/src/core/resolver/polling_resolver.h +121 -0
- data/src/core/resolver/resolver.cc +37 -0
- data/src/core/resolver/resolver.h +139 -0
- data/src/core/resolver/resolver_factory.h +78 -0
- data/src/core/resolver/resolver_registry.cc +162 -0
- data/src/core/resolver/resolver_registry.h +123 -0
- data/src/core/resolver/server_address.h +35 -0
- data/src/core/resolver/sockaddr/sockaddr_resolver.cc +202 -0
- data/src/core/resolver/xds/xds_dependency_manager.cc +1031 -0
- data/src/core/resolver/xds/xds_dependency_manager.h +277 -0
- data/src/core/resolver/xds/xds_resolver.cc +1135 -0
- data/src/core/resolver/xds/xds_resolver_attributes.h +62 -0
- data/src/core/resolver/xds/xds_resolver_trace.cc +25 -0
- data/src/core/resolver/xds/xds_resolver_trace.h +30 -0
- data/src/core/service_config/service_config.h +89 -0
- data/src/core/service_config/service_config_call_data.h +116 -0
- data/src/core/service_config/service_config_impl.cc +198 -0
- data/src/core/service_config/service_config_impl.h +125 -0
- data/src/core/service_config/service_config_parser.cc +81 -0
- data/src/core/service_config/service_config_parser.h +105 -0
- data/src/core/tsi/alts/crypt/aes_gcm.cc +142 -89
- data/src/core/tsi/alts/crypt/gsec.h +387 -319
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +11 -7
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +1 -1
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +5 -7
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +1 -1
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +12 -12
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +26 -25
- data/src/core/tsi/fake_transport_security.cc +1 -1
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +9 -1
- data/src/core/tsi/ssl_transport_security.cc +200 -60
- data/src/core/tsi/ssl_transport_security.h +23 -1
- data/src/ruby/bin/math_pb.rb +1 -1
- data/src/ruby/ext/grpc/extconf.rb +78 -17
- data/src/ruby/ext/grpc/rb_channel.c +11 -5
- data/src/ruby/ext/grpc/rb_channel_args.c +9 -5
- data/src/ruby/ext/grpc/rb_event_thread.c +9 -3
- data/src/ruby/ext/grpc/rb_grpc.c +0 -1
- data/src/ruby/ext/grpc/rb_grpc.h +0 -2
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +8 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +12 -0
- data/src/ruby/lib/grpc/generic/active_call.rb +9 -14
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +1 -1
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +10 -2
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +2 -2
- data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +22 -0
- data/src/ruby/pb/test/client.rb +16 -0
- data/src/ruby/spec/generic/rpc_server_spec.rb +3 -3
- data/third_party/abseil-cpp/absl/algorithm/algorithm.h +8 -103
- data/third_party/abseil-cpp/absl/algorithm/container.h +60 -73
- data/third_party/abseil-cpp/absl/base/attributes.h +107 -15
- data/third_party/abseil-cpp/absl/base/call_once.h +16 -10
- data/third_party/abseil-cpp/absl/base/casts.h +9 -9
- data/third_party/abseil-cpp/absl/base/config.h +163 -113
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +26 -1
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +2 -2
- data/third_party/abseil-cpp/absl/base/internal/endian.h +13 -12
- data/third_party/abseil-cpp/absl/base/internal/identity.h +4 -2
- data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +19 -18
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +51 -40
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +2 -1
- data/third_party/abseil-cpp/absl/base/internal/nullability_impl.h +106 -0
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +41 -14
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +26 -4
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +17 -4
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +49 -71
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +18 -11
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +11 -11
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.cc +23 -32
- data/third_party/abseil-cpp/absl/base/internal/unaligned_access.h +13 -6
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +2 -3
- data/third_party/abseil-cpp/absl/base/log_severity.cc +1 -0
- data/third_party/abseil-cpp/absl/base/log_severity.h +23 -10
- data/third_party/abseil-cpp/absl/base/no_destructor.h +217 -0
- data/third_party/abseil-cpp/absl/base/nullability.h +224 -0
- data/third_party/abseil-cpp/absl/base/optimization.h +1 -0
- data/third_party/abseil-cpp/absl/base/options.h +27 -1
- data/third_party/abseil-cpp/absl/base/policy_checks.h +3 -3
- data/third_party/abseil-cpp/absl/base/prefetch.h +209 -0
- data/third_party/abseil-cpp/absl/base/thread_annotations.h +0 -2
- data/third_party/abseil-cpp/absl/container/fixed_array.h +54 -29
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +8 -4
- data/third_party/abseil-cpp/absl/container/flat_hash_set.h +7 -3
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +167 -79
- data/third_party/abseil-cpp/absl/container/internal/common_policy_traits.h +5 -3
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +3 -21
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +14 -10
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +46 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +2 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +2 -12
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +97 -27
- data/third_party/abseil-cpp/absl/container/internal/layout.h +6 -21
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +46 -20
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +204 -46
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1058 -418
- data/third_party/abseil-cpp/absl/crc/crc32c.h +8 -1
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.cc +40 -10
- data/third_party/abseil-cpp/absl/crc/internal/cpu_detect.h +6 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc.cc +4 -35
- data/third_party/abseil-cpp/absl/crc/internal/crc.h +2 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc32_x86_arm_combined_simd.h +35 -6
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.cc +1 -1
- data/third_party/abseil-cpp/absl/crc/internal/crc_cord_state.h +4 -4
- data/third_party/abseil-cpp/absl/crc/internal/crc_internal.h +8 -10
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy.h +6 -3
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_fallback.cc +4 -2
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_arm_combined.cc +450 -0
- data/third_party/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +18 -10
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +4 -2
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +24 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +35 -33
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +2 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +92 -32
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +1 -1
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +1 -1
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +151 -63
- data/third_party/abseil-cpp/absl/debugging/symbolize_emscripten.inc +3 -0
- data/third_party/abseil-cpp/absl/flags/commandlineflag.h +1 -1
- data/third_party/abseil-cpp/absl/flags/declare.h +0 -5
- data/third_party/abseil-cpp/absl/flags/flag.h +1 -10
- data/third_party/abseil-cpp/absl/flags/internal/commandlineflag.cc +1 -1
- data/third_party/abseil-cpp/absl/flags/internal/flag.cc +2 -2
- data/third_party/abseil-cpp/absl/flags/internal/flag.h +16 -20
- data/third_party/abseil-cpp/absl/flags/marshalling.cc +53 -3
- data/third_party/abseil-cpp/absl/flags/marshalling.h +5 -0
- data/third_party/abseil-cpp/absl/flags/reflection.cc +2 -1
- data/third_party/abseil-cpp/absl/functional/any_invocable.h +9 -1
- data/third_party/abseil-cpp/absl/functional/bind_front.h +1 -1
- data/third_party/abseil-cpp/absl/functional/function_ref.h +11 -3
- data/third_party/abseil-cpp/absl/functional/internal/any_invocable.h +39 -26
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +19 -9
- data/third_party/abseil-cpp/absl/hash/hash.h +7 -4
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +87 -17
- data/third_party/abseil-cpp/absl/hash/internal/low_level_hash.cc +6 -0
- data/third_party/abseil-cpp/absl/meta/type_traits.h +48 -373
- data/third_party/abseil-cpp/absl/numeric/bits.h +40 -21
- data/third_party/abseil-cpp/absl/numeric/int128.cc +20 -8
- data/third_party/abseil-cpp/absl/numeric/int128.h +36 -39
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +0 -3
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +47 -30
- data/third_party/abseil-cpp/absl/random/bit_gen_ref.h +185 -0
- data/third_party/abseil-cpp/absl/random/distributions.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/fast_uniform_bits.h +4 -3
- data/third_party/abseil-cpp/absl/random/internal/generate_real.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/platform.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_detect.cc +4 -0
- data/third_party/abseil-cpp/absl/random/internal/randen_engine.h +1 -1
- data/third_party/abseil-cpp/absl/random/internal/randen_hwaes.cc +1 -1
- data/third_party/abseil-cpp/absl/random/internal/uniform_helper.h +1 -1
- data/third_party/abseil-cpp/absl/status/internal/status_internal.cc +248 -0
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +59 -14
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +65 -26
- data/third_party/abseil-cpp/absl/status/status.cc +40 -238
- data/third_party/abseil-cpp/absl/status/status.h +105 -54
- data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +1 -3
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +3 -2
- data/third_party/abseil-cpp/absl/status/statusor.cc +5 -2
- data/third_party/abseil-cpp/absl/status/statusor.h +65 -11
- data/third_party/abseil-cpp/absl/strings/ascii.cc +128 -8
- data/third_party/abseil-cpp/absl/strings/ascii.h +8 -6
- data/third_party/abseil-cpp/absl/strings/charconv.cc +40 -16
- data/third_party/abseil-cpp/absl/strings/charconv.h +8 -5
- data/third_party/abseil-cpp/absl/strings/charset.h +164 -0
- data/third_party/abseil-cpp/absl/strings/cord.cc +267 -71
- data/third_party/abseil-cpp/absl/strings/cord.h +168 -95
- data/third_party/abseil-cpp/absl/strings/cord_analysis.cc +38 -30
- data/third_party/abseil-cpp/absl/strings/cord_analysis.h +21 -2
- data/third_party/abseil-cpp/absl/strings/cord_buffer.h +2 -5
- data/third_party/abseil-cpp/absl/strings/escaping.cc +15 -36
- data/third_party/abseil-cpp/absl/strings/escaping.h +1 -1
- data/third_party/abseil-cpp/absl/strings/has_absl_stringify.h +63 -0
- data/third_party/abseil-cpp/absl/strings/has_ostream_operator.h +42 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +2 -4
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +3 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +0 -7
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +18 -42
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.cc +13 -4
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_btree.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.cc +5 -3
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_consume.h +4 -7
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +8 -0
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.cc +46 -20
- data/third_party/abseil-cpp/absl/strings/internal/cordz_handle.h +1 -34
- data/third_party/abseil-cpp/absl/strings/internal/cordz_info.cc +25 -29
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +23 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +1 -0
- data/third_party/abseil-cpp/absl/strings/internal/has_absl_stringify.h +15 -26
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +14 -81
- data/third_party/abseil-cpp/absl/strings/internal/memutil.h +4 -112
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +1 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +154 -38
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +78 -30
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +17 -1
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +12 -24
- data/third_party/abseil-cpp/absl/strings/internal/str_format/constexpr_parser.h +9 -3
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +11 -5
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +9 -9
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +5 -4
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +56 -6
- data/third_party/abseil-cpp/absl/strings/match.cc +90 -0
- data/third_party/abseil-cpp/absl/strings/match.h +19 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +437 -162
- data/third_party/abseil-cpp/absl/strings/numbers.h +193 -40
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +155 -68
- data/third_party/abseil-cpp/absl/strings/str_cat.h +205 -35
- data/third_party/abseil-cpp/absl/strings/str_format.h +36 -23
- data/third_party/abseil-cpp/absl/strings/str_join.h +16 -16
- data/third_party/abseil-cpp/absl/strings/str_replace.cc +12 -3
- data/third_party/abseil-cpp/absl/strings/str_replace.h +8 -5
- data/third_party/abseil-cpp/absl/strings/str_split.cc +17 -12
- data/third_party/abseil-cpp/absl/strings/str_split.h +18 -0
- data/third_party/abseil-cpp/absl/strings/string_view.cc +47 -4
- data/third_party/abseil-cpp/absl/strings/string_view.h +91 -26
- data/third_party/abseil-cpp/absl/strings/strip.h +5 -2
- data/third_party/abseil-cpp/absl/strings/substitute.cc +12 -4
- data/third_party/abseil-cpp/absl/strings/substitute.h +103 -91
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +5 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +63 -43
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.cc +111 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex_waiter.h +63 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +11 -7
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.cc +225 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +122 -114
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +12 -8
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +10 -1
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.cc +167 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/pthread_waiter.h +60 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.cc +122 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/sem_waiter.h +65 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.cc +91 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/stdcpp_waiter.h +56 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +21 -113
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.cc +42 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter_base.h +90 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.cc +151 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/win32_waiter.h +72 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +612 -652
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +223 -134
- data/third_party/abseil-cpp/absl/time/civil_time.h +26 -0
- data/third_party/abseil-cpp/absl/time/clock.cc +6 -7
- data/third_party/abseil-cpp/absl/time/clock.h +5 -1
- data/third_party/abseil-cpp/absl/time/duration.cc +27 -29
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +2 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +1 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +4 -4
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.cc +8 -6
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +6 -3
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.cc +4 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.h +4 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +333 -311
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.h +8 -17
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +51 -33
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.h +7 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +128 -2
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.h +1 -1
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +5 -9
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +34 -34
- data/third_party/abseil-cpp/absl/time/time.cc +9 -2
- data/third_party/abseil-cpp/absl/time/time.h +115 -15
- data/third_party/abseil-cpp/absl/types/bad_optional_access.cc +18 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +18 -0
- data/third_party/abseil-cpp/absl/types/internal/optional.h +0 -52
- data/third_party/abseil-cpp/absl/types/internal/span.h +2 -2
- data/third_party/abseil-cpp/absl/types/internal/variant.h +5 -5
- data/third_party/abseil-cpp/absl/types/optional.h +16 -13
- data/third_party/abseil-cpp/absl/types/span.h +10 -6
- data/third_party/abseil-cpp/absl/utility/utility.h +11 -93
- data/third_party/boringssl-with-bazel/err_data.c +293 -290
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +8 -4
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +9 -9
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +15 -28
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +19 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +8 -4
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +11 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +4 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/posix_time.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +1 -6
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +4 -13
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +1 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +27 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +6 -9
- data/third_party/boringssl-with-bazel/src/crypto/bio/errno.c +92 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +4 -48
- data/third_party/boringssl-with-bazel/src/crypto/bio/file.c +11 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/internal.h +16 -6
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +9 -0
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c +8 -0
- data/third_party/boringssl-with-bazel/src/crypto/buf/buf.c +1 -11
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbb.c +42 -12
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/internal.h +0 -22
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/unicode.c +9 -9
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +34 -1
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +49 -3
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesgcmsiv.c +30 -42
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +90 -103
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +5 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_apple.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_fuchsia.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_openbsd.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_sysreg.c +93 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_win.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_freebsd.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_linux.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/cpu_intel.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +11 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/des/des.c +105 -31
- data/third_party/boringssl-with-bazel/src/crypto/des/internal.h +10 -81
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c +5 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +2 -15
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +9 -14
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +4 -6
- data/third_party/boringssl-with-bazel/src/crypto/engine/engine.c +1 -9
- data/third_party/boringssl-with-bazel/src/crypto/err/err.c +10 -11
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +1 -5
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_ctx.c +2 -5
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_hkdf.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +2 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/add.c +2 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bytes.c +26 -17
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/ctx.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c +4 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +26 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/generic.c +10 -41
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +49 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +26 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +27 -26
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/mul.c +2 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/prime.c +1 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c +8 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +11 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aes.c +11 -24
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aesccm.c +43 -50
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c +37 -8
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +40 -25
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/internal.h +7 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +16 -9
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +7 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +2 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +51 -13
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.h +17 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +5 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/blinding.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +6 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/fips.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +39 -16
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/service_indicator/service_indicator.c +4 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +153 -6
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +87 -7
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +39 -5
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +32 -5
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +7 -0
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +264 -72
- data/third_party/boringssl-with-bazel/src/crypto/keccak/internal.h +70 -0
- data/third_party/boringssl-with-bazel/src/crypto/keccak/keccak.c +279 -0
- data/third_party/boringssl-with-bazel/src/crypto/kyber/internal.h +8 -39
- data/third_party/boringssl-with-bazel/src/crypto/kyber/kyber.c +39 -29
- data/third_party/boringssl-with-bazel/src/crypto/lhash/lhash.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +17 -33
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +41 -38
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +0 -3
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_info.c +31 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7_x509.c +2 -4
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +3 -3
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +9 -13
- data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/getentropy.c +4 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_crypt.c +3 -1
- data/third_party/boringssl-with-bazel/src/crypto/spx/address.c +101 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/address.h +50 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/fors.c +133 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/fors.h +54 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/internal.h +79 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.c +150 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/merkle.h +61 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/params.h +71 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx.c +139 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.c +53 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/spx_util.h +44 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/thash.c +136 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/thash.h +70 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/wots.c +135 -0
- data/third_party/boringssl-with-bazel/src/crypto/spx/wots.h +45 -0
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +9 -9
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +10 -22
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +3 -6
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +12 -36
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +1 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +0 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +13 -13
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +22 -35
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +225 -51
- data/third_party/boringssl-with-bazel/src/crypto/x509/policy.c +2 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +6 -2
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_req.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akey.c +221 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_akeya.c +73 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_alt.c +634 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bcons.c +135 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_bitst.c +141 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_conf.c +416 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_cpols.c +477 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_crld.c +598 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_enum.c +112 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_extku.c +154 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_genn.c +270 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ia5.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_info.c +211 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_int.c +121 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_lib.c +342 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ncons.c +555 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_ocsp.c +81 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pcons.c +142 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_pmaps.c +150 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_prn.c +224 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_purp.c +645 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_skey.c +170 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/v3_utl.c +1357 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +35 -32
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +44 -59
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_d2.c +1 -3
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +107 -255
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +32 -20
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +25 -152
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +0 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +330 -944
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +93 -215
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +28 -6
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +1 -1
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +35 -129
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +7 -8
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +46 -50
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_spki.c +2 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +1 -4
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +6 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +0 -21
- data/third_party/boringssl-with-bazel/src/include/openssl/asm_base.h +5 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +11 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +35 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +14 -5
- data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +22 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +1 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/curve25519.h +2 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/des.h +0 -13
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +4 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +40 -20
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +1 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/ex_data.h +5 -4
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +6 -2
- data/third_party/boringssl-with-bazel/src/include/openssl/kyber.h +26 -18
- data/third_party/boringssl-with-bazel/src/include/openssl/mem.h +13 -6
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +5 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslconf.h +1 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +19 -5
- data/third_party/boringssl-with-bazel/src/include/openssl/posix_time.h +45 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +5 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/sha.h +20 -3
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +36 -36
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +80 -60
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +20 -12
- data/third_party/boringssl-with-bazel/src/include/openssl/target.h +79 -7
- data/third_party/boringssl-with-bazel/src/include/openssl/time.h +3 -22
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +2 -1
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +2806 -945
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +38 -1025
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3_errors.h +124 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +1 -2
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +82 -9
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +42 -4
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +4 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +2 -2
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +4 -4
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +4 -5
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +11 -1
- data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +0 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +5 -1
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +5 -1
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64_adx.h +4 -2
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64.h +21 -0
- data/third_party/cares/config_linux/ares_config.h +2 -38
- data/third_party/upb/upb/base/descriptor_constants.h +7 -27
- data/third_party/upb/upb/base/internal/log2.h +38 -0
- data/third_party/upb/upb/base/status.c +6 -26
- data/third_party/upb/upb/base/status.h +6 -26
- data/third_party/upb/upb/base/status.hpp +50 -0
- data/third_party/upb/upb/base/string_view.h +11 -28
- data/third_party/upb/upb/generated_code_support.h +33 -0
- data/third_party/upb/upb/hash/common.c +12 -44
- data/third_party/upb/upb/hash/common.h +16 -41
- data/third_party/upb/upb/hash/int_table.h +6 -26
- data/third_party/upb/upb/hash/str_table.h +7 -26
- data/third_party/upb/upb/json/decode.c +31 -28
- data/third_party/upb/upb/json/decode.h +32 -29
- data/third_party/upb/upb/json/encode.c +31 -28
- data/third_party/upb/upb/json/encode.h +35 -32
- data/third_party/upb/upb/lex/atoi.c +6 -26
- data/third_party/upb/upb/lex/atoi.h +8 -26
- data/third_party/upb/upb/lex/round_trip.c +6 -26
- data/third_party/upb/upb/lex/round_trip.h +6 -26
- data/third_party/upb/upb/lex/strtod.c +6 -26
- data/third_party/upb/upb/lex/strtod.h +6 -26
- data/third_party/upb/upb/lex/unicode.c +6 -26
- data/third_party/upb/upb/lex/unicode.h +8 -26
- data/third_party/upb/upb/mem/alloc.c +6 -26
- data/third_party/upb/upb/mem/alloc.h +6 -26
- data/third_party/upb/upb/mem/arena.c +30 -29
- data/third_party/upb/upb/mem/arena.h +16 -44
- data/third_party/upb/upb/mem/arena.hpp +54 -0
- data/third_party/upb/upb/mem/internal/arena.h +94 -0
- data/third_party/upb/upb/message/accessors.c +34 -31
- data/third_party/upb/upb/message/accessors.h +58 -57
- data/third_party/upb/upb/message/array.c +154 -0
- data/third_party/upb/upb/message/array.h +98 -0
- data/third_party/upb/upb/message/internal/accessors.h +367 -0
- data/third_party/upb/upb/message/internal/array.h +138 -0
- data/third_party/upb/upb/message/internal/extension.h +63 -0
- data/third_party/upb/upb/message/internal/map.h +173 -0
- data/third_party/upb/upb/message/internal/map_entry.h +66 -0
- data/third_party/upb/upb/message/internal/map_sorter.h +112 -0
- data/third_party/upb/upb/message/internal/message.h +106 -0
- data/third_party/upb/upb/message/internal/types.h +23 -0
- data/third_party/upb/upb/message/map.c +145 -0
- data/third_party/upb/upb/message/map.h +147 -0
- data/third_party/upb/upb/message/map_gencode_util.h +81 -0
- data/third_party/upb/upb/message/map_sorter.c +170 -0
- data/third_party/upb/upb/message/message.c +8 -34
- data/third_party/upb/upb/message/message.h +10 -27
- data/third_party/upb/upb/message/tagged_ptr.h +69 -0
- data/third_party/upb/upb/message/types.h +15 -0
- data/third_party/upb/upb/message/value.h +46 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.c +130 -0
- data/third_party/upb/upb/mini_descriptor/build_enum.h +42 -0
- data/third_party/upb/upb/mini_descriptor/decode.c +870 -0
- data/third_party/upb/upb/mini_descriptor/decode.h +120 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.c +26 -0
- data/third_party/upb/upb/mini_descriptor/internal/base92.h +63 -0
- data/third_party/upb/upb/mini_descriptor/internal/decoder.h +53 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.c +323 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.h +92 -0
- data/third_party/upb/upb/mini_descriptor/internal/encode.hpp +118 -0
- data/third_party/upb/upb/mini_descriptor/internal/modifiers.h +32 -0
- data/third_party/upb/upb/mini_descriptor/internal/wire_constants.h +72 -0
- data/third_party/upb/upb/mini_descriptor/link.c +122 -0
- data/third_party/upb/upb/mini_descriptor/link.h +84 -0
- data/third_party/upb/upb/mini_table/enum.h +38 -0
- data/third_party/upb/upb/mini_table/extension.h +15 -0
- data/third_party/upb/upb/mini_table/extension_registry.c +7 -27
- data/third_party/upb/upb/mini_table/extension_registry.h +9 -28
- data/third_party/upb/upb/mini_table/field.h +98 -0
- data/third_party/upb/upb/mini_table/file.h +15 -0
- data/third_party/upb/upb/mini_table/internal/enum.h +58 -0
- data/third_party/upb/upb/mini_table/internal/extension.h +27 -0
- data/third_party/upb/upb/mini_table/internal/field.h +114 -0
- data/third_party/upb/upb/mini_table/internal/file.h +29 -0
- data/third_party/upb/upb/mini_table/internal/message.c +19 -0
- data/third_party/upb/upb/mini_table/internal/message.h +88 -0
- data/third_party/upb/upb/mini_table/internal/sub.h +18 -0
- data/third_party/upb/upb/mini_table/message.c +77 -0
- data/third_party/upb/upb/mini_table/message.h +85 -0
- data/third_party/upb/upb/mini_table/sub.h +15 -0
- data/third_party/upb/upb/port/atomic.h +8 -26
- data/third_party/upb/upb/port/def.inc +28 -29
- data/third_party/upb/upb/port/undef.inc +8 -26
- data/third_party/upb/upb/port/vsnprintf_compat.h +6 -26
- data/third_party/upb/upb/reflection/common.h +11 -27
- data/third_party/upb/upb/reflection/def.h +8 -26
- data/third_party/upb/upb/reflection/def.hpp +26 -31
- data/third_party/upb/upb/reflection/def_pool.c +16 -35
- data/third_party/upb/upb/reflection/def_pool.h +17 -38
- data/third_party/upb/upb/reflection/def_type.c +6 -26
- data/third_party/upb/upb/reflection/def_type.h +6 -27
- data/third_party/upb/upb/reflection/desc_state.c +7 -27
- data/third_party/upb/upb/reflection/enum_def.c +19 -37
- data/third_party/upb/upb/reflection/enum_def.h +13 -33
- data/third_party/upb/upb/reflection/enum_reserved_range.c +9 -30
- data/third_party/upb/upb/reflection/enum_reserved_range.h +6 -26
- data/third_party/upb/upb/reflection/enum_value_def.c +13 -32
- data/third_party/upb/upb/reflection/enum_value_def.h +8 -28
- data/third_party/upb/upb/reflection/extension_range.c +9 -28
- data/third_party/upb/upb/reflection/extension_range.h +6 -26
- data/third_party/upb/upb/reflection/field_def.c +70 -52
- data/third_party/upb/upb/reflection/field_def.h +25 -42
- data/third_party/upb/upb/reflection/file_def.c +23 -48
- data/third_party/upb/upb/reflection/file_def.h +10 -30
- data/third_party/upb/upb/reflection/internal/def_builder.c +339 -0
- data/third_party/upb/upb/reflection/internal/def_builder.h +137 -0
- data/third_party/upb/upb/reflection/internal/def_pool.h +57 -0
- data/third_party/upb/upb/reflection/internal/desc_state.h +44 -0
- data/third_party/upb/upb/reflection/internal/enum_def.h +36 -0
- data/third_party/upb/upb/reflection/internal/enum_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/enum_value_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/extension_range.h +34 -0
- data/third_party/upb/upb/reflection/internal/field_def.h +56 -0
- data/third_party/upb/upb/reflection/internal/file_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/message_def.h +43 -0
- data/third_party/upb/upb/reflection/internal/message_reserved_range.h +35 -0
- data/third_party/upb/upb/reflection/internal/method_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/oneof_def.h +37 -0
- data/third_party/upb/upb/reflection/internal/service_def.h +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.c +33 -0
- data/third_party/upb/upb/reflection/internal/strdup2.h +32 -0
- data/third_party/upb/upb/reflection/message.c +10 -30
- data/third_party/upb/upb/reflection/message.h +27 -40
- data/third_party/upb/upb/reflection/message.hpp +5 -23
- data/third_party/upb/upb/reflection/message_def.c +73 -55
- data/third_party/upb/upb/reflection/message_def.h +25 -43
- data/third_party/upb/upb/reflection/message_reserved_range.c +8 -28
- data/third_party/upb/upb/reflection/message_reserved_range.h +6 -26
- data/third_party/upb/upb/reflection/method_def.c +10 -29
- data/third_party/upb/upb/reflection/method_def.h +6 -26
- data/third_party/upb/upb/reflection/oneof_def.c +15 -33
- data/third_party/upb/upb/reflection/oneof_def.h +11 -30
- data/third_party/upb/upb/reflection/service_def.c +12 -31
- data/third_party/upb/upb/reflection/service_def.h +6 -26
- data/third_party/upb/upb/text/encode.c +8 -28
- data/third_party/upb/upb/text/encode.h +6 -26
- data/third_party/upb/upb/wire/decode.c +106 -68
- data/third_party/upb/upb/wire/decode.h +50 -26
- data/third_party/upb/upb/wire/decode_fast.c +10 -28
- data/third_party/upb/upb/wire/decode_fast.h +6 -26
- data/third_party/upb/upb/wire/encode.c +52 -46
- data/third_party/upb/upb/wire/encode.h +14 -30
- data/third_party/upb/upb/wire/eps_copy_input_stream.c +6 -26
- data/third_party/upb/upb/wire/eps_copy_input_stream.h +6 -26
- data/third_party/upb/upb/wire/internal/constants.h +27 -0
- data/third_party/upb/upb/wire/internal/decode.h +143 -0
- data/third_party/upb/upb/wire/internal/swap.h +45 -0
- data/third_party/upb/upb/wire/reader.c +6 -26
- data/third_party/upb/upb/wire/reader.h +8 -28
- data/third_party/upb/upb/wire/types.h +6 -26
- data/third_party/zlib/adler32.c +5 -27
- data/third_party/zlib/compress.c +5 -16
- data/third_party/zlib/crc32.c +86 -162
- data/third_party/zlib/deflate.c +233 -336
- data/third_party/zlib/deflate.h +8 -8
- data/third_party/zlib/gzguts.h +11 -12
- data/third_party/zlib/infback.c +7 -23
- data/third_party/zlib/inffast.c +1 -4
- data/third_party/zlib/inffast.h +1 -1
- data/third_party/zlib/inflate.c +30 -99
- data/third_party/zlib/inftrees.c +6 -11
- data/third_party/zlib/inftrees.h +3 -3
- data/third_party/zlib/trees.c +224 -302
- data/third_party/zlib/uncompr.c +4 -12
- data/third_party/zlib/zconf.h +6 -2
- data/third_party/zlib/zlib.h +191 -188
- data/third_party/zlib/zutil.c +16 -44
- data/third_party/zlib/zutil.h +10 -10
- metadata +1160 -904
- data/src/core/ext/filters/client_channel/backend_metric.cc +0 -95
- data/src/core/ext/filters/client_channel/backend_metric.h +0 -47
- data/src/core/ext/filters/client_channel/backup_poller.cc +0 -178
- data/src/core/ext/filters/client_channel/backup_poller.h +0 -37
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +0 -265
- data/src/core/ext/filters/client_channel/client_channel.cc +0 -3242
- data/src/core/ext/filters/client_channel/client_channel.h +0 -595
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +0 -93
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +0 -85
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +0 -32
- data/src/core/ext/filters/client_channel/client_channel_factory.h +0 -46
- data/src/core/ext/filters/client_channel/client_channel_internal.h +0 -77
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +0 -42
- data/src/core/ext/filters/client_channel/client_channel_service_config.cc +0 -153
- data/src/core/ext/filters/client_channel/client_channel_service_config.h +0 -111
- data/src/core/ext/filters/client_channel/config_selector.cc +0 -60
- data/src/core/ext/filters/client_channel/config_selector.h +0 -125
- data/src/core/ext/filters/client_channel/connector.h +0 -88
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +0 -175
- data/src/core/ext/filters/client_channel/dynamic_filters.h +0 -108
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +0 -65
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +0 -63
- data/src/core/ext/filters/client_channel/http_proxy.cc +0 -238
- data/src/core/ext/filters/client_channel/http_proxy.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +0 -69
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +0 -115
- data/src/core/ext/filters/client_channel/lb_policy/backend_metric_data.h +0 -57
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +0 -315
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +0 -88
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +0 -85
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +0 -46
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +0 -1866
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +0 -39
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +0 -89
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +0 -39
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +0 -90
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +0 -81
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +0 -202
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +0 -77
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.cc +0 -478
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client.h +0 -52
- data/src/core/ext/filters/client_channel/lb_policy/health_check_client_internal.h +0 -202
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.cc +0 -333
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric.h +0 -57
- data/src/core/ext/filters/client_channel/lb_policy/oob_backend_metric_internal.h +0 -119
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.cc +0 -1187
- data/src/core/ext/filters/client_channel/lb_policy/outlier_detection/outlier_detection.h +0 -101
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +0 -592
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.h +0 -25
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +0 -892
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +0 -880
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +0 -64
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +0 -2456
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +0 -537
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +0 -488
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.cc +0 -198
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/static_stride_scheduler.h +0 -71
- data/src/core/ext/filters/client_channel/lb_policy/weighted_round_robin/weighted_round_robin.cc +0 -1011
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +0 -747
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +0 -706
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +0 -37
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +0 -750
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +0 -650
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +0 -1155
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.cc +0 -780
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_override_host.h +0 -67
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_wrr_locality.cc +0 -301
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +0 -60
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +0 -59
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +0 -148
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +0 -758
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.h +0 -30
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +0 -90
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +0 -115
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -888
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +0 -1206
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +0 -136
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +0 -29
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +0 -35
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.cc +0 -60
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_plugin.h +0 -27
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.cc +0 -559
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/event_engine_client_channel_resolver.h +0 -35
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.cc +0 -97
- data/src/core/ext/filters/client_channel/resolver/dns/event_engine/service_config_helper.h +0 -32
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +0 -184
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.h +0 -24
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +0 -368
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +0 -110
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +0 -326
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.cc +0 -273
- data/src/core/ext/filters/client_channel/resolver/polling_resolver.h +0 -121
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +0 -202
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +0 -1276
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +0 -61
- data/src/core/ext/filters/client_channel/retry_filter.cc +0 -160
- data/src/core/ext/filters/client_channel/retry_filter.h +0 -121
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.cc +0 -2052
- data/src/core/ext/filters/client_channel/retry_filter_legacy_call_data.h +0 -442
- data/src/core/ext/filters/client_channel/retry_service_config.cc +0 -283
- data/src/core/ext/filters/client_channel/retry_service_config.h +0 -105
- data/src/core/ext/filters/client_channel/retry_throttle.cc +0 -139
- data/src/core/ext/filters/client_channel/retry_throttle.h +0 -92
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +0 -124
- data/src/core/ext/filters/client_channel/subchannel.cc +0 -774
- data/src/core/ext/filters/client_channel/subchannel.h +0 -372
- data/src/core/ext/filters/client_channel/subchannel_interface_internal.h +0 -41
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +0 -66
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +0 -100
- data/src/core/ext/filters/client_channel/subchannel_stream_client.cc +0 -469
- data/src/core/ext/filters/client_channel/subchannel_stream_client.h +0 -225
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.c +0 -152
- data/src/core/ext/upb-generated/envoy/admin/v3/certs.upb.h +0 -735
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.c +0 -183
- data/src/core/ext/upb-generated/envoy/admin/v3/clusters.upb.h +0 -835
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +0 -160
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +0 -743
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.c +0 -535
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump_shared.upb.h +0 -2796
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.c +0 -69
- data/src/core/ext/upb-generated/envoy/admin/v3/init_dump.upb.h +0 -256
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.c +0 -77
- data/src/core/ext/upb-generated/envoy/admin/v3/listeners.upb.h +0 -287
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.c +0 -59
- data/src/core/ext/upb-generated/envoy/admin/v3/memory.upb.h +0 -168
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/admin/v3/metrics.upb.h +0 -128
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/admin/v3/mutex_stats.upb.h +0 -123
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.c +0 -153
- data/src/core/ext/upb-generated/envoy/admin/v3/server_info.upb.h +0 -935
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/admin/v3/tap.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +0 -63
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +0 -134
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +0 -60
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +0 -118
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +0 -378
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +0 -1772
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +0 -572
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +0 -3257
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +0 -128
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +0 -532
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +0 -732
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +0 -3926
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +0 -126
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +0 -664
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.c +0 -398
- data/src/core/ext/upb-generated/envoy/config/common/matcher/v3/matcher.upb.h +0 -1849
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +0 -227
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +0 -1054
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +0 -134
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +0 -580
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +0 -2448
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +0 -228
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +0 -1141
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +0 -115
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_method_list.upb.h +0 -256
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +0 -381
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +0 -1707
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +0 -318
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +0 -1951
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +0 -149
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +0 -484
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +0 -2264
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +0 -73
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +0 -245
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +0 -75
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +0 -239
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +0 -79
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +0 -293
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +0 -69
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +0 -260
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +0 -136
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +0 -141
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +0 -498
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +0 -207
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +0 -875
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +0 -182
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +0 -920
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +0 -269
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +0 -1600
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +0 -263
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +0 -1459
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +0 -89
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +0 -331
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +0 -80
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +0 -204
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.c +0 -67
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/metrics_service.upb.h +0 -187
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +0 -222
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +0 -988
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +0 -253
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +0 -1197
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +0 -351
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +0 -1717
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +0 -136
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +0 -867
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +0 -1646
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +0 -9598
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +0 -100
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +0 -347
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.c +0 -328
- data/src/core/ext/upb-generated/envoy/config/tap/v3/common.upb.h +0 -1530
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/config/trace/v3/datadog.upb.h +0 -123
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/config/trace/v3/dynamic_ot.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +0 -76
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +0 -196
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.c +0 -65
- data/src/core/ext/upb-generated/envoy/config/trace/v3/lightstep.upb.h +0 -205
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.c +0 -84
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opencensus.upb.h +0 -413
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.c +0 -55
- data/src/core/ext/upb-generated/envoy/config/trace/v3/opentelemetry.upb.h +0 -122
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/config/trace/v3/service.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.c +0 -88
- data/src/core/ext/upb-generated/envoy/config/trace/v3/skywalking.upb.h +0 -259
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.c +0 -36
- data/src/core/ext/upb-generated/envoy/config/trace/v3/trace.upb.h +0 -48
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.c +0 -90
- data/src/core/ext/upb-generated/envoy/config/trace/v3/xray.upb.h +0 -261
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.c +0 -68
- data/src/core/ext/upb-generated/envoy/config/trace/v3/zipkin.upb.h +0 -204
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.c +0 -558
- data/src/core/ext/upb-generated/envoy/data/accesslog/v3/accesslog.upb.h +0 -2710
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +0 -139
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +0 -119
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +0 -437
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +0 -144
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +0 -664
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.c +0 -90
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/rbac/v3/rbac.upb.h +0 -271
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +0 -104
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +0 -468
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.c +0 -75
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upb.h +0 -201
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +0 -682
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +0 -3973
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.c +0 -70
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3/client_side_weighted_round_robin.upb.h +0 -246
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.c +0 -138
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/common/v3/common.upb.h +0 -499
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.c +0 -47
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/pick_first/v3/pick_first.upb.h +0 -93
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.c +0 -71
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/ring_hash/v3/ring_hash.upb.h +0 -257
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.c +0 -53
- data/src/core/ext/upb-generated/envoy/extensions/load_balancing_policies/wrr_locality/v3/wrr_locality.upb.h +0 -107
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +0 -31
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +0 -43
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +0 -265
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +0 -1479
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +0 -111
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +0 -369
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +0 -270
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +0 -1482
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.c +0 -75
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upb.h +0 -224
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +0 -41
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +0 -78
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +0 -405
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +0 -2161
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +0 -87
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +0 -331
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +0 -185
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +0 -923
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/type/http/v3/cookie.upb.h +0 -137
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +0 -89
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +0 -321
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.c +0 -56
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/filter_state.upb.h +0 -130
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.c +0 -108
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/http_inputs.upb.h +0 -309
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +0 -79
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +0 -266
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +0 -58
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +0 -172
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +0 -57
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +0 -135
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +0 -54
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +0 -115
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +0 -99
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +0 -277
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.c +0 -46
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/status_code_input.upb.h +0 -117
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +0 -84
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +0 -312
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +0 -73
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +0 -236
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +0 -95
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +0 -354
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +0 -130
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +0 -536
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +0 -142
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +0 -516
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.c +0 -79
- data/src/core/ext/upb-generated/envoy/type/v3/hash_policy.upb.h +0 -234
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +0 -29
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +0 -44
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.c +0 -49
- data/src/core/ext/upb-generated/envoy/type/v3/http_status.upb.h +0 -153
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +0 -67
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +0 -168
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +0 -87
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +0 -246
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.c +0 -78
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_strategy.upb.h +0 -237
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.c +0 -29
- data/src/core/ext/upb-generated/envoy/type/v3/ratelimit_unit.upb.h +0 -48
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +0 -52
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +0 -123
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.c +0 -60
- data/src/core/ext/upb-generated/envoy/type/v3/token_bucket.upb.h +0 -151
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +0 -43
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +0 -63
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +0 -372
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +0 -1764
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +0 -402
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +0 -1849
- data/src/core/ext/upb-generated/google/api/http.upb.c +0 -114
- data/src/core/ext/upb-generated/google/api/http.upb.h +0 -507
- data/src/core/ext/upb-generated/google/api/httpbody.upb.c +0 -55
- data/src/core/ext/upb-generated/google/api/httpbody.upb.h +0 -173
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +0 -49
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +0 -108
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +0 -1172
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +0 -5656
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +0 -49
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +0 -108
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +0 -38
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +0 -78
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +0 -118
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +0 -434
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +0 -49
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +0 -108
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +0 -166
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +0 -525
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +0 -55
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +0 -173
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.c +0 -109
- data/src/core/ext/upb-generated/opencensus/proto/trace/v1/trace_config.upb.h +0 -397
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +0 -82
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +0 -246
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +0 -345
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +0 -1677
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +0 -72
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +0 -207
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +0 -61
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +0 -154
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +0 -224
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +0 -893
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +0 -95
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +0 -308
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.c +0 -246
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls_config.upb.h +0 -1349
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +0 -129
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +0 -341
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +0 -64
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +0 -133
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +0 -41
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +0 -63
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +0 -63
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +0 -140
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +0 -60
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +0 -118
- data/src/core/ext/upb-generated/validate/validate.upb.c +0 -950
- data/src/core/ext/upb-generated/validate/validate.upb.h +0 -6544
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.c +0 -129
- data/src/core/ext/upb-generated/xds/annotations/v3/migrate.upb.h +0 -341
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.c +0 -64
- data/src/core/ext/upb-generated/xds/annotations/v3/security.upb.h +0 -133
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.c +0 -41
- data/src/core/ext/upb-generated/xds/annotations/v3/sensitive.upb.h +0 -63
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +0 -126
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +0 -352
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.c +0 -60
- data/src/core/ext/upb-generated/xds/annotations/v3/versioning.upb.h +0 -118
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +0 -48
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +0 -93
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.c +0 -56
- data/src/core/ext/upb-generated/xds/core/v3/cidr.upb.h +0 -122
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +0 -81
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +0 -241
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +0 -65
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +0 -142
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.c +0 -55
- data/src/core/ext/upb-generated/xds/core/v3/extension.upb.h +0 -122
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +0 -58
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +0 -151
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +0 -87
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +0 -338
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +0 -62
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +0 -152
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +0 -129
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +0 -360
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.c +0 -55
- data/src/core/ext/upb-generated/xds/service/orca/v3/orca.upb.h +0 -168
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.c +0 -53
- data/src/core/ext/upb-generated/xds/type/matcher/v3/cel.upb.h +0 -107
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.c +0 -75
- data/src/core/ext/upb-generated/xds/type/matcher/v3/domain.upb.h +0 -270
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.c +0 -39
- data/src/core/ext/upb-generated/xds/type/matcher/v3/http_inputs.upb.h +0 -78
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.c +0 -78
- data/src/core/ext/upb-generated/xds/type/matcher/v3/ip.upb.h +0 -289
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.c +0 -268
- data/src/core/ext/upb-generated/xds/type/matcher/v3/matcher.upb.h +0 -1122
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.c +0 -160
- data/src/core/ext/upb-generated/xds/type/matcher/v3/range.upb.h +0 -740
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.c +0 -61
- data/src/core/ext/upb-generated/xds/type/matcher/v3/regex.upb.h +0 -167
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.c +0 -82
- data/src/core/ext/upb-generated/xds/type/matcher/v3/string.upb.h +0 -312
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.c +0 -82
- data/src/core/ext/upb-generated/xds/type/v3/cel.upb.h +0 -240
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.c +0 -85
- data/src/core/ext/upb-generated/xds/type/v3/range.upb.h +0 -246
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +0 -54
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +0 -122
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.c +0 -84
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/certs.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.c +0 -128
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/clusters.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +0 -102
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.c +0 -277
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump_shared.upbdefs.h +0 -126
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/init_dump.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/listeners.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/memory.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/metrics.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/mutex_stats.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.c +0 -142
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/server_info.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/tap.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +0 -234
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +0 -408
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +0 -121
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +0 -98
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +0 -567
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +0 -151
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +0 -138
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.c +0 -206
- data/src/core/ext/upbdefs-generated/envoy/config/common/matcher/v3/matcher.upbdefs.h +0 -106
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +0 -132
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +0 -271
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +0 -151
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +0 -168
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_method_list.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +0 -237
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +0 -245
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +0 -311
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +0 -70
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +0 -49
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +0 -133
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +0 -136
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +0 -227
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +0 -190
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +0 -101
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.c +0 -76
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/metrics_service.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +0 -125
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +0 -142
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.c +0 -223
- data/src/core/ext/upbdefs-generated/envoy/config/rbac/v3/rbac.upbdefs.h +0 -86
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +0 -123
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +0 -972
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +0 -316
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +0 -77
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.c +0 -199
- data/src/core/ext/upbdefs-generated/envoy/config/tap/v3/common.upbdefs.h +0 -91
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/datadog.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/dynamic_ot.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.c +0 -72
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/lightstep.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opencensus.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/opentelemetry.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/service.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/skywalking.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/trace.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/xray.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.c +0 -79
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/zipkin.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.c +0 -402
- data/src/core/ext/upbdefs-generated/envoy/data/accesslog/v3/accesslog.upbdefs.h +0 -111
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +0 -92
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +0 -123
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.c +0 -80
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/rbac/v3/rbac.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +0 -105
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/stateful_session/v3/stateful_session.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +0 -602
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +0 -136
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.c +0 -50
- data/src/core/ext/upbdefs-generated/envoy/extensions/http/stateful_session/cookie/v3/cookie.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +0 -215
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +0 -91
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +0 -258
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls_spiffe_validator_config.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +0 -200
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +0 -76
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +0 -152
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/cookie.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/filter_state.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/http_inputs.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/status_code_input.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +0 -65
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +0 -58
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +0 -75
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +0 -78
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +0 -66
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +0 -85
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +0 -56
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.c +0 -53
- data/src/core/ext/upbdefs-generated/envoy/type/v3/hash_policy.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.c +0 -94
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http_status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +0 -48
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.c +0 -69
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_strategy.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/envoy/type/v3/ratelimit_unit.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +0 -44
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.c +0 -57
- data/src/core/ext/upbdefs-generated/envoy/type/v3/token_bucket.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.c +0 -154
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/checked.upbdefs.h +0 -96
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.c +0 -153
- data/src/core/ext/upbdefs-generated/google/api/expr/v1alpha1/syntax.upbdefs.h +0 -101
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/google/api/httpbody.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +0 -387
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +0 -171
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +0 -32
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +0 -54
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.c +0 -67
- data/src/core/ext/upbdefs-generated/opencensus/proto/trace/v1/trace_config.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.c +0 -99
- data/src/core/ext/upbdefs-generated/src/proto/grpc/lookup/v1/rls_config.upbdefs.h +0 -76
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +0 -62
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +0 -34
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +0 -283
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +0 -146
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.c +0 -63
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/migrate.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.c +0 -47
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/security.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.c +0 -35
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/sensitive.upbdefs.h +0 -31
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +0 -64
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +0 -51
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/versioning.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +0 -38
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/cidr.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +0 -56
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +0 -39
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.c +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/extension.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +0 -45
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +0 -61
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +0 -46
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.c +0 -43
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/cel.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.c +0 -51
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/domain.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/http_inputs.upbdefs.h +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.c +0 -55
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/ip.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.c +0 -126
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/matcher.upbdefs.h +0 -81
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.c +0 -71
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/range.upbdefs.h +0 -61
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.c +0 -40
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/regex.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.c +0 -52
- data/src/core/ext/upbdefs-generated/xds/type/matcher/v3/string.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.c +0 -60
- data/src/core/ext/upbdefs-generated/xds/type/v3/cel.upbdefs.h +0 -41
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.c +0 -36
- data/src/core/ext/upbdefs-generated/xds/type/v3/range.upbdefs.h +0 -46
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +0 -37
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +0 -36
- data/src/core/lib/event_engine/memory_allocator.cc +0 -74
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.cc +0 -256
- data/src/core/lib/event_engine/thread_pool/original_thread_pool.h +0 -137
- data/src/core/lib/iomgr/load_file.cc +0 -78
- data/src/core/lib/iomgr/load_file.h +0 -35
- data/src/core/lib/load_balancing/delegating_helper.h +0 -115
- data/src/core/lib/load_balancing/lb_policy.cc +0 -98
- data/src/core/lib/load_balancing/lb_policy.h +0 -477
- data/src/core/lib/load_balancing/lb_policy_factory.h +0 -49
- data/src/core/lib/load_balancing/lb_policy_registry.cc +0 -143
- data/src/core/lib/load_balancing/lb_policy_registry.h +0 -82
- data/src/core/lib/load_balancing/subchannel_interface.h +0 -141
- data/src/core/lib/promise/detail/basic_join.h +0 -197
- data/src/core/lib/promise/detail/switch.h +0 -1455
- data/src/core/lib/resolver/resolver.cc +0 -37
- data/src/core/lib/resolver/resolver.h +0 -138
- data/src/core/lib/resolver/resolver_factory.h +0 -78
- data/src/core/lib/resolver/resolver_registry.cc +0 -164
- data/src/core/lib/resolver/resolver_registry.h +0 -123
- data/src/core/lib/resolver/server_address.cc +0 -89
- data/src/core/lib/resolver/server_address.h +0 -85
- data/src/core/lib/service_config/service_config.h +0 -89
- data/src/core/lib/service_config/service_config_call_data.h +0 -116
- data/src/core/lib/service_config/service_config_impl.cc +0 -198
- data/src/core/lib/service_config/service_config_impl.h +0 -125
- data/src/core/lib/service_config/service_config_parser.cc +0 -81
- data/src/core/lib/service_config/service_config_parser.h +0 -105
- data/src/core/lib/transport/pid_controller.cc +0 -51
- data/src/core/lib/transport/pid_controller.h +0 -116
- data/src/core/lib/transport/transport_impl.h +0 -102
- data/third_party/abseil-cpp/absl/base/internal/prefetch.h +0 -138
- data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +0 -280
- data/third_party/abseil-cpp/absl/crc/internal/crc_memcpy_x86_64.cc +0 -434
- data/third_party/abseil-cpp/absl/flags/flag.cc +0 -38
- data/third_party/abseil-cpp/absl/flags/internal/flag_msvc.inc +0 -116
- data/third_party/abseil-cpp/absl/strings/internal/char_map.h +0 -158
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +0 -773
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +0 -607
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +0 -118
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +0 -403
- data/third_party/boringssl-with-bazel/src/crypto/cpu_aarch64_freebsd.c +0 -62
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm.c +0 -38
- data/third_party/boringssl-with-bazel/src/crypto/cpu_arm_openbsd.c +0 -31
- data/third_party/boringssl-with-bazel/src/crypto/kyber/keccak.c +0 -204
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_info.c +0 -100
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +0 -111
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +0 -197
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +0 -221
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akeya.c +0 -71
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +0 -636
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bcons.c +0 -135
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +0 -141
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +0 -418
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +0 -477
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_crld.c +0 -599
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +0 -111
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_extku.c +0 -154
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +0 -270
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +0 -122
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +0 -213
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_int.c +0 -121
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +0 -341
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ncons.c +0 -555
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ocsp.c +0 -81
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcons.c +0 -142
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pmaps.c +0 -150
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +0 -225
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +0 -888
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +0 -171
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +0 -1355
- data/third_party/re2/util/benchmark.h +0 -156
- data/third_party/re2/util/flags.h +0 -26
- data/third_party/re2/util/malloc_counter.h +0 -19
- data/third_party/re2/util/pcre.cc +0 -1025
- data/third_party/re2/util/pcre.h +0 -681
- data/third_party/re2/util/test.h +0 -50
- data/third_party/upb/upb/alloc.h +0 -36
- data/third_party/upb/upb/arena.h +0 -36
- data/third_party/upb/upb/array.h +0 -36
- data/third_party/upb/upb/base/log2.h +0 -57
- data/third_party/upb/upb/collections/array.c +0 -145
- data/third_party/upb/upb/collections/array.h +0 -85
- data/third_party/upb/upb/collections/array_internal.h +0 -135
- data/third_party/upb/upb/collections/map.c +0 -135
- data/third_party/upb/upb/collections/map.h +0 -135
- data/third_party/upb/upb/collections/map_gencode_util.h +0 -78
- data/third_party/upb/upb/collections/map_internal.h +0 -170
- data/third_party/upb/upb/collections/map_sorter.c +0 -166
- data/third_party/upb/upb/collections/map_sorter_internal.h +0 -109
- data/third_party/upb/upb/collections/message_value.h +0 -65
- data/third_party/upb/upb/decode.h +0 -36
- data/third_party/upb/upb/def.h +0 -36
- data/third_party/upb/upb/def.hpp +0 -33
- data/third_party/upb/upb/encode.h +0 -36
- data/third_party/upb/upb/extension_registry.h +0 -35
- data/third_party/upb/upb/json_decode.h +0 -36
- data/third_party/upb/upb/json_encode.h +0 -36
- data/third_party/upb/upb/map.h +0 -36
- data/third_party/upb/upb/mem/arena_internal.h +0 -114
- data/third_party/upb/upb/message/accessors_internal.h +0 -325
- data/third_party/upb/upb/message/extension_internal.h +0 -83
- data/third_party/upb/upb/message/internal.h +0 -135
- data/third_party/upb/upb/mini_table/common.c +0 -128
- data/third_party/upb/upb/mini_table/common.h +0 -170
- data/third_party/upb/upb/mini_table/common_internal.h +0 -111
- data/third_party/upb/upb/mini_table/decode.c +0 -1127
- data/third_party/upb/upb/mini_table/decode.h +0 -179
- data/third_party/upb/upb/mini_table/encode.c +0 -300
- data/third_party/upb/upb/mini_table/encode_internal.h +0 -111
- data/third_party/upb/upb/mini_table/encode_internal.hpp +0 -136
- data/third_party/upb/upb/mini_table/enum_internal.h +0 -88
- data/third_party/upb/upb/mini_table/extension_internal.h +0 -47
- data/third_party/upb/upb/mini_table/field_internal.h +0 -192
- data/third_party/upb/upb/mini_table/file_internal.h +0 -47
- data/third_party/upb/upb/mini_table/message_internal.h +0 -136
- data/third_party/upb/upb/mini_table/sub_internal.h +0 -38
- data/third_party/upb/upb/mini_table/types.h +0 -40
- data/third_party/upb/upb/mini_table.h +0 -36
- data/third_party/upb/upb/msg.h +0 -36
- data/third_party/upb/upb/reflection/def_builder.c +0 -357
- data/third_party/upb/upb/reflection/def_builder_internal.h +0 -157
- data/third_party/upb/upb/reflection/def_pool_internal.h +0 -77
- data/third_party/upb/upb/reflection/desc_state_internal.h +0 -64
- data/third_party/upb/upb/reflection/enum_def_internal.h +0 -56
- data/third_party/upb/upb/reflection/enum_reserved_range_internal.h +0 -55
- data/third_party/upb/upb/reflection/enum_value_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/extension_range_internal.h +0 -54
- data/third_party/upb/upb/reflection/field_def_internal.h +0 -76
- data/third_party/upb/upb/reflection/file_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/message_def_internal.h +0 -63
- data/third_party/upb/upb/reflection/message_reserved_range_internal.h +0 -55
- data/third_party/upb/upb/reflection/method_def_internal.h +0 -53
- data/third_party/upb/upb/reflection/oneof_def_internal.h +0 -57
- data/third_party/upb/upb/reflection/service_def_internal.h +0 -53
- data/third_party/upb/upb/reflection.h +0 -36
- data/third_party/upb/upb/reflection.hpp +0 -33
- data/third_party/upb/upb/status.h +0 -36
- data/third_party/upb/upb/string_view.h +0 -36
- data/third_party/upb/upb/text_encode.h +0 -36
- data/third_party/upb/upb/upb.h +0 -39
- data/third_party/upb/upb/upb.hpp +0 -107
- data/third_party/upb/upb/wire/common.h +0 -44
- data/third_party/upb/upb/wire/common_internal.h +0 -50
- data/third_party/upb/upb/wire/decode_internal.h +0 -163
- data/third_party/upb/upb/wire/swap_internal.h +0 -63
- data/third_party/zlib/gzclose.c +0 -25
- data/third_party/zlib/gzlib.c +0 -639
- data/third_party/zlib/gzread.c +0 -650
- data/third_party/zlib/gzwrite.c +0 -677
- /data/third_party/boringssl-with-bazel/src/crypto/{x509v3 → x509}/ext_dat.h +0 -0
@@ -35,10 +35,9 @@
|
|
35
35
|
|
36
36
|
#include <algorithm>
|
37
37
|
#include <atomic>
|
38
|
-
#include <cinttypes>
|
39
38
|
#include <cstddef>
|
39
|
+
#include <cstdlib>
|
40
40
|
#include <cstring>
|
41
|
-
#include <iterator>
|
42
41
|
#include <thread> // NOLINT(build/c++11)
|
43
42
|
|
44
43
|
#include "absl/base/attributes.h"
|
@@ -55,7 +54,6 @@
|
|
55
54
|
#include "absl/base/internal/thread_identity.h"
|
56
55
|
#include "absl/base/internal/tsan_mutex_interface.h"
|
57
56
|
#include "absl/base/optimization.h"
|
58
|
-
#include "absl/base/port.h"
|
59
57
|
#include "absl/debugging/stacktrace.h"
|
60
58
|
#include "absl/debugging/symbolize.h"
|
61
59
|
#include "absl/synchronization/internal/graphcycles.h"
|
@@ -63,6 +61,7 @@
|
|
63
61
|
#include "absl/time/time.h"
|
64
62
|
|
65
63
|
using absl::base_internal::CurrentThreadIdentityIfPresent;
|
64
|
+
using absl::base_internal::CycleClock;
|
66
65
|
using absl::base_internal::PerThreadSynch;
|
67
66
|
using absl::base_internal::SchedulingGuard;
|
68
67
|
using absl::base_internal::ThreadIdentity;
|
@@ -98,18 +97,15 @@ ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES
|
|
98
97
|
absl::base_internal::AtomicHook<void (*)(int64_t wait_cycles)>
|
99
98
|
submit_profile_data;
|
100
99
|
ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES absl::base_internal::AtomicHook<void (*)(
|
101
|
-
const char
|
100
|
+
const char* msg, const void* obj, int64_t wait_cycles)>
|
102
101
|
mutex_tracer;
|
103
102
|
ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES
|
104
|
-
|
105
|
-
|
106
|
-
ABSL_INTERNAL_ATOMIC_HOOK_ATTRIBUTES absl::base_internal::AtomicHook<
|
107
|
-
bool (*)(const void *pc, char *out, int out_size)>
|
108
|
-
symbolizer(absl::Symbolize);
|
103
|
+
absl::base_internal::AtomicHook<void (*)(const char* msg, const void* cv)>
|
104
|
+
cond_var_tracer;
|
109
105
|
|
110
106
|
} // namespace
|
111
107
|
|
112
|
-
static inline bool EvalConditionAnnotated(const Condition
|
108
|
+
static inline bool EvalConditionAnnotated(const Condition* cond, Mutex* mu,
|
113
109
|
bool locking, bool trylock,
|
114
110
|
bool read_lock);
|
115
111
|
|
@@ -117,19 +113,15 @@ void RegisterMutexProfiler(void (*fn)(int64_t wait_cycles)) {
|
|
117
113
|
submit_profile_data.Store(fn);
|
118
114
|
}
|
119
115
|
|
120
|
-
void RegisterMutexTracer(void (*fn)(const char
|
116
|
+
void RegisterMutexTracer(void (*fn)(const char* msg, const void* obj,
|
121
117
|
int64_t wait_cycles)) {
|
122
118
|
mutex_tracer.Store(fn);
|
123
119
|
}
|
124
120
|
|
125
|
-
void RegisterCondVarTracer(void (*fn)(const char
|
121
|
+
void RegisterCondVarTracer(void (*fn)(const char* msg, const void* cv)) {
|
126
122
|
cond_var_tracer.Store(fn);
|
127
123
|
}
|
128
124
|
|
129
|
-
void RegisterSymbolizer(bool (*fn)(const void *pc, char *out, int out_size)) {
|
130
|
-
symbolizer.Store(fn);
|
131
|
-
}
|
132
|
-
|
133
125
|
namespace {
|
134
126
|
// Represents the strategy for spin and yield.
|
135
127
|
// See the comment in GetMutexGlobals() for more information.
|
@@ -137,46 +129,46 @@ enum DelayMode { AGGRESSIVE, GENTLE };
|
|
137
129
|
|
138
130
|
struct ABSL_CACHELINE_ALIGNED MutexGlobals {
|
139
131
|
absl::once_flag once;
|
140
|
-
|
132
|
+
// Note: this variable is initialized separately in Mutex::LockSlow,
|
133
|
+
// so that Mutex::Lock does not have a stack frame in optimized build.
|
134
|
+
std::atomic<int> spinloop_iterations{0};
|
141
135
|
int32_t mutex_sleep_spins[2] = {};
|
142
136
|
absl::Duration mutex_sleep_time;
|
143
137
|
};
|
144
138
|
|
139
|
+
ABSL_CONST_INIT static MutexGlobals globals;
|
140
|
+
|
145
141
|
absl::Duration MeasureTimeToYield() {
|
146
142
|
absl::Time before = absl::Now();
|
147
143
|
ABSL_INTERNAL_C_SYMBOL(AbslInternalMutexYield)();
|
148
144
|
return absl::Now() - before;
|
149
145
|
}
|
150
146
|
|
151
|
-
const MutexGlobals
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
// gentle then spin only a few times before yielding. Aggressive spinning
|
163
|
-
// is used to ensure that an Unlock() call, which must get the spin lock
|
164
|
-
// for any thread to make progress gets it without undue delay.
|
165
|
-
if (num_cpus > 1) {
|
166
|
-
data.mutex_sleep_spins[AGGRESSIVE] = 5000;
|
167
|
-
data.mutex_sleep_spins[GENTLE] = 250;
|
168
|
-
data.mutex_sleep_time = absl::Microseconds(10);
|
147
|
+
const MutexGlobals& GetMutexGlobals() {
|
148
|
+
absl::base_internal::LowLevelCallOnce(&globals.once, [&]() {
|
149
|
+
if (absl::base_internal::NumCPUs() > 1) {
|
150
|
+
// If the mode is aggressive then spin many times before yielding.
|
151
|
+
// If the mode is gentle then spin only a few times before yielding.
|
152
|
+
// Aggressive spinning is used to ensure that an Unlock() call,
|
153
|
+
// which must get the spin lock for any thread to make progress gets it
|
154
|
+
// without undue delay.
|
155
|
+
globals.mutex_sleep_spins[AGGRESSIVE] = 5000;
|
156
|
+
globals.mutex_sleep_spins[GENTLE] = 250;
|
157
|
+
globals.mutex_sleep_time = absl::Microseconds(10);
|
169
158
|
} else {
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
159
|
+
// If this a uniprocessor, only yield/sleep. Real-time threads are often
|
160
|
+
// unable to yield, so the sleep time needs to be long enough to keep
|
161
|
+
// the calling thread asleep until scheduling happens.
|
162
|
+
globals.mutex_sleep_spins[AGGRESSIVE] = 0;
|
163
|
+
globals.mutex_sleep_spins[GENTLE] = 0;
|
164
|
+
globals.mutex_sleep_time = MeasureTimeToYield() * 5;
|
165
|
+
globals.mutex_sleep_time =
|
166
|
+
std::min(globals.mutex_sleep_time, absl::Milliseconds(1));
|
167
|
+
globals.mutex_sleep_time =
|
168
|
+
std::max(globals.mutex_sleep_time, absl::Microseconds(10));
|
177
169
|
}
|
178
170
|
});
|
179
|
-
return
|
171
|
+
return globals;
|
180
172
|
}
|
181
173
|
} // namespace
|
182
174
|
|
@@ -211,33 +203,23 @@ int MutexDelay(int32_t c, int mode) {
|
|
211
203
|
// Ensure that "(*pv & bits) == bits" by doing an atomic update of "*pv" to
|
212
204
|
// "*pv | bits" if necessary. Wait until (*pv & wait_until_clear)==0
|
213
205
|
// before making any change.
|
206
|
+
// Returns true if bits were previously unset and set by the call.
|
214
207
|
// This is used to set flags in mutex and condition variable words.
|
215
|
-
static
|
208
|
+
static bool AtomicSetBits(std::atomic<intptr_t>* pv, intptr_t bits,
|
216
209
|
intptr_t wait_until_clear) {
|
217
|
-
|
218
|
-
|
219
|
-
v
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
// This is used to unset flags in mutex and condition variable words.
|
231
|
-
static void AtomicClearBits(std::atomic<intptr_t>* pv, intptr_t bits,
|
232
|
-
intptr_t wait_until_clear) {
|
233
|
-
intptr_t v;
|
234
|
-
do {
|
235
|
-
v = pv->load(std::memory_order_relaxed);
|
236
|
-
} while ((v & bits) != 0 &&
|
237
|
-
((v & wait_until_clear) != 0 ||
|
238
|
-
!pv->compare_exchange_weak(v, v & ~bits,
|
239
|
-
std::memory_order_release,
|
240
|
-
std::memory_order_relaxed)));
|
210
|
+
for (;;) {
|
211
|
+
intptr_t v = pv->load(std::memory_order_relaxed);
|
212
|
+
if ((v & bits) == bits) {
|
213
|
+
return false;
|
214
|
+
}
|
215
|
+
if ((v & wait_until_clear) != 0) {
|
216
|
+
continue;
|
217
|
+
}
|
218
|
+
if (pv->compare_exchange_weak(v, v | bits, std::memory_order_release,
|
219
|
+
std::memory_order_relaxed)) {
|
220
|
+
return true;
|
221
|
+
}
|
222
|
+
}
|
241
223
|
}
|
242
224
|
|
243
225
|
//------------------------------------------------------------------
|
@@ -247,7 +229,7 @@ ABSL_CONST_INIT static absl::base_internal::SpinLock deadlock_graph_mu(
|
|
247
229
|
absl::kConstInit, base_internal::SCHEDULE_KERNEL_ONLY);
|
248
230
|
|
249
231
|
// Graph used to detect deadlocks.
|
250
|
-
ABSL_CONST_INIT static GraphCycles
|
232
|
+
ABSL_CONST_INIT static GraphCycles* deadlock_graph
|
251
233
|
ABSL_GUARDED_BY(deadlock_graph_mu) ABSL_PT_GUARDED_BY(deadlock_graph_mu);
|
252
234
|
|
253
235
|
//------------------------------------------------------------------
|
@@ -291,7 +273,7 @@ enum { // Event flags
|
|
291
273
|
// Properties of the events.
|
292
274
|
static const struct {
|
293
275
|
int flags;
|
294
|
-
const char
|
276
|
+
const char* msg;
|
295
277
|
} event_properties[] = {
|
296
278
|
{SYNCH_F_LCK_W | SYNCH_F_TRY, "TryLock succeeded "},
|
297
279
|
{0, "TryLock failed "},
|
@@ -316,12 +298,12 @@ ABSL_CONST_INIT static absl::base_internal::SpinLock synch_event_mu(
|
|
316
298
|
// Can't be too small, as it's used for deadlock detection information.
|
317
299
|
static constexpr uint32_t kNSynchEvent = 1031;
|
318
300
|
|
319
|
-
static struct SynchEvent {
|
301
|
+
static struct SynchEvent { // this is a trivial hash table for the events
|
320
302
|
// struct is freed when refcount reaches 0
|
321
303
|
int refcount ABSL_GUARDED_BY(synch_event_mu);
|
322
304
|
|
323
305
|
// buckets have linear, 0-terminated chains
|
324
|
-
SynchEvent
|
306
|
+
SynchEvent* next ABSL_GUARDED_BY(synch_event_mu);
|
325
307
|
|
326
308
|
// Constant after initialization
|
327
309
|
uintptr_t masked_addr; // object at this address is called "name"
|
@@ -329,13 +311,13 @@ static struct SynchEvent { // this is a trivial hash table for the events
|
|
329
311
|
// No explicit synchronization used. Instead we assume that the
|
330
312
|
// client who enables/disables invariants/logging on a Mutex does so
|
331
313
|
// while the Mutex is not being concurrently accessed by others.
|
332
|
-
void (*invariant)(void
|
333
|
-
void
|
334
|
-
bool log;
|
314
|
+
void (*invariant)(void* arg); // called on each event
|
315
|
+
void* arg; // first arg to (*invariant)()
|
316
|
+
bool log; // logging turned on
|
335
317
|
|
336
318
|
// Constant after initialization
|
337
|
-
char name[1];
|
338
|
-
}
|
319
|
+
char name[1]; // actually longer---NUL-terminated string
|
320
|
+
}* synch_event[kNSynchEvent] ABSL_GUARDED_BY(synch_event_mu);
|
339
321
|
|
340
322
|
// Ensure that the object at "addr" has a SynchEvent struct associated with it,
|
341
323
|
// set "bits" in the word there (waiting until lockbit is clear before doing
|
@@ -344,88 +326,94 @@ static struct SynchEvent { // this is a trivial hash table for the events
|
|
344
326
|
// the string name is copied into it.
|
345
327
|
// When used with a mutex, the caller should also ensure that kMuEvent
|
346
328
|
// is set in the mutex word, and similarly for condition variables and kCVEvent.
|
347
|
-
static SynchEvent
|
348
|
-
const char
|
329
|
+
static SynchEvent* EnsureSynchEvent(std::atomic<intptr_t>* addr,
|
330
|
+
const char* name, intptr_t bits,
|
349
331
|
intptr_t lockbit) {
|
350
332
|
uint32_t h = reinterpret_cast<uintptr_t>(addr) % kNSynchEvent;
|
351
|
-
SynchEvent *e;
|
352
|
-
// first look for existing SynchEvent struct..
|
353
333
|
synch_event_mu.Lock();
|
354
|
-
|
355
|
-
|
356
|
-
|
334
|
+
// When a Mutex/CondVar is destroyed, we don't remove the associated
|
335
|
+
// SynchEvent to keep destructors empty in release builds for performance
|
336
|
+
// reasons. If the current call is the first to set bits (kMuEvent/kCVEvent),
|
337
|
+
// we don't look up the existing even because (if it exists, it must be for
|
338
|
+
// the previous Mutex/CondVar that existed at the same address).
|
339
|
+
// The leaking events must not be a problem for tests, which should create
|
340
|
+
// bounded amount of events. And debug logging is not supposed to be enabled
|
341
|
+
// in production. However, if it's accidentally enabled, or briefly enabled
|
342
|
+
// for some debugging, we don't want to crash the program. Instead we drop
|
343
|
+
// all events, if we accumulated too many of them. Size of a single event
|
344
|
+
// is ~48 bytes, so 100K events is ~5 MB.
|
345
|
+
// Additionally we could delete the old event for the same address,
|
346
|
+
// but it would require a better hashmap (if we accumulate too many events,
|
347
|
+
// linked lists will grow and traversing them will be very slow).
|
348
|
+
constexpr size_t kMaxSynchEventCount = 100 << 10;
|
349
|
+
// Total number of live synch events.
|
350
|
+
static size_t synch_event_count ABSL_GUARDED_BY(synch_event_mu);
|
351
|
+
if (++synch_event_count > kMaxSynchEventCount) {
|
352
|
+
synch_event_count = 0;
|
353
|
+
ABSL_RAW_LOG(ERROR,
|
354
|
+
"Accumulated %zu Mutex debug objects. If you see this"
|
355
|
+
" in production, it may mean that the production code"
|
356
|
+
" accidentally calls "
|
357
|
+
"Mutex/CondVar::EnableDebugLog/EnableInvariantDebugging.",
|
358
|
+
kMaxSynchEventCount);
|
359
|
+
for (auto*& head : synch_event) {
|
360
|
+
for (auto* e = head; e != nullptr;) {
|
361
|
+
SynchEvent* next = e->next;
|
362
|
+
if (--(e->refcount) == 0) {
|
363
|
+
base_internal::LowLevelAlloc::Free(e);
|
364
|
+
}
|
365
|
+
e = next;
|
366
|
+
}
|
367
|
+
head = nullptr;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
SynchEvent* e = nullptr;
|
371
|
+
if (!AtomicSetBits(addr, bits, lockbit)) {
|
372
|
+
for (e = synch_event[h];
|
373
|
+
e != nullptr && e->masked_addr != base_internal::HidePtr(addr);
|
374
|
+
e = e->next) {
|
375
|
+
}
|
357
376
|
}
|
358
377
|
if (e == nullptr) { // no SynchEvent struct found; make one.
|
359
378
|
if (name == nullptr) {
|
360
379
|
name = "";
|
361
380
|
}
|
362
381
|
size_t l = strlen(name);
|
363
|
-
e = reinterpret_cast<SynchEvent
|
382
|
+
e = reinterpret_cast<SynchEvent*>(
|
364
383
|
base_internal::LowLevelAlloc::Alloc(sizeof(*e) + l));
|
365
|
-
e->refcount = 2;
|
384
|
+
e->refcount = 2; // one for return value, one for linked list
|
366
385
|
e->masked_addr = base_internal::HidePtr(addr);
|
367
386
|
e->invariant = nullptr;
|
368
387
|
e->arg = nullptr;
|
369
388
|
e->log = false;
|
370
389
|
strcpy(e->name, name); // NOLINT(runtime/printf)
|
371
390
|
e->next = synch_event[h];
|
372
|
-
AtomicSetBits(addr, bits, lockbit);
|
373
391
|
synch_event[h] = e;
|
374
392
|
} else {
|
375
|
-
e->refcount++;
|
393
|
+
e->refcount++; // for return value
|
376
394
|
}
|
377
395
|
synch_event_mu.Unlock();
|
378
396
|
return e;
|
379
397
|
}
|
380
398
|
|
381
|
-
// Deallocate the SynchEvent *e, whose refcount has fallen to zero.
|
382
|
-
static void DeleteSynchEvent(SynchEvent *e) {
|
383
|
-
base_internal::LowLevelAlloc::Free(e);
|
384
|
-
}
|
385
|
-
|
386
399
|
// Decrement the reference count of *e, or do nothing if e==null.
|
387
|
-
static void UnrefSynchEvent(SynchEvent
|
400
|
+
static void UnrefSynchEvent(SynchEvent* e) {
|
388
401
|
if (e != nullptr) {
|
389
402
|
synch_event_mu.Lock();
|
390
403
|
bool del = (--(e->refcount) == 0);
|
391
404
|
synch_event_mu.Unlock();
|
392
405
|
if (del) {
|
393
|
-
|
406
|
+
base_internal::LowLevelAlloc::Free(e);
|
394
407
|
}
|
395
408
|
}
|
396
409
|
}
|
397
410
|
|
398
|
-
// Forget the mapping from the object (Mutex or CondVar) at address addr
|
399
|
-
// to SynchEvent object, and clear "bits" in its word (waiting until lockbit
|
400
|
-
// is clear before doing so).
|
401
|
-
static void ForgetSynchEvent(std::atomic<intptr_t> *addr, intptr_t bits,
|
402
|
-
intptr_t lockbit) {
|
403
|
-
uint32_t h = reinterpret_cast<uintptr_t>(addr) % kNSynchEvent;
|
404
|
-
SynchEvent **pe;
|
405
|
-
SynchEvent *e;
|
406
|
-
synch_event_mu.Lock();
|
407
|
-
for (pe = &synch_event[h];
|
408
|
-
(e = *pe) != nullptr && e->masked_addr != base_internal::HidePtr(addr);
|
409
|
-
pe = &e->next) {
|
410
|
-
}
|
411
|
-
bool del = false;
|
412
|
-
if (e != nullptr) {
|
413
|
-
*pe = e->next;
|
414
|
-
del = (--(e->refcount) == 0);
|
415
|
-
}
|
416
|
-
AtomicClearBits(addr, bits, lockbit);
|
417
|
-
synch_event_mu.Unlock();
|
418
|
-
if (del) {
|
419
|
-
DeleteSynchEvent(e);
|
420
|
-
}
|
421
|
-
}
|
422
|
-
|
423
411
|
// Return a refcounted reference to the SynchEvent of the object at address
|
424
412
|
// "addr", if any. The pointer returned is valid until the UnrefSynchEvent() is
|
425
413
|
// called.
|
426
|
-
static SynchEvent
|
414
|
+
static SynchEvent* GetSynchEvent(const void* addr) {
|
427
415
|
uint32_t h = reinterpret_cast<uintptr_t>(addr) % kNSynchEvent;
|
428
|
-
SynchEvent
|
416
|
+
SynchEvent* e;
|
429
417
|
synch_event_mu.Lock();
|
430
418
|
for (e = synch_event[h];
|
431
419
|
e != nullptr && e->masked_addr != base_internal::HidePtr(addr);
|
@@ -440,17 +428,17 @@ static SynchEvent *GetSynchEvent(const void *addr) {
|
|
440
428
|
|
441
429
|
// Called when an event "ev" occurs on a Mutex of CondVar "obj"
|
442
430
|
// if event recording is on
|
443
|
-
static void PostSynchEvent(void
|
444
|
-
SynchEvent
|
431
|
+
static void PostSynchEvent(void* obj, int ev) {
|
432
|
+
SynchEvent* e = GetSynchEvent(obj);
|
445
433
|
// logging is on if event recording is on and either there's no event struct,
|
446
434
|
// or it explicitly says to log
|
447
435
|
if (e == nullptr || e->log) {
|
448
|
-
void
|
436
|
+
void* pcs[40];
|
449
437
|
int n = absl::GetStackTrace(pcs, ABSL_ARRAYSIZE(pcs), 1);
|
450
438
|
// A buffer with enough space for the ASCII for all the PCs, even on a
|
451
439
|
// 64-bit machine.
|
452
440
|
char buffer[ABSL_ARRAYSIZE(pcs) * 24];
|
453
|
-
int pos = snprintf(buffer, sizeof
|
441
|
+
int pos = snprintf(buffer, sizeof(buffer), " @");
|
454
442
|
for (int i = 0; i != n; i++) {
|
455
443
|
int b = snprintf(&buffer[pos], sizeof(buffer) - static_cast<size_t>(pos),
|
456
444
|
" %p", pcs[i]);
|
@@ -472,13 +460,13 @@ static void PostSynchEvent(void *obj, int ev) {
|
|
472
460
|
// get false positive race reports later.
|
473
461
|
// Reuse EvalConditionAnnotated to properly call into user code.
|
474
462
|
struct local {
|
475
|
-
static bool pred(SynchEvent
|
463
|
+
static bool pred(SynchEvent* ev) {
|
476
464
|
(*ev->invariant)(ev->arg);
|
477
465
|
return false;
|
478
466
|
}
|
479
467
|
};
|
480
468
|
Condition cond(&local::pred, e);
|
481
|
-
Mutex
|
469
|
+
Mutex* mu = static_cast<Mutex*>(obj);
|
482
470
|
const bool locking = (flags & SYNCH_F_UNLOCK) == 0;
|
483
471
|
const bool trylock = (flags & SYNCH_F_TRY) != 0;
|
484
472
|
const bool read_lock = (flags & SYNCH_F_R) != 0;
|
@@ -504,32 +492,32 @@ static void PostSynchEvent(void *obj, int ev) {
|
|
504
492
|
// PerThreadSynch struct points at the most recent SynchWaitParams struct when
|
505
493
|
// the thread is on a Mutex's waiter queue.
|
506
494
|
struct SynchWaitParams {
|
507
|
-
SynchWaitParams(Mutex::MuHow how_arg, const Condition
|
508
|
-
KernelTimeout timeout_arg, Mutex
|
509
|
-
PerThreadSynch
|
510
|
-
std::atomic<intptr_t
|
495
|
+
SynchWaitParams(Mutex::MuHow how_arg, const Condition* cond_arg,
|
496
|
+
KernelTimeout timeout_arg, Mutex* cvmu_arg,
|
497
|
+
PerThreadSynch* thread_arg,
|
498
|
+
std::atomic<intptr_t>* cv_word_arg)
|
511
499
|
: how(how_arg),
|
512
500
|
cond(cond_arg),
|
513
501
|
timeout(timeout_arg),
|
514
502
|
cvmu(cvmu_arg),
|
515
503
|
thread(thread_arg),
|
516
504
|
cv_word(cv_word_arg),
|
517
|
-
contention_start_cycles(
|
505
|
+
contention_start_cycles(CycleClock::Now()),
|
518
506
|
should_submit_contention_data(false) {}
|
519
507
|
|
520
508
|
const Mutex::MuHow how; // How this thread needs to wait.
|
521
|
-
const Condition
|
522
|
-
|
523
|
-
|
509
|
+
const Condition* cond; // The condition that this thread is waiting for.
|
510
|
+
// In Mutex, this field is set to zero if a timeout
|
511
|
+
// expires.
|
524
512
|
KernelTimeout timeout; // timeout expiry---absolute time
|
525
513
|
// In Mutex, this field is set to zero if a timeout
|
526
514
|
// expires.
|
527
|
-
Mutex
|
528
|
-
PerThreadSynch
|
515
|
+
Mutex* const cvmu; // used for transfer from cond var to mutex
|
516
|
+
PerThreadSynch* const thread; // thread that is waiting
|
529
517
|
|
530
518
|
// If not null, thread should be enqueued on the CondVar whose state
|
531
519
|
// word is cv_word instead of queueing normally on the Mutex.
|
532
|
-
std::atomic<intptr_t
|
520
|
+
std::atomic<intptr_t>* cv_word;
|
533
521
|
|
534
522
|
int64_t contention_start_cycles; // Time (in cycles) when this thread started
|
535
523
|
// to contend for the mutex.
|
@@ -537,12 +525,12 @@ struct SynchWaitParams {
|
|
537
525
|
};
|
538
526
|
|
539
527
|
struct SynchLocksHeld {
|
540
|
-
int n;
|
541
|
-
bool overflow;
|
528
|
+
int n; // number of valid entries in locks[]
|
529
|
+
bool overflow; // true iff we overflowed the array at some point
|
542
530
|
struct {
|
543
|
-
Mutex
|
544
|
-
int32_t count;
|
545
|
-
GraphId id;
|
531
|
+
Mutex* mu; // lock acquired
|
532
|
+
int32_t count; // times acquired
|
533
|
+
GraphId id; // deadlock_graph id of acquired lock
|
546
534
|
} locks[40];
|
547
535
|
// If a thread overfills the array during deadlock detection, we
|
548
536
|
// continue, discarding information as needed. If no overflow has
|
@@ -552,11 +540,11 @@ struct SynchLocksHeld {
|
|
552
540
|
|
553
541
|
// A sentinel value in lists that is not 0.
|
554
542
|
// A 0 value is used to mean "not on a list".
|
555
|
-
static PerThreadSynch
|
556
|
-
|
543
|
+
static PerThreadSynch* const kPerThreadSynchNull =
|
544
|
+
reinterpret_cast<PerThreadSynch*>(1);
|
557
545
|
|
558
|
-
static SynchLocksHeld
|
559
|
-
SynchLocksHeld
|
546
|
+
static SynchLocksHeld* LocksHeldAlloc() {
|
547
|
+
SynchLocksHeld* ret = reinterpret_cast<SynchLocksHeld*>(
|
560
548
|
base_internal::LowLevelAlloc::Alloc(sizeof(SynchLocksHeld)));
|
561
549
|
ret->n = 0;
|
562
550
|
ret->overflow = false;
|
@@ -564,24 +552,24 @@ static SynchLocksHeld *LocksHeldAlloc() {
|
|
564
552
|
}
|
565
553
|
|
566
554
|
// Return the PerThreadSynch-struct for this thread.
|
567
|
-
static PerThreadSynch
|
568
|
-
ThreadIdentity
|
555
|
+
static PerThreadSynch* Synch_GetPerThread() {
|
556
|
+
ThreadIdentity* identity = GetOrCreateCurrentThreadIdentity();
|
569
557
|
return &identity->per_thread_synch;
|
570
558
|
}
|
571
559
|
|
572
|
-
static PerThreadSynch
|
560
|
+
static PerThreadSynch* Synch_GetPerThreadAnnotated(Mutex* mu) {
|
573
561
|
if (mu) {
|
574
562
|
ABSL_TSAN_MUTEX_PRE_DIVERT(mu, 0);
|
575
563
|
}
|
576
|
-
PerThreadSynch
|
564
|
+
PerThreadSynch* w = Synch_GetPerThread();
|
577
565
|
if (mu) {
|
578
566
|
ABSL_TSAN_MUTEX_POST_DIVERT(mu, 0);
|
579
567
|
}
|
580
568
|
return w;
|
581
569
|
}
|
582
570
|
|
583
|
-
static SynchLocksHeld
|
584
|
-
PerThreadSynch
|
571
|
+
static SynchLocksHeld* Synch_GetAllLocks() {
|
572
|
+
PerThreadSynch* s = Synch_GetPerThread();
|
585
573
|
if (s->all_locks == nullptr) {
|
586
574
|
s->all_locks = LocksHeldAlloc(); // Freed by ReclaimThreadIdentity.
|
587
575
|
}
|
@@ -589,32 +577,26 @@ static SynchLocksHeld *Synch_GetAllLocks() {
|
|
589
577
|
}
|
590
578
|
|
591
579
|
// Post on "w"'s associated PerThreadSem.
|
592
|
-
void Mutex::IncrementSynchSem(Mutex
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
} else {
|
603
|
-
PerThreadSem::Post(w->thread_identity());
|
604
|
-
}
|
580
|
+
void Mutex::IncrementSynchSem(Mutex* mu, PerThreadSynch* w) {
|
581
|
+
static_cast<void>(mu); // Prevent unused param warning in non-TSAN builds.
|
582
|
+
ABSL_TSAN_MUTEX_PRE_DIVERT(mu, 0);
|
583
|
+
// We miss synchronization around passing PerThreadSynch between threads
|
584
|
+
// since it happens inside of the Mutex code, so we need to ignore all
|
585
|
+
// accesses to the object.
|
586
|
+
ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN();
|
587
|
+
PerThreadSem::Post(w->thread_identity());
|
588
|
+
ABSL_ANNOTATE_IGNORE_READS_AND_WRITES_END();
|
589
|
+
ABSL_TSAN_MUTEX_POST_DIVERT(mu, 0);
|
605
590
|
}
|
606
591
|
|
607
592
|
// Wait on "w"'s associated PerThreadSem; returns false if timeout expired.
|
608
|
-
bool Mutex::DecrementSynchSem(Mutex
|
609
|
-
|
610
|
-
|
611
|
-
}
|
593
|
+
bool Mutex::DecrementSynchSem(Mutex* mu, PerThreadSynch* w, KernelTimeout t) {
|
594
|
+
static_cast<void>(mu); // Prevent unused param warning in non-TSAN builds.
|
595
|
+
ABSL_TSAN_MUTEX_PRE_DIVERT(mu, 0);
|
612
596
|
assert(w == Synch_GetPerThread());
|
613
597
|
static_cast<void>(w);
|
614
598
|
bool res = PerThreadSem::Wait(t);
|
615
|
-
|
616
|
-
ABSL_TSAN_MUTEX_POST_DIVERT(mu, 0);
|
617
|
-
}
|
599
|
+
ABSL_TSAN_MUTEX_POST_DIVERT(mu, 0);
|
618
600
|
return res;
|
619
601
|
}
|
620
602
|
|
@@ -626,7 +608,7 @@ bool Mutex::DecrementSynchSem(Mutex *mu, PerThreadSynch *w, KernelTimeout t) {
|
|
626
608
|
// Mutex code checking that the "waitp" field has not been reused.
|
627
609
|
void Mutex::InternalAttemptToUseMutexInFatalSignalHandler() {
|
628
610
|
// Fix the per-thread state only if it exists.
|
629
|
-
ThreadIdentity
|
611
|
+
ThreadIdentity* identity = CurrentThreadIdentityIfPresent();
|
630
612
|
if (identity != nullptr) {
|
631
613
|
identity->per_thread_synch.suppress_fatal_errors = true;
|
632
614
|
}
|
@@ -635,21 +617,6 @@ void Mutex::InternalAttemptToUseMutexInFatalSignalHandler() {
|
|
635
617
|
std::memory_order_release);
|
636
618
|
}
|
637
619
|
|
638
|
-
// --------------------------time support
|
639
|
-
|
640
|
-
// Return the current time plus the timeout. Use the same clock as
|
641
|
-
// PerThreadSem::Wait() for consistency. Unfortunately, we don't have
|
642
|
-
// such a choice when a deadline is given directly.
|
643
|
-
static absl::Time DeadlineFromTimeout(absl::Duration timeout) {
|
644
|
-
#ifndef _WIN32
|
645
|
-
struct timeval tv;
|
646
|
-
gettimeofday(&tv, nullptr);
|
647
|
-
return absl::TimeFromTimeval(tv) + timeout;
|
648
|
-
#else
|
649
|
-
return absl::Now() + timeout;
|
650
|
-
#endif
|
651
|
-
}
|
652
|
-
|
653
620
|
// --------------------------Mutexes
|
654
621
|
|
655
622
|
// In the layout below, the msb of the bottom byte is currently unused. Also,
|
@@ -660,24 +627,29 @@ static absl::Time DeadlineFromTimeout(absl::Duration timeout) {
|
|
660
627
|
// bit-twiddling trick in Mutex::Unlock().
|
661
628
|
// o kMuWriter / kMuReader == kMuWrWait / kMuWait,
|
662
629
|
// to enable the bit-twiddling trick in CheckForMutexCorruption().
|
663
|
-
static const intptr_t kMuReader
|
664
|
-
|
665
|
-
static const intptr_t kMuWait = 0x0004L; // threads are waiting
|
666
|
-
static const intptr_t kMuWriter = 0x0008L; // a writer holds the lock
|
667
|
-
static const intptr_t kMuEvent = 0x0010L; // record this mutex's events
|
630
|
+
static const intptr_t kMuReader = 0x0001L; // a reader holds the lock
|
631
|
+
// There's a designated waker.
|
668
632
|
// INVARIANT1: there's a thread that was blocked on the mutex, is
|
669
633
|
// no longer, yet has not yet acquired the mutex. If there's a
|
670
634
|
// designated waker, all threads can avoid taking the slow path in
|
671
635
|
// unlock because the designated waker will subsequently acquire
|
672
636
|
// the lock and wake someone. To maintain INVARIANT1 the bit is
|
673
637
|
// set when a thread is unblocked(INV1a), and threads that were
|
674
|
-
// unblocked reset the bit when they either acquire or re-block
|
675
|
-
|
676
|
-
static const intptr_t
|
677
|
-
|
678
|
-
static const intptr_t
|
679
|
-
|
680
|
-
|
638
|
+
// unblocked reset the bit when they either acquire or re-block (INV1b).
|
639
|
+
static const intptr_t kMuDesig = 0x0002L;
|
640
|
+
static const intptr_t kMuWait = 0x0004L; // threads are waiting
|
641
|
+
static const intptr_t kMuWriter = 0x0008L; // a writer holds the lock
|
642
|
+
static const intptr_t kMuEvent = 0x0010L; // record this mutex's events
|
643
|
+
// Runnable writer is waiting for a reader.
|
644
|
+
// If set, new readers will not lock the mutex to avoid writer starvation.
|
645
|
+
// Note: if a reader has higher priority than the writer, it will still lock
|
646
|
+
// the mutex ahead of the waiting writer, but in a very inefficient manner:
|
647
|
+
// the reader will first queue itself and block, but then the last unlocking
|
648
|
+
// reader will wake it.
|
649
|
+
static const intptr_t kMuWrWait = 0x0020L;
|
650
|
+
static const intptr_t kMuSpin = 0x0040L; // spinlock protects wait list
|
651
|
+
static const intptr_t kMuLow = 0x00ffL; // mask all mutex bits
|
652
|
+
static const intptr_t kMuHigh = ~kMuLow; // mask pointer/reader count
|
681
653
|
|
682
654
|
// Hack to make constant values available to gdb pretty printer
|
683
655
|
enum {
|
@@ -703,6 +675,7 @@ static const intptr_t kMuOne = 0x0100; // a count of one reader
|
|
703
675
|
// flags passed to Enqueue and LockSlow{,WithTimeout,Loop}
|
704
676
|
static const int kMuHasBlocked = 0x01; // already blocked (MUST == 1)
|
705
677
|
static const int kMuIsCond = 0x02; // conditional waiter (CV or Condition)
|
678
|
+
static const int kMuIsFer = 0x04; // wait morphing from a CondVar
|
706
679
|
|
707
680
|
static_assert(PerThreadSynch::kAlignment > kMuLow,
|
708
681
|
"PerThreadSynch::kAlignment must be greater than kMuLow");
|
@@ -758,40 +731,59 @@ static unsigned TsanFlags(Mutex::MuHow how) {
|
|
758
731
|
}
|
759
732
|
#endif
|
760
733
|
|
761
|
-
|
762
|
-
|
763
|
-
|
734
|
+
#if defined(__APPLE__) || defined(ABSL_BUILD_DLL)
|
735
|
+
// When building a dll symbol export lists may reference the destructor
|
736
|
+
// and want it to be an exported symbol rather than an inline function.
|
737
|
+
// Some apple builds also do dynamic library build but don't say it explicitly.
|
738
|
+
Mutex::~Mutex() { Dtor(); }
|
739
|
+
#endif
|
764
740
|
|
765
|
-
|
766
|
-
|
767
|
-
if ((v & kMuEvent) != 0 && !DebugOnlyIsExiting()) {
|
768
|
-
ForgetSynchEvent(&this->mu_, kMuEvent, kMuSpin);
|
769
|
-
}
|
741
|
+
#if !defined(NDEBUG) || defined(ABSL_HAVE_THREAD_SANITIZER)
|
742
|
+
void Mutex::Dtor() {
|
770
743
|
if (kDebugMode) {
|
771
744
|
this->ForgetDeadlockInfo();
|
772
745
|
}
|
773
746
|
ABSL_TSAN_MUTEX_DESTROY(this, __tsan_mutex_not_static);
|
774
747
|
}
|
748
|
+
#endif
|
775
749
|
|
776
|
-
void Mutex::EnableDebugLog(const char
|
777
|
-
|
750
|
+
void Mutex::EnableDebugLog(const char* name) {
|
751
|
+
// Need to disable writes here and in EnableInvariantDebugging to prevent
|
752
|
+
// false race reports on SynchEvent objects. TSan ignores synchronization
|
753
|
+
// on synch_event_mu in Lock/Unlock/etc methods due to mutex annotations,
|
754
|
+
// but it sees few accesses to SynchEvent in EvalConditionAnnotated.
|
755
|
+
// If we don't ignore accesses here, it can result in false races
|
756
|
+
// between EvalConditionAnnotated and SynchEvent reuse in EnsureSynchEvent.
|
757
|
+
ABSL_ANNOTATE_IGNORE_WRITES_BEGIN();
|
758
|
+
SynchEvent* e = EnsureSynchEvent(&this->mu_, name, kMuEvent, kMuSpin);
|
778
759
|
e->log = true;
|
779
760
|
UnrefSynchEvent(e);
|
761
|
+
// This prevents "error: undefined symbol: absl::Mutex::~Mutex()"
|
762
|
+
// in a release build (NDEBUG defined) when a test does "#undef NDEBUG"
|
763
|
+
// to use assert macro. In such case, the test does not get the dtor
|
764
|
+
// definition because it's supposed to be outline when NDEBUG is not defined,
|
765
|
+
// and this source file does not define one either because NDEBUG is defined.
|
766
|
+
// Since it's not possible to take address of a destructor, we move the
|
767
|
+
// actual destructor code into the separate Dtor function and force the
|
768
|
+
// compiler to emit this function even if it's inline by taking its address.
|
769
|
+
ABSL_ATTRIBUTE_UNUSED volatile auto dtor = &Mutex::Dtor;
|
770
|
+
ABSL_ANNOTATE_IGNORE_WRITES_END();
|
780
771
|
}
|
781
772
|
|
782
773
|
void EnableMutexInvariantDebugging(bool enabled) {
|
783
774
|
synch_check_invariants.store(enabled, std::memory_order_release);
|
784
775
|
}
|
785
776
|
|
786
|
-
void Mutex::EnableInvariantDebugging(void (*invariant)(void *)
|
787
|
-
|
777
|
+
void Mutex::EnableInvariantDebugging(void (*invariant)(void*), void* arg) {
|
778
|
+
ABSL_ANNOTATE_IGNORE_WRITES_BEGIN();
|
788
779
|
if (synch_check_invariants.load(std::memory_order_acquire) &&
|
789
780
|
invariant != nullptr) {
|
790
|
-
SynchEvent
|
781
|
+
SynchEvent* e = EnsureSynchEvent(&this->mu_, nullptr, kMuEvent, kMuSpin);
|
791
782
|
e->invariant = invariant;
|
792
783
|
e->arg = arg;
|
793
784
|
UnrefSynchEvent(e);
|
794
785
|
}
|
786
|
+
ABSL_ANNOTATE_IGNORE_WRITES_END();
|
795
787
|
}
|
796
788
|
|
797
789
|
void SetMutexDeadlockDetectionMode(OnDeadlockCycle mode) {
|
@@ -803,15 +795,15 @@ void SetMutexDeadlockDetectionMode(OnDeadlockCycle mode) {
|
|
803
795
|
// waiters with the same condition, type of lock, and thread priority.
|
804
796
|
//
|
805
797
|
// Requires that x and y be waiting on the same Mutex queue.
|
806
|
-
static bool MuEquivalentWaiter(PerThreadSynch
|
798
|
+
static bool MuEquivalentWaiter(PerThreadSynch* x, PerThreadSynch* y) {
|
807
799
|
return x->waitp->how == y->waitp->how && x->priority == y->priority &&
|
808
800
|
Condition::GuaranteedEqual(x->waitp->cond, y->waitp->cond);
|
809
801
|
}
|
810
802
|
|
811
803
|
// Given the contents of a mutex word containing a PerThreadSynch pointer,
|
812
804
|
// return the pointer.
|
813
|
-
static inline PerThreadSynch
|
814
|
-
return reinterpret_cast<PerThreadSynch
|
805
|
+
static inline PerThreadSynch* GetPerThreadSynch(intptr_t v) {
|
806
|
+
return reinterpret_cast<PerThreadSynch*>(v & kMuHigh);
|
815
807
|
}
|
816
808
|
|
817
809
|
// The next several routines maintain the per-thread next and skip fields
|
@@ -869,17 +861,17 @@ static inline PerThreadSynch *GetPerThreadSynch(intptr_t v) {
|
|
869
861
|
// except those in the added node and the former "head" node. This implies
|
870
862
|
// that the new node is added after head, and so must be the new head or the
|
871
863
|
// new front of the queue.
|
872
|
-
static PerThreadSynch
|
873
|
-
PerThreadSynch
|
874
|
-
PerThreadSynch
|
875
|
-
PerThreadSynch
|
864
|
+
static PerThreadSynch* Skip(PerThreadSynch* x) {
|
865
|
+
PerThreadSynch* x0 = nullptr;
|
866
|
+
PerThreadSynch* x1 = x;
|
867
|
+
PerThreadSynch* x2 = x->skip;
|
876
868
|
if (x2 != nullptr) {
|
877
869
|
// Each iteration attempts to advance sequence (x0,x1,x2) to next sequence
|
878
870
|
// such that x1 == x0->skip && x2 == x1->skip
|
879
871
|
while ((x0 = x1, x1 = x2, x2 = x2->skip) != nullptr) {
|
880
|
-
x0->skip = x2;
|
872
|
+
x0->skip = x2; // short-circuit skip from x0 to x2
|
881
873
|
}
|
882
|
-
x->skip = x1;
|
874
|
+
x->skip = x1; // short-circuit skip from x to result
|
883
875
|
}
|
884
876
|
return x1;
|
885
877
|
}
|
@@ -888,7 +880,7 @@ static PerThreadSynch *Skip(PerThreadSynch *x) {
|
|
888
880
|
// The latter is going to be removed out of order, because of a timeout.
|
889
881
|
// Check whether "ancestor" has a skip field pointing to "to_be_removed",
|
890
882
|
// and fix it if it does.
|
891
|
-
static void FixSkip(PerThreadSynch
|
883
|
+
static void FixSkip(PerThreadSynch* ancestor, PerThreadSynch* to_be_removed) {
|
892
884
|
if (ancestor->skip == to_be_removed) { // ancestor->skip left dangling
|
893
885
|
if (to_be_removed->skip != nullptr) {
|
894
886
|
ancestor->skip = to_be_removed->skip; // can skip past to_be_removed
|
@@ -900,7 +892,7 @@ static void FixSkip(PerThreadSynch *ancestor, PerThreadSynch *to_be_removed) {
|
|
900
892
|
}
|
901
893
|
}
|
902
894
|
|
903
|
-
static void CondVarEnqueue(SynchWaitParams
|
895
|
+
static void CondVarEnqueue(SynchWaitParams* waitp);
|
904
896
|
|
905
897
|
// Enqueue thread "waitp->thread" on a waiter queue.
|
906
898
|
// Called with mutex spinlock held if head != nullptr
|
@@ -921,8 +913,8 @@ static void CondVarEnqueue(SynchWaitParams *waitp);
|
|
921
913
|
// returned. This mechanism is used by CondVar to queue a thread on the
|
922
914
|
// condition variable queue instead of the mutex queue in implementing Wait().
|
923
915
|
// In this case, Enqueue() can return nullptr (if head==nullptr).
|
924
|
-
static PerThreadSynch
|
925
|
-
|
916
|
+
static PerThreadSynch* Enqueue(PerThreadSynch* head, SynchWaitParams* waitp,
|
917
|
+
intptr_t mu, int flags) {
|
926
918
|
// If we have been given a cv_word, call CondVarEnqueue() and return
|
927
919
|
// the previous head of the Mutex waiter queue.
|
928
920
|
if (waitp->cv_word != nullptr) {
|
@@ -930,30 +922,25 @@ static PerThreadSynch *Enqueue(PerThreadSynch *head,
|
|
930
922
|
return head;
|
931
923
|
}
|
932
924
|
|
933
|
-
PerThreadSynch
|
925
|
+
PerThreadSynch* s = waitp->thread;
|
934
926
|
ABSL_RAW_CHECK(
|
935
927
|
s->waitp == nullptr || // normal case
|
936
928
|
s->waitp == waitp || // Fer()---transfer from condition variable
|
937
929
|
s->suppress_fatal_errors,
|
938
930
|
"detected illegal recursion into Mutex code");
|
939
931
|
s->waitp = waitp;
|
940
|
-
s->skip = nullptr;
|
941
|
-
s->may_skip = true;
|
942
|
-
s->wake = false;
|
932
|
+
s->skip = nullptr; // maintain skip invariant (see above)
|
933
|
+
s->may_skip = true; // always true on entering queue
|
934
|
+
s->wake = false; // not being woken
|
943
935
|
s->cond_waiter = ((flags & kMuIsCond) != 0);
|
944
|
-
if (head == nullptr) { // s is the only waiter
|
945
|
-
s->next = s; // it's the only entry in the cycle
|
946
|
-
s->readers = mu; // reader count is from mu word
|
947
|
-
s->maybe_unlocking = false; // no one is searching an empty list
|
948
|
-
head = s; // s is new head
|
949
|
-
} else {
|
950
|
-
PerThreadSynch *enqueue_after = nullptr; // we'll put s after this element
|
951
936
|
#ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM
|
952
|
-
|
937
|
+
if ((flags & kMuIsFer) == 0) {
|
938
|
+
assert(s == Synch_GetPerThread());
|
939
|
+
int64_t now_cycles = CycleClock::Now();
|
953
940
|
if (s->next_priority_read_cycles < now_cycles) {
|
954
941
|
// Every so often, update our idea of the thread's priority.
|
955
942
|
// pthread_getschedparam() is 5% of the block/wakeup time;
|
956
|
-
//
|
943
|
+
// CycleClock::Now() is 0.5%.
|
957
944
|
int policy;
|
958
945
|
struct sched_param param;
|
959
946
|
const int err = pthread_getschedparam(pthread_self(), &policy, ¶m);
|
@@ -962,10 +949,19 @@ static PerThreadSynch *Enqueue(PerThreadSynch *head,
|
|
962
949
|
} else {
|
963
950
|
s->priority = param.sched_priority;
|
964
951
|
s->next_priority_read_cycles =
|
965
|
-
now_cycles +
|
966
|
-
static_cast<int64_t>(base_internal::CycleClock::Frequency());
|
952
|
+
now_cycles + static_cast<int64_t>(CycleClock::Frequency());
|
967
953
|
}
|
968
954
|
}
|
955
|
+
}
|
956
|
+
#endif
|
957
|
+
if (head == nullptr) { // s is the only waiter
|
958
|
+
s->next = s; // it's the only entry in the cycle
|
959
|
+
s->readers = mu; // reader count is from mu word
|
960
|
+
s->maybe_unlocking = false; // no one is searching an empty list
|
961
|
+
head = s; // s is new head
|
962
|
+
} else {
|
963
|
+
PerThreadSynch* enqueue_after = nullptr; // we'll put s after this element
|
964
|
+
#ifdef ABSL_HAVE_PTHREAD_GETSCHEDPARAM
|
969
965
|
if (s->priority > head->priority) { // s's priority is above head's
|
970
966
|
// try to put s in priority-fifo order, or failing that at the front.
|
971
967
|
if (!head->maybe_unlocking) {
|
@@ -975,20 +971,19 @@ static PerThreadSynch *Enqueue(PerThreadSynch *head,
|
|
975
971
|
// Within a skip chain, all waiters have the same priority, so we can
|
976
972
|
// skip forward through the chains until we find one with a lower
|
977
973
|
// priority than the waiter to be enqueued.
|
978
|
-
PerThreadSynch
|
974
|
+
PerThreadSynch* advance_to = head; // next value of enqueue_after
|
979
975
|
do {
|
980
976
|
enqueue_after = advance_to;
|
981
977
|
// (side-effect: optimizes skip chain)
|
982
978
|
advance_to = Skip(enqueue_after->next);
|
983
979
|
} while (s->priority <= advance_to->priority);
|
984
|
-
|
985
|
-
|
986
|
-
} else if (waitp->how == kExclusive &&
|
987
|
-
Condition::GuaranteedEqual(waitp->cond, nullptr)) {
|
980
|
+
// termination guaranteed because s->priority > head->priority
|
981
|
+
// and head is the end of a skip chain
|
982
|
+
} else if (waitp->how == kExclusive && waitp->cond == nullptr) {
|
988
983
|
// An unlocker could be scanning the queue, but we know it will recheck
|
989
984
|
// the queue front for writers that have no condition, which is what s
|
990
985
|
// is, so an insert at front is safe.
|
991
|
-
enqueue_after = head;
|
986
|
+
enqueue_after = head; // add after head, at front
|
992
987
|
}
|
993
988
|
}
|
994
989
|
#endif
|
@@ -1013,12 +1008,30 @@ static PerThreadSynch *Enqueue(PerThreadSynch *head,
|
|
1013
1008
|
enqueue_after->skip = enqueue_after->next;
|
1014
1009
|
}
|
1015
1010
|
if (MuEquivalentWaiter(s, s->next)) { // s->may_skip is known to be true
|
1016
|
-
s->skip = s->next;
|
1011
|
+
s->skip = s->next; // s may skip to its successor
|
1012
|
+
}
|
1013
|
+
} else if ((flags & kMuHasBlocked) &&
|
1014
|
+
(s->priority >= head->next->priority) &&
|
1015
|
+
(!head->maybe_unlocking ||
|
1016
|
+
(waitp->how == kExclusive &&
|
1017
|
+
Condition::GuaranteedEqual(waitp->cond, nullptr)))) {
|
1018
|
+
// This thread has already waited, then was woken, then failed to acquire
|
1019
|
+
// the mutex and now tries to requeue. Try to requeue it at head,
|
1020
|
+
// otherwise it can suffer bad latency (wait whole queue several times).
|
1021
|
+
// However, we need to be conservative. First, we need to ensure that we
|
1022
|
+
// respect priorities. Then, we need to be careful to not break wait
|
1023
|
+
// queue invariants: we require either that unlocker is not scanning
|
1024
|
+
// the queue or that the current thread is a writer with no condition
|
1025
|
+
// (unlocker will recheck the queue for such waiters).
|
1026
|
+
s->next = head->next;
|
1027
|
+
head->next = s;
|
1028
|
+
if (MuEquivalentWaiter(s, s->next)) { // s->may_skip is known to be true
|
1029
|
+
s->skip = s->next; // s may skip to its successor
|
1017
1030
|
}
|
1018
|
-
} else {
|
1019
|
-
|
1031
|
+
} else { // enqueue not done any other way, so
|
1032
|
+
// we're inserting s at the back
|
1020
1033
|
// s will become new head; copy data from head into it
|
1021
|
-
s->next = head->next;
|
1034
|
+
s->next = head->next; // add s after head
|
1022
1035
|
head->next = s;
|
1023
1036
|
s->readers = head->readers; // reader count is from previous head
|
1024
1037
|
s->maybe_unlocking = head->maybe_unlocking; // same for unlock hint
|
@@ -1037,17 +1050,17 @@ static PerThreadSynch *Enqueue(PerThreadSynch *head,
|
|
1037
1050
|
// whose last element is head. The new head element is returned, or null
|
1038
1051
|
// if the list is made empty.
|
1039
1052
|
// Dequeue is called with both spinlock and Mutex held.
|
1040
|
-
static PerThreadSynch
|
1041
|
-
PerThreadSynch
|
1042
|
-
pw->next = w->next;
|
1043
|
-
if (head == w) {
|
1053
|
+
static PerThreadSynch* Dequeue(PerThreadSynch* head, PerThreadSynch* pw) {
|
1054
|
+
PerThreadSynch* w = pw->next;
|
1055
|
+
pw->next = w->next; // snip w out of list
|
1056
|
+
if (head == w) { // we removed the head
|
1044
1057
|
head = (pw == w) ? nullptr : pw; // either emptied list, or pw is new head
|
1045
1058
|
} else if (pw != head && MuEquivalentWaiter(pw, pw->next)) {
|
1046
1059
|
// pw can skip to its new successor
|
1047
1060
|
if (pw->next->skip !=
|
1048
1061
|
nullptr) { // either skip to its successors skip target
|
1049
1062
|
pw->skip = pw->next->skip;
|
1050
|
-
} else {
|
1063
|
+
} else { // or to pw's successor
|
1051
1064
|
pw->skip = pw->next;
|
1052
1065
|
}
|
1053
1066
|
}
|
@@ -1060,27 +1073,27 @@ static PerThreadSynch *Dequeue(PerThreadSynch *head, PerThreadSynch *pw) {
|
|
1060
1073
|
// singly-linked list wake_list in the order found. Assumes that
|
1061
1074
|
// there is only one such element if the element has how == kExclusive.
|
1062
1075
|
// Return the new head.
|
1063
|
-
static PerThreadSynch
|
1064
|
-
PerThreadSynch
|
1065
|
-
PerThreadSynch
|
1066
|
-
PerThreadSynch
|
1067
|
-
PerThreadSynch
|
1076
|
+
static PerThreadSynch* DequeueAllWakeable(PerThreadSynch* head,
|
1077
|
+
PerThreadSynch* pw,
|
1078
|
+
PerThreadSynch** wake_tail) {
|
1079
|
+
PerThreadSynch* orig_h = head;
|
1080
|
+
PerThreadSynch* w = pw->next;
|
1068
1081
|
bool skipped = false;
|
1069
1082
|
do {
|
1070
|
-
if (w->wake) {
|
1083
|
+
if (w->wake) { // remove this element
|
1071
1084
|
ABSL_RAW_CHECK(pw->skip == nullptr, "bad skip in DequeueAllWakeable");
|
1072
1085
|
// we're removing pw's successor so either pw->skip is zero or we should
|
1073
1086
|
// already have removed pw since if pw->skip!=null, pw has the same
|
1074
1087
|
// condition as w.
|
1075
1088
|
head = Dequeue(head, pw);
|
1076
|
-
w->next = *wake_tail;
|
1077
|
-
*wake_tail = w;
|
1078
|
-
wake_tail = &w->next;
|
1089
|
+
w->next = *wake_tail; // keep list terminated
|
1090
|
+
*wake_tail = w; // add w to wake_list;
|
1091
|
+
wake_tail = &w->next; // next addition to end
|
1079
1092
|
if (w->waitp->how == kExclusive) { // wake at most 1 writer
|
1080
1093
|
break;
|
1081
1094
|
}
|
1082
|
-
} else {
|
1083
|
-
pw = Skip(w);
|
1095
|
+
} else { // not waking this one; skip
|
1096
|
+
pw = Skip(w); // skip as much as possible
|
1084
1097
|
skipped = true;
|
1085
1098
|
}
|
1086
1099
|
w = pw->next;
|
@@ -1098,7 +1111,7 @@ static PerThreadSynch *DequeueAllWakeable(PerThreadSynch *head,
|
|
1098
1111
|
|
1099
1112
|
// Try to remove thread s from the list of waiters on this mutex.
|
1100
1113
|
// Does nothing if s is not on the waiter list.
|
1101
|
-
void Mutex::TryRemove(PerThreadSynch
|
1114
|
+
void Mutex::TryRemove(PerThreadSynch* s) {
|
1102
1115
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
1103
1116
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1104
1117
|
// acquire spinlock & lock
|
@@ -1106,16 +1119,16 @@ void Mutex::TryRemove(PerThreadSynch *s) {
|
|
1106
1119
|
mu_.compare_exchange_strong(v, v | kMuSpin | kMuWriter,
|
1107
1120
|
std::memory_order_acquire,
|
1108
1121
|
std::memory_order_relaxed)) {
|
1109
|
-
PerThreadSynch
|
1122
|
+
PerThreadSynch* h = GetPerThreadSynch(v);
|
1110
1123
|
if (h != nullptr) {
|
1111
|
-
PerThreadSynch
|
1112
|
-
PerThreadSynch
|
1124
|
+
PerThreadSynch* pw = h; // pw is w's predecessor
|
1125
|
+
PerThreadSynch* w;
|
1113
1126
|
if ((w = pw->next) != s) { // search for thread,
|
1114
1127
|
do { // processing at least one element
|
1115
1128
|
// If the current element isn't equivalent to the waiter to be
|
1116
1129
|
// removed, we can skip the entire chain.
|
1117
1130
|
if (!MuEquivalentWaiter(s, w)) {
|
1118
|
-
pw = Skip(w);
|
1131
|
+
pw = Skip(w); // so skip all that won't match
|
1119
1132
|
// we don't have to worry about dangling skip fields
|
1120
1133
|
// in the threads we skipped; none can point to s
|
1121
1134
|
// because they are in a different equivalence class.
|
@@ -1127,7 +1140,7 @@ void Mutex::TryRemove(PerThreadSynch *s) {
|
|
1127
1140
|
// process the first thread again.
|
1128
1141
|
} while ((w = pw->next) != s && pw != h);
|
1129
1142
|
}
|
1130
|
-
if (w == s) {
|
1143
|
+
if (w == s) { // found thread; remove it
|
1131
1144
|
// pw->skip may be non-zero here; the loop above ensured that
|
1132
1145
|
// no ancestor of s can skip to s, so removal is safe anyway.
|
1133
1146
|
h = Dequeue(h, pw);
|
@@ -1136,16 +1149,15 @@ void Mutex::TryRemove(PerThreadSynch *s) {
|
|
1136
1149
|
}
|
1137
1150
|
}
|
1138
1151
|
intptr_t nv;
|
1139
|
-
do {
|
1152
|
+
do { // release spinlock and lock
|
1140
1153
|
v = mu_.load(std::memory_order_relaxed);
|
1141
1154
|
nv = v & (kMuDesig | kMuEvent);
|
1142
1155
|
if (h != nullptr) {
|
1143
1156
|
nv |= kMuWait | reinterpret_cast<intptr_t>(h);
|
1144
|
-
h->readers = 0;
|
1157
|
+
h->readers = 0; // we hold writer lock
|
1145
1158
|
h->maybe_unlocking = false; // finished unlocking
|
1146
1159
|
}
|
1147
|
-
} while (!mu_.compare_exchange_weak(v, nv,
|
1148
|
-
std::memory_order_release,
|
1160
|
+
} while (!mu_.compare_exchange_weak(v, nv, std::memory_order_release,
|
1149
1161
|
std::memory_order_relaxed));
|
1150
1162
|
}
|
1151
1163
|
}
|
@@ -1155,7 +1167,7 @@ void Mutex::TryRemove(PerThreadSynch *s) {
|
|
1155
1167
|
// if the wait extends past the absolute time specified, even if "s" is still
|
1156
1168
|
// on the mutex queue. In this case, remove "s" from the queue and return
|
1157
1169
|
// true, otherwise return false.
|
1158
|
-
void Mutex::Block(PerThreadSynch
|
1170
|
+
void Mutex::Block(PerThreadSynch* s) {
|
1159
1171
|
while (s->state.load(std::memory_order_acquire) == PerThreadSynch::kQueued) {
|
1160
1172
|
if (!DecrementSynchSem(this, s, s->waitp->timeout)) {
|
1161
1173
|
// After a timeout, we go into a spin loop until we remove ourselves
|
@@ -1174,7 +1186,7 @@ void Mutex::Block(PerThreadSynch *s) {
|
|
1174
1186
|
// is not on the queue.
|
1175
1187
|
this->TryRemove(s);
|
1176
1188
|
}
|
1177
|
-
s->waitp->timeout = KernelTimeout::Never();
|
1189
|
+
s->waitp->timeout = KernelTimeout::Never(); // timeout is satisfied
|
1178
1190
|
s->waitp->cond = nullptr; // condition no longer relevant for wakeups
|
1179
1191
|
}
|
1180
1192
|
}
|
@@ -1184,8 +1196,8 @@ void Mutex::Block(PerThreadSynch *s) {
|
|
1184
1196
|
}
|
1185
1197
|
|
1186
1198
|
// Wake thread w, and return the next thread in the list.
|
1187
|
-
PerThreadSynch
|
1188
|
-
PerThreadSynch
|
1199
|
+
PerThreadSynch* Mutex::Wakeup(PerThreadSynch* w) {
|
1200
|
+
PerThreadSynch* next = w->next;
|
1189
1201
|
w->next = nullptr;
|
1190
1202
|
w->state.store(PerThreadSynch::kAvailable, std::memory_order_release);
|
1191
1203
|
IncrementSynchSem(this, w);
|
@@ -1193,7 +1205,7 @@ PerThreadSynch *Mutex::Wakeup(PerThreadSynch *w) {
|
|
1193
1205
|
return next;
|
1194
1206
|
}
|
1195
1207
|
|
1196
|
-
static GraphId GetGraphIdLocked(Mutex
|
1208
|
+
static GraphId GetGraphIdLocked(Mutex* mu)
|
1197
1209
|
ABSL_EXCLUSIVE_LOCKS_REQUIRED(deadlock_graph_mu) {
|
1198
1210
|
if (!deadlock_graph) { // (re)create the deadlock graph.
|
1199
1211
|
deadlock_graph =
|
@@ -1203,7 +1215,7 @@ static GraphId GetGraphIdLocked(Mutex *mu)
|
|
1203
1215
|
return deadlock_graph->GetId(mu);
|
1204
1216
|
}
|
1205
1217
|
|
1206
|
-
static GraphId GetGraphId(Mutex
|
1218
|
+
static GraphId GetGraphId(Mutex* mu) ABSL_LOCKS_EXCLUDED(deadlock_graph_mu) {
|
1207
1219
|
deadlock_graph_mu.Lock();
|
1208
1220
|
GraphId id = GetGraphIdLocked(mu);
|
1209
1221
|
deadlock_graph_mu.Unlock();
|
@@ -1213,7 +1225,7 @@ static GraphId GetGraphId(Mutex *mu) ABSL_LOCKS_EXCLUDED(deadlock_graph_mu) {
|
|
1213
1225
|
// Record a lock acquisition. This is used in debug mode for deadlock
|
1214
1226
|
// detection. The held_locks pointer points to the relevant data
|
1215
1227
|
// structure for each case.
|
1216
|
-
static void LockEnter(Mutex* mu, GraphId id, SynchLocksHeld
|
1228
|
+
static void LockEnter(Mutex* mu, GraphId id, SynchLocksHeld* held_locks) {
|
1217
1229
|
int n = held_locks->n;
|
1218
1230
|
int i = 0;
|
1219
1231
|
while (i != n && held_locks->locks[i].id != id) {
|
@@ -1237,7 +1249,7 @@ static void LockEnter(Mutex* mu, GraphId id, SynchLocksHeld *held_locks) {
|
|
1237
1249
|
// eventually followed by a call to LockLeave(mu, id, x) by the same thread.
|
1238
1250
|
// It does not process the event if is not needed when deadlock detection is
|
1239
1251
|
// disabled.
|
1240
|
-
static void LockLeave(Mutex* mu, GraphId id, SynchLocksHeld
|
1252
|
+
static void LockLeave(Mutex* mu, GraphId id, SynchLocksHeld* held_locks) {
|
1241
1253
|
int n = held_locks->n;
|
1242
1254
|
int i = 0;
|
1243
1255
|
while (i != n && held_locks->locks[i].id != id) {
|
@@ -1252,11 +1264,11 @@ static void LockLeave(Mutex* mu, GraphId id, SynchLocksHeld *held_locks) {
|
|
1252
1264
|
i++;
|
1253
1265
|
}
|
1254
1266
|
if (i == n) { // mu missing means releasing unheld lock
|
1255
|
-
SynchEvent
|
1267
|
+
SynchEvent* mu_events = GetSynchEvent(mu);
|
1256
1268
|
ABSL_RAW_LOG(FATAL,
|
1257
1269
|
"thread releasing lock it does not hold: %p %s; "
|
1258
1270
|
,
|
1259
|
-
static_cast<void
|
1271
|
+
static_cast<void*>(mu),
|
1260
1272
|
mu_events == nullptr ? "" : mu_events->name);
|
1261
1273
|
}
|
1262
1274
|
}
|
@@ -1273,7 +1285,7 @@ static void LockLeave(Mutex* mu, GraphId id, SynchLocksHeld *held_locks) {
|
|
1273
1285
|
}
|
1274
1286
|
|
1275
1287
|
// Call LockEnter() if in debug mode and deadlock detection is enabled.
|
1276
|
-
static inline void DebugOnlyLockEnter(Mutex
|
1288
|
+
static inline void DebugOnlyLockEnter(Mutex* mu) {
|
1277
1289
|
if (kDebugMode) {
|
1278
1290
|
if (synch_deadlock_detection.load(std::memory_order_acquire) !=
|
1279
1291
|
OnDeadlockCycle::kIgnore) {
|
@@ -1283,7 +1295,7 @@ static inline void DebugOnlyLockEnter(Mutex *mu) {
|
|
1283
1295
|
}
|
1284
1296
|
|
1285
1297
|
// Call LockEnter() if in debug mode and deadlock detection is enabled.
|
1286
|
-
static inline void DebugOnlyLockEnter(Mutex
|
1298
|
+
static inline void DebugOnlyLockEnter(Mutex* mu, GraphId id) {
|
1287
1299
|
if (kDebugMode) {
|
1288
1300
|
if (synch_deadlock_detection.load(std::memory_order_acquire) !=
|
1289
1301
|
OnDeadlockCycle::kIgnore) {
|
@@ -1293,7 +1305,7 @@ static inline void DebugOnlyLockEnter(Mutex *mu, GraphId id) {
|
|
1293
1305
|
}
|
1294
1306
|
|
1295
1307
|
// Call LockLeave() if in debug mode and deadlock detection is enabled.
|
1296
|
-
static inline void DebugOnlyLockLeave(Mutex
|
1308
|
+
static inline void DebugOnlyLockLeave(Mutex* mu) {
|
1297
1309
|
if (kDebugMode) {
|
1298
1310
|
if (synch_deadlock_detection.load(std::memory_order_acquire) !=
|
1299
1311
|
OnDeadlockCycle::kIgnore) {
|
@@ -1302,9 +1314,9 @@ static inline void DebugOnlyLockLeave(Mutex *mu) {
|
|
1302
1314
|
}
|
1303
1315
|
}
|
1304
1316
|
|
1305
|
-
static char
|
1317
|
+
static char* StackString(void** pcs, int n, char* buf, int maxlen,
|
1306
1318
|
bool symbolize) {
|
1307
|
-
static
|
1319
|
+
static constexpr int kSymLen = 200;
|
1308
1320
|
char sym[kSymLen];
|
1309
1321
|
int len = 0;
|
1310
1322
|
for (int i = 0; i != n; i++) {
|
@@ -1312,7 +1324,7 @@ static char *StackString(void **pcs, int n, char *buf, int maxlen,
|
|
1312
1324
|
return buf;
|
1313
1325
|
size_t count = static_cast<size_t>(maxlen - len);
|
1314
1326
|
if (symbolize) {
|
1315
|
-
if (!
|
1327
|
+
if (!absl::Symbolize(pcs[i], sym, kSymLen)) {
|
1316
1328
|
sym[0] = '\0';
|
1317
1329
|
}
|
1318
1330
|
snprintf(buf + len, count, "%s\t@ %p %s\n", (i == 0 ? "\n" : ""), pcs[i],
|
@@ -1325,15 +1337,17 @@ static char *StackString(void **pcs, int n, char *buf, int maxlen,
|
|
1325
1337
|
return buf;
|
1326
1338
|
}
|
1327
1339
|
|
1328
|
-
static char
|
1329
|
-
void
|
1340
|
+
static char* CurrentStackString(char* buf, int maxlen, bool symbolize) {
|
1341
|
+
void* pcs[40];
|
1330
1342
|
return StackString(pcs, absl::GetStackTrace(pcs, ABSL_ARRAYSIZE(pcs), 2), buf,
|
1331
1343
|
maxlen, symbolize);
|
1332
1344
|
}
|
1333
1345
|
|
1334
1346
|
namespace {
|
1335
|
-
enum {
|
1336
|
-
|
1347
|
+
enum {
|
1348
|
+
kMaxDeadlockPathLen = 10
|
1349
|
+
}; // maximum length of a deadlock cycle;
|
1350
|
+
// a path this long would be remarkable
|
1337
1351
|
// Buffers required to report a deadlock.
|
1338
1352
|
// We do not allocate them on stack to avoid large stack frame.
|
1339
1353
|
struct DeadlockReportBuffers {
|
@@ -1343,11 +1357,11 @@ struct DeadlockReportBuffers {
|
|
1343
1357
|
|
1344
1358
|
struct ScopedDeadlockReportBuffers {
|
1345
1359
|
ScopedDeadlockReportBuffers() {
|
1346
|
-
b = reinterpret_cast<DeadlockReportBuffers
|
1360
|
+
b = reinterpret_cast<DeadlockReportBuffers*>(
|
1347
1361
|
base_internal::LowLevelAlloc::Alloc(sizeof(*b)));
|
1348
1362
|
}
|
1349
1363
|
~ScopedDeadlockReportBuffers() { base_internal::LowLevelAlloc::Free(b); }
|
1350
|
-
DeadlockReportBuffers
|
1364
|
+
DeadlockReportBuffers* b;
|
1351
1365
|
};
|
1352
1366
|
|
1353
1367
|
// Helper to pass to GraphCycles::UpdateStackTrace.
|
@@ -1358,13 +1372,13 @@ int GetStack(void** stack, int max_depth) {
|
|
1358
1372
|
|
1359
1373
|
// Called in debug mode when a thread is about to acquire a lock in a way that
|
1360
1374
|
// may block.
|
1361
|
-
static GraphId DeadlockCheck(Mutex
|
1375
|
+
static GraphId DeadlockCheck(Mutex* mu) {
|
1362
1376
|
if (synch_deadlock_detection.load(std::memory_order_acquire) ==
|
1363
1377
|
OnDeadlockCycle::kIgnore) {
|
1364
1378
|
return InvalidGraphId();
|
1365
1379
|
}
|
1366
1380
|
|
1367
|
-
SynchLocksHeld
|
1381
|
+
SynchLocksHeld* all_locks = Synch_GetAllLocks();
|
1368
1382
|
|
1369
1383
|
absl::base_internal::SpinLockHolder lock(&deadlock_graph_mu);
|
1370
1384
|
const GraphId mu_id = GetGraphIdLocked(mu);
|
@@ -1386,8 +1400,8 @@ static GraphId DeadlockCheck(Mutex *mu) {
|
|
1386
1400
|
// For each other mutex already held by this thread:
|
1387
1401
|
for (int i = 0; i != all_locks->n; i++) {
|
1388
1402
|
const GraphId other_node_id = all_locks->locks[i].id;
|
1389
|
-
const Mutex
|
1390
|
-
static_cast<const Mutex
|
1403
|
+
const Mutex* other =
|
1404
|
+
static_cast<const Mutex*>(deadlock_graph->Ptr(other_node_id));
|
1391
1405
|
if (other == nullptr) {
|
1392
1406
|
// Ignore stale lock
|
1393
1407
|
continue;
|
@@ -1396,7 +1410,7 @@ static GraphId DeadlockCheck(Mutex *mu) {
|
|
1396
1410
|
// Add the acquired-before edge to the graph.
|
1397
1411
|
if (!deadlock_graph->InsertEdge(other_node_id, mu_id)) {
|
1398
1412
|
ScopedDeadlockReportBuffers scoped_buffers;
|
1399
|
-
DeadlockReportBuffers
|
1413
|
+
DeadlockReportBuffers* b = scoped_buffers.b;
|
1400
1414
|
static int number_of_reported_deadlocks = 0;
|
1401
1415
|
number_of_reported_deadlocks++;
|
1402
1416
|
// Symbolize only 2 first deadlock report to avoid huge slowdowns.
|
@@ -1407,37 +1421,40 @@ static GraphId DeadlockCheck(Mutex *mu) {
|
|
1407
1421
|
for (int j = 0; j != all_locks->n; j++) {
|
1408
1422
|
void* pr = deadlock_graph->Ptr(all_locks->locks[j].id);
|
1409
1423
|
if (pr != nullptr) {
|
1410
|
-
snprintf(b->buf + len, sizeof
|
1424
|
+
snprintf(b->buf + len, sizeof(b->buf) - len, " %p", pr);
|
1411
1425
|
len += strlen(&b->buf[len]);
|
1412
1426
|
}
|
1413
1427
|
}
|
1414
1428
|
ABSL_RAW_LOG(ERROR,
|
1415
1429
|
"Acquiring absl::Mutex %p while holding %s; a cycle in the "
|
1416
1430
|
"historical lock ordering graph has been observed",
|
1417
|
-
static_cast<void
|
1431
|
+
static_cast<void*>(mu), b->buf);
|
1418
1432
|
ABSL_RAW_LOG(ERROR, "Cycle: ");
|
1419
|
-
int path_len = deadlock_graph->FindPath(
|
1420
|
-
|
1421
|
-
for (int j = 0; j != path_len; j++) {
|
1433
|
+
int path_len = deadlock_graph->FindPath(mu_id, other_node_id,
|
1434
|
+
ABSL_ARRAYSIZE(b->path), b->path);
|
1435
|
+
for (int j = 0; j != path_len && j != ABSL_ARRAYSIZE(b->path); j++) {
|
1422
1436
|
GraphId id = b->path[j];
|
1423
|
-
Mutex
|
1437
|
+
Mutex* path_mu = static_cast<Mutex*>(deadlock_graph->Ptr(id));
|
1424
1438
|
if (path_mu == nullptr) continue;
|
1425
1439
|
void** stack;
|
1426
1440
|
int depth = deadlock_graph->GetStackTrace(id, &stack);
|
1427
1441
|
snprintf(b->buf, sizeof(b->buf),
|
1428
|
-
"mutex@%p stack: ", static_cast<void
|
1442
|
+
"mutex@%p stack: ", static_cast<void*>(path_mu));
|
1429
1443
|
StackString(stack, depth, b->buf + strlen(b->buf),
|
1430
1444
|
static_cast<int>(sizeof(b->buf) - strlen(b->buf)),
|
1431
1445
|
symbolize);
|
1432
1446
|
ABSL_RAW_LOG(ERROR, "%s", b->buf);
|
1433
1447
|
}
|
1448
|
+
if (path_len > static_cast<int>(ABSL_ARRAYSIZE(b->path))) {
|
1449
|
+
ABSL_RAW_LOG(ERROR, "(long cycle; list truncated)");
|
1450
|
+
}
|
1434
1451
|
if (synch_deadlock_detection.load(std::memory_order_acquire) ==
|
1435
1452
|
OnDeadlockCycle::kAbort) {
|
1436
1453
|
deadlock_graph_mu.Unlock(); // avoid deadlock in fatal sighandler
|
1437
1454
|
ABSL_RAW_LOG(FATAL, "dying due to potential deadlock");
|
1438
1455
|
return mu_id;
|
1439
1456
|
}
|
1440
|
-
break;
|
1457
|
+
break; // report at most one potential deadlock per acquisition
|
1441
1458
|
}
|
1442
1459
|
}
|
1443
1460
|
|
@@ -1446,7 +1463,7 @@ static GraphId DeadlockCheck(Mutex *mu) {
|
|
1446
1463
|
|
1447
1464
|
// Invoke DeadlockCheck() iff we're in debug mode and
|
1448
1465
|
// deadlock checking has been enabled.
|
1449
|
-
static inline GraphId DebugOnlyDeadlockCheck(Mutex
|
1466
|
+
static inline GraphId DebugOnlyDeadlockCheck(Mutex* mu) {
|
1450
1467
|
if (kDebugMode && synch_deadlock_detection.load(std::memory_order_acquire) !=
|
1451
1468
|
OnDeadlockCycle::kIgnore) {
|
1452
1469
|
return DeadlockCheck(mu);
|
@@ -1473,13 +1490,13 @@ void Mutex::AssertNotHeld() const {
|
|
1473
1490
|
(mu_.load(std::memory_order_relaxed) & (kMuWriter | kMuReader)) != 0 &&
|
1474
1491
|
synch_deadlock_detection.load(std::memory_order_acquire) !=
|
1475
1492
|
OnDeadlockCycle::kIgnore) {
|
1476
|
-
GraphId id = GetGraphId(const_cast<Mutex
|
1477
|
-
SynchLocksHeld
|
1493
|
+
GraphId id = GetGraphId(const_cast<Mutex*>(this));
|
1494
|
+
SynchLocksHeld* locks = Synch_GetAllLocks();
|
1478
1495
|
for (int i = 0; i != locks->n; i++) {
|
1479
1496
|
if (locks->locks[i].id == id) {
|
1480
|
-
SynchEvent
|
1497
|
+
SynchEvent* mu_events = GetSynchEvent(this);
|
1481
1498
|
ABSL_RAW_LOG(FATAL, "thread should not hold mutex %p %s",
|
1482
|
-
static_cast<const void
|
1499
|
+
static_cast<const void*>(this),
|
1483
1500
|
(mu_events == nullptr ? "" : mu_events->name));
|
1484
1501
|
}
|
1485
1502
|
}
|
@@ -1489,11 +1506,11 @@ void Mutex::AssertNotHeld() const {
|
|
1489
1506
|
// Attempt to acquire *mu, and return whether successful. The implementation
|
1490
1507
|
// may spin for a short while if the lock cannot be acquired immediately.
|
1491
1508
|
static bool TryAcquireWithSpinning(std::atomic<intptr_t>* mu) {
|
1492
|
-
int c =
|
1509
|
+
int c = globals.spinloop_iterations.load(std::memory_order_relaxed);
|
1493
1510
|
do { // do/while somewhat faster on AMD
|
1494
1511
|
intptr_t v = mu->load(std::memory_order_relaxed);
|
1495
|
-
if ((v & (kMuReader|kMuEvent)) != 0) {
|
1496
|
-
return false;
|
1512
|
+
if ((v & (kMuReader | kMuEvent)) != 0) {
|
1513
|
+
return false; // a reader or tracing -> give up
|
1497
1514
|
} else if (((v & kMuWriter) == 0) && // no holder -> try to acquire
|
1498
1515
|
mu->compare_exchange_strong(v, kMuWriter | v,
|
1499
1516
|
std::memory_order_acquire,
|
@@ -1509,12 +1526,12 @@ void Mutex::Lock() {
|
|
1509
1526
|
GraphId id = DebugOnlyDeadlockCheck(this);
|
1510
1527
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1511
1528
|
// try fast acquire, then spin loop
|
1512
|
-
if ((v & (kMuWriter | kMuReader | kMuEvent)) != 0 ||
|
1513
|
-
!mu_.compare_exchange_strong(
|
1514
|
-
|
1515
|
-
|
1529
|
+
if (ABSL_PREDICT_FALSE((v & (kMuWriter | kMuReader | kMuEvent)) != 0) ||
|
1530
|
+
ABSL_PREDICT_FALSE(!mu_.compare_exchange_strong(
|
1531
|
+
v, kMuWriter | v, std::memory_order_acquire,
|
1532
|
+
std::memory_order_relaxed))) {
|
1516
1533
|
// try spin acquire, then slow loop
|
1517
|
-
if (!TryAcquireWithSpinning(&this->mu_)) {
|
1534
|
+
if (ABSL_PREDICT_FALSE(!TryAcquireWithSpinning(&this->mu_))) {
|
1518
1535
|
this->LockSlow(kExclusive, nullptr, 0);
|
1519
1536
|
}
|
1520
1537
|
}
|
@@ -1526,139 +1543,95 @@ void Mutex::ReaderLock() {
|
|
1526
1543
|
ABSL_TSAN_MUTEX_PRE_LOCK(this, __tsan_mutex_read_lock);
|
1527
1544
|
GraphId id = DebugOnlyDeadlockCheck(this);
|
1528
1545
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1546
|
+
for (;;) {
|
1547
|
+
// If there are non-readers holding the lock, use the slow loop.
|
1548
|
+
if (ABSL_PREDICT_FALSE(v & (kMuWriter | kMuWait | kMuEvent)) != 0) {
|
1549
|
+
this->LockSlow(kShared, nullptr, 0);
|
1550
|
+
break;
|
1551
|
+
}
|
1552
|
+
// We can avoid the loop and only use the CAS when the lock is free or
|
1553
|
+
// only held by readers.
|
1554
|
+
if (ABSL_PREDICT_TRUE(mu_.compare_exchange_weak(
|
1555
|
+
v, (kMuReader | v) + kMuOne, std::memory_order_acquire,
|
1556
|
+
std::memory_order_relaxed))) {
|
1557
|
+
break;
|
1558
|
+
}
|
1535
1559
|
}
|
1536
1560
|
DebugOnlyLockEnter(this, id);
|
1537
1561
|
ABSL_TSAN_MUTEX_POST_LOCK(this, __tsan_mutex_read_lock, 0);
|
1538
1562
|
}
|
1539
1563
|
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
ABSL_TSAN_MUTEX_POST_LOCK(this, 0, 0);
|
1546
|
-
}
|
1547
|
-
|
1548
|
-
bool Mutex::LockWhenWithTimeout(const Condition &cond, absl::Duration timeout) {
|
1549
|
-
return LockWhenWithDeadline(cond, DeadlineFromTimeout(timeout));
|
1550
|
-
}
|
1551
|
-
|
1552
|
-
bool Mutex::LockWhenWithDeadline(const Condition &cond, absl::Time deadline) {
|
1553
|
-
ABSL_TSAN_MUTEX_PRE_LOCK(this, 0);
|
1554
|
-
GraphId id = DebugOnlyDeadlockCheck(this);
|
1555
|
-
bool res = LockSlowWithDeadline(kExclusive, &cond,
|
1556
|
-
KernelTimeout(deadline), 0);
|
1557
|
-
DebugOnlyLockEnter(this, id);
|
1558
|
-
ABSL_TSAN_MUTEX_POST_LOCK(this, 0, 0);
|
1559
|
-
return res;
|
1560
|
-
}
|
1561
|
-
|
1562
|
-
void Mutex::ReaderLockWhen(const Condition &cond) {
|
1563
|
-
ABSL_TSAN_MUTEX_PRE_LOCK(this, __tsan_mutex_read_lock);
|
1564
|
-
GraphId id = DebugOnlyDeadlockCheck(this);
|
1565
|
-
this->LockSlow(kShared, &cond, 0);
|
1566
|
-
DebugOnlyLockEnter(this, id);
|
1567
|
-
ABSL_TSAN_MUTEX_POST_LOCK(this, __tsan_mutex_read_lock, 0);
|
1568
|
-
}
|
1569
|
-
|
1570
|
-
bool Mutex::ReaderLockWhenWithTimeout(const Condition &cond,
|
1571
|
-
absl::Duration timeout) {
|
1572
|
-
return ReaderLockWhenWithDeadline(cond, DeadlineFromTimeout(timeout));
|
1573
|
-
}
|
1574
|
-
|
1575
|
-
bool Mutex::ReaderLockWhenWithDeadline(const Condition &cond,
|
1576
|
-
absl::Time deadline) {
|
1577
|
-
ABSL_TSAN_MUTEX_PRE_LOCK(this, __tsan_mutex_read_lock);
|
1564
|
+
bool Mutex::LockWhenCommon(const Condition& cond,
|
1565
|
+
synchronization_internal::KernelTimeout t,
|
1566
|
+
bool write) {
|
1567
|
+
MuHow how = write ? kExclusive : kShared;
|
1568
|
+
ABSL_TSAN_MUTEX_PRE_LOCK(this, TsanFlags(how));
|
1578
1569
|
GraphId id = DebugOnlyDeadlockCheck(this);
|
1579
|
-
bool res = LockSlowWithDeadline(
|
1570
|
+
bool res = LockSlowWithDeadline(how, &cond, t, 0);
|
1580
1571
|
DebugOnlyLockEnter(this, id);
|
1581
|
-
ABSL_TSAN_MUTEX_POST_LOCK(this,
|
1572
|
+
ABSL_TSAN_MUTEX_POST_LOCK(this, TsanFlags(how), 0);
|
1582
1573
|
return res;
|
1583
1574
|
}
|
1584
1575
|
|
1585
|
-
|
1586
|
-
if (
|
1587
|
-
|
1588
|
-
this->AssertReaderHeld();
|
1589
|
-
}
|
1590
|
-
} else { // normal case
|
1591
|
-
ABSL_RAW_CHECK(this->AwaitCommon(cond, KernelTimeout::Never()),
|
1592
|
-
"condition untrue on return from Await");
|
1576
|
+
bool Mutex::AwaitCommon(const Condition& cond, KernelTimeout t) {
|
1577
|
+
if (kDebugMode) {
|
1578
|
+
this->AssertReaderHeld();
|
1593
1579
|
}
|
1594
|
-
|
1595
|
-
|
1596
|
-
bool Mutex::AwaitWithTimeout(const Condition &cond, absl::Duration timeout) {
|
1597
|
-
return AwaitWithDeadline(cond, DeadlineFromTimeout(timeout));
|
1598
|
-
}
|
1599
|
-
|
1600
|
-
bool Mutex::AwaitWithDeadline(const Condition &cond, absl::Time deadline) {
|
1601
|
-
if (cond.Eval()) { // condition already true; nothing to do
|
1602
|
-
if (kDebugMode) {
|
1603
|
-
this->AssertReaderHeld();
|
1604
|
-
}
|
1580
|
+
if (cond.Eval()) { // condition already true; nothing to do
|
1605
1581
|
return true;
|
1606
1582
|
}
|
1607
|
-
|
1608
|
-
KernelTimeout t{deadline};
|
1609
|
-
bool res = this->AwaitCommon(cond, t);
|
1610
|
-
ABSL_RAW_CHECK(res || t.has_timeout(),
|
1611
|
-
"condition untrue on return from Await");
|
1612
|
-
return res;
|
1613
|
-
}
|
1614
|
-
|
1615
|
-
bool Mutex::AwaitCommon(const Condition &cond, KernelTimeout t) {
|
1616
|
-
this->AssertReaderHeld();
|
1617
1583
|
MuHow how =
|
1618
1584
|
(mu_.load(std::memory_order_relaxed) & kMuWriter) ? kExclusive : kShared;
|
1619
1585
|
ABSL_TSAN_MUTEX_PRE_UNLOCK(this, TsanFlags(how));
|
1620
|
-
SynchWaitParams waitp(
|
1621
|
-
|
1622
|
-
|
1623
|
-
int flags = kMuHasBlocked;
|
1624
|
-
if (!Condition::GuaranteedEqual(&cond, nullptr)) {
|
1625
|
-
flags |= kMuIsCond;
|
1626
|
-
}
|
1586
|
+
SynchWaitParams waitp(how, &cond, t, nullptr /*no cvmu*/,
|
1587
|
+
Synch_GetPerThreadAnnotated(this),
|
1588
|
+
nullptr /*no cv_word*/);
|
1627
1589
|
this->UnlockSlow(&waitp);
|
1628
1590
|
this->Block(waitp.thread);
|
1629
1591
|
ABSL_TSAN_MUTEX_POST_UNLOCK(this, TsanFlags(how));
|
1630
1592
|
ABSL_TSAN_MUTEX_PRE_LOCK(this, TsanFlags(how));
|
1631
|
-
this->LockSlowLoop(&waitp,
|
1593
|
+
this->LockSlowLoop(&waitp, kMuHasBlocked | kMuIsCond);
|
1632
1594
|
bool res = waitp.cond != nullptr || // => cond known true from LockSlowLoop
|
1633
1595
|
EvalConditionAnnotated(&cond, this, true, false, how == kShared);
|
1634
1596
|
ABSL_TSAN_MUTEX_POST_LOCK(this, TsanFlags(how), 0);
|
1597
|
+
ABSL_RAW_CHECK(res || t.has_timeout(),
|
1598
|
+
"condition untrue on return from Await");
|
1635
1599
|
return res;
|
1636
1600
|
}
|
1637
1601
|
|
1638
1602
|
bool Mutex::TryLock() {
|
1639
1603
|
ABSL_TSAN_MUTEX_PRE_LOCK(this, __tsan_mutex_try_lock);
|
1640
1604
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
ABSL_TSAN_MUTEX_POST_LOCK(this, __tsan_mutex_try_lock, 0);
|
1647
|
-
return true;
|
1648
|
-
}
|
1649
|
-
if ((v & kMuEvent) != 0) { // we're recording events
|
1650
|
-
if ((v & kExclusive->slow_need_zero) == 0 && // try fast acquire
|
1651
|
-
mu_.compare_exchange_strong(
|
1652
|
-
v, (kExclusive->fast_or | v) + kExclusive->fast_add,
|
1653
|
-
std::memory_order_acquire, std::memory_order_relaxed)) {
|
1605
|
+
// Try fast acquire.
|
1606
|
+
if (ABSL_PREDICT_TRUE((v & (kMuWriter | kMuReader | kMuEvent)) == 0)) {
|
1607
|
+
if (ABSL_PREDICT_TRUE(mu_.compare_exchange_strong(
|
1608
|
+
v, kMuWriter | v, std::memory_order_acquire,
|
1609
|
+
std::memory_order_relaxed))) {
|
1654
1610
|
DebugOnlyLockEnter(this);
|
1655
|
-
PostSynchEvent(this, SYNCH_EV_TRYLOCK_SUCCESS);
|
1656
1611
|
ABSL_TSAN_MUTEX_POST_LOCK(this, __tsan_mutex_try_lock, 0);
|
1657
1612
|
return true;
|
1658
|
-
} else {
|
1659
|
-
PostSynchEvent(this, SYNCH_EV_TRYLOCK_FAILED);
|
1660
1613
|
}
|
1614
|
+
} else if (ABSL_PREDICT_FALSE((v & kMuEvent) != 0)) {
|
1615
|
+
// We're recording events.
|
1616
|
+
return TryLockSlow();
|
1617
|
+
}
|
1618
|
+
ABSL_TSAN_MUTEX_POST_LOCK(
|
1619
|
+
this, __tsan_mutex_try_lock | __tsan_mutex_try_lock_failed, 0);
|
1620
|
+
return false;
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
ABSL_ATTRIBUTE_NOINLINE bool Mutex::TryLockSlow() {
|
1624
|
+
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1625
|
+
if ((v & kExclusive->slow_need_zero) == 0 && // try fast acquire
|
1626
|
+
mu_.compare_exchange_strong(
|
1627
|
+
v, (kExclusive->fast_or | v) + kExclusive->fast_add,
|
1628
|
+
std::memory_order_acquire, std::memory_order_relaxed)) {
|
1629
|
+
DebugOnlyLockEnter(this);
|
1630
|
+
PostSynchEvent(this, SYNCH_EV_TRYLOCK_SUCCESS);
|
1631
|
+
ABSL_TSAN_MUTEX_POST_LOCK(this, __tsan_mutex_try_lock, 0);
|
1632
|
+
return true;
|
1661
1633
|
}
|
1634
|
+
PostSynchEvent(this, SYNCH_EV_TRYLOCK_FAILED);
|
1662
1635
|
ABSL_TSAN_MUTEX_POST_LOCK(
|
1663
1636
|
this, __tsan_mutex_try_lock | __tsan_mutex_try_lock_failed, 0);
|
1664
1637
|
return false;
|
@@ -1668,41 +1641,57 @@ bool Mutex::ReaderTryLock() {
|
|
1668
1641
|
ABSL_TSAN_MUTEX_PRE_LOCK(this,
|
1669
1642
|
__tsan_mutex_read_lock | __tsan_mutex_try_lock);
|
1670
1643
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1644
|
+
// Clang tends to unroll the loop when compiling with optimization.
|
1645
|
+
// But in this case it just unnecessary increases code size.
|
1646
|
+
// If CAS is failing due to contention, the jump cost is negligible.
|
1647
|
+
#if defined(__clang__)
|
1648
|
+
#pragma nounroll
|
1649
|
+
#endif
|
1671
1650
|
// The while-loops (here and below) iterate only if the mutex word keeps
|
1672
|
-
// changing (typically because the reader count changes) under the CAS.
|
1673
|
-
// limit the number of attempts to avoid having to think about livelock.
|
1674
|
-
int loop_limit = 5;
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
|
1651
|
+
// changing (typically because the reader count changes) under the CAS.
|
1652
|
+
// We limit the number of attempts to avoid having to think about livelock.
|
1653
|
+
for (int loop_limit = 5; loop_limit != 0; loop_limit--) {
|
1654
|
+
if (ABSL_PREDICT_FALSE((v & (kMuWriter | kMuWait | kMuEvent)) != 0)) {
|
1655
|
+
break;
|
1656
|
+
}
|
1657
|
+
if (ABSL_PREDICT_TRUE(mu_.compare_exchange_strong(
|
1658
|
+
v, (kMuReader | v) + kMuOne, std::memory_order_acquire,
|
1659
|
+
std::memory_order_relaxed))) {
|
1679
1660
|
DebugOnlyLockEnter(this);
|
1680
1661
|
ABSL_TSAN_MUTEX_POST_LOCK(
|
1681
1662
|
this, __tsan_mutex_read_lock | __tsan_mutex_try_lock, 0);
|
1682
1663
|
return true;
|
1683
1664
|
}
|
1684
|
-
loop_limit--;
|
1685
|
-
v = mu_.load(std::memory_order_relaxed);
|
1686
1665
|
}
|
1687
|
-
if ((v & kMuEvent)
|
1688
|
-
|
1689
|
-
|
1690
|
-
|
1691
|
-
|
1692
|
-
|
1693
|
-
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
|
1700
|
-
|
1701
|
-
|
1702
|
-
|
1703
|
-
|
1666
|
+
if (ABSL_PREDICT_TRUE((v & kMuEvent) == 0)) {
|
1667
|
+
ABSL_TSAN_MUTEX_POST_LOCK(this,
|
1668
|
+
__tsan_mutex_read_lock | __tsan_mutex_try_lock |
|
1669
|
+
__tsan_mutex_try_lock_failed,
|
1670
|
+
0);
|
1671
|
+
return false;
|
1672
|
+
}
|
1673
|
+
// we're recording events
|
1674
|
+
return ReaderTryLockSlow();
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
ABSL_ATTRIBUTE_NOINLINE bool Mutex::ReaderTryLockSlow() {
|
1678
|
+
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1679
|
+
#if defined(__clang__)
|
1680
|
+
#pragma nounroll
|
1681
|
+
#endif
|
1682
|
+
for (int loop_limit = 5; loop_limit != 0; loop_limit--) {
|
1683
|
+
if ((v & kShared->slow_need_zero) == 0 &&
|
1684
|
+
mu_.compare_exchange_strong(v, (kMuReader | v) + kMuOne,
|
1685
|
+
std::memory_order_acquire,
|
1686
|
+
std::memory_order_relaxed)) {
|
1687
|
+
DebugOnlyLockEnter(this);
|
1688
|
+
PostSynchEvent(this, SYNCH_EV_READERTRYLOCK_SUCCESS);
|
1689
|
+
ABSL_TSAN_MUTEX_POST_LOCK(
|
1690
|
+
this, __tsan_mutex_read_lock | __tsan_mutex_try_lock, 0);
|
1691
|
+
return true;
|
1704
1692
|
}
|
1705
1693
|
}
|
1694
|
+
PostSynchEvent(this, SYNCH_EV_READERTRYLOCK_FAILED);
|
1706
1695
|
ABSL_TSAN_MUTEX_POST_LOCK(this,
|
1707
1696
|
__tsan_mutex_read_lock | __tsan_mutex_try_lock |
|
1708
1697
|
__tsan_mutex_try_lock_failed,
|
@@ -1723,7 +1712,7 @@ void Mutex::Unlock() {
|
|
1723
1712
|
// should_try_cas is whether we'll try a compare-and-swap immediately.
|
1724
1713
|
// NOTE: optimized out when kDebugMode is false.
|
1725
1714
|
bool should_try_cas = ((v & (kMuEvent | kMuWriter)) == kMuWriter &&
|
1726
|
-
|
1715
|
+
(v & (kMuWait | kMuDesig)) != kMuWait);
|
1727
1716
|
// But, we can use an alternate computation of it, that compilers
|
1728
1717
|
// currently don't find on their own. When that changes, this function
|
1729
1718
|
// can be simplified.
|
@@ -1740,10 +1729,9 @@ void Mutex::Unlock() {
|
|
1740
1729
|
static_cast<long long>(v), static_cast<long long>(x),
|
1741
1730
|
static_cast<long long>(y));
|
1742
1731
|
}
|
1743
|
-
if (x < y &&
|
1744
|
-
|
1745
|
-
|
1746
|
-
std::memory_order_relaxed)) {
|
1732
|
+
if (x < y && mu_.compare_exchange_strong(v, v & ~(kMuWrWait | kMuWriter),
|
1733
|
+
std::memory_order_release,
|
1734
|
+
std::memory_order_relaxed)) {
|
1747
1735
|
// fast writer release (writer with no waiters or with designated waker)
|
1748
1736
|
} else {
|
1749
1737
|
this->UnlockSlow(nullptr /*no waitp*/); // take slow path
|
@@ -1753,7 +1741,7 @@ void Mutex::Unlock() {
|
|
1753
1741
|
|
1754
1742
|
// Requires v to represent a reader-locked state.
|
1755
1743
|
static bool ExactlyOneReader(intptr_t v) {
|
1756
|
-
assert((v & (kMuWriter|kMuReader)) == kMuReader);
|
1744
|
+
assert((v & (kMuWriter | kMuReader)) == kMuReader);
|
1757
1745
|
assert((v & kMuHigh) != 0);
|
1758
1746
|
// The more straightforward "(v & kMuHigh) == kMuOne" also works, but
|
1759
1747
|
// on some architectures the following generates slightly smaller code.
|
@@ -1766,18 +1754,21 @@ void Mutex::ReaderUnlock() {
|
|
1766
1754
|
ABSL_TSAN_MUTEX_PRE_UNLOCK(this, __tsan_mutex_read_lock);
|
1767
1755
|
DebugOnlyLockLeave(this);
|
1768
1756
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1769
|
-
assert((v & (kMuWriter|kMuReader)) == kMuReader);
|
1770
|
-
|
1757
|
+
assert((v & (kMuWriter | kMuReader)) == kMuReader);
|
1758
|
+
for (;;) {
|
1759
|
+
if (ABSL_PREDICT_FALSE((v & (kMuReader | kMuWait | kMuEvent)) !=
|
1760
|
+
kMuReader)) {
|
1761
|
+
this->UnlockSlow(nullptr /*no waitp*/); // take slow path
|
1762
|
+
break;
|
1763
|
+
}
|
1771
1764
|
// fast reader release (reader with no waiters)
|
1772
|
-
intptr_t clear = ExactlyOneReader(v) ? kMuReader|kMuOne : kMuOne;
|
1773
|
-
if (
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
return;
|
1765
|
+
intptr_t clear = ExactlyOneReader(v) ? kMuReader | kMuOne : kMuOne;
|
1766
|
+
if (ABSL_PREDICT_TRUE(
|
1767
|
+
mu_.compare_exchange_strong(v, v - clear, std::memory_order_release,
|
1768
|
+
std::memory_order_relaxed))) {
|
1769
|
+
break;
|
1778
1770
|
}
|
1779
1771
|
}
|
1780
|
-
this->UnlockSlow(nullptr /*no waitp*/); // take slow path
|
1781
1772
|
ABSL_TSAN_MUTEX_POST_UNLOCK(this, __tsan_mutex_read_lock);
|
1782
1773
|
}
|
1783
1774
|
|
@@ -1810,15 +1801,31 @@ static intptr_t IgnoreWaitingWritersMask(int flag) {
|
|
1810
1801
|
}
|
1811
1802
|
|
1812
1803
|
// Internal version of LockWhen(). See LockSlowWithDeadline()
|
1813
|
-
ABSL_ATTRIBUTE_NOINLINE void Mutex::LockSlow(MuHow how, const Condition
|
1804
|
+
ABSL_ATTRIBUTE_NOINLINE void Mutex::LockSlow(MuHow how, const Condition* cond,
|
1814
1805
|
int flags) {
|
1806
|
+
// Note: we specifically initialize spinloop_iterations after the first use
|
1807
|
+
// in TryAcquireWithSpinning so that Lock function does not have any non-tail
|
1808
|
+
// calls and consequently a stack frame. It's fine to have spinloop_iterations
|
1809
|
+
// uninitialized (meaning no spinning) in all initial uncontended Lock calls
|
1810
|
+
// and in the first contended call. After that we will have
|
1811
|
+
// spinloop_iterations properly initialized.
|
1812
|
+
if (ABSL_PREDICT_FALSE(
|
1813
|
+
globals.spinloop_iterations.load(std::memory_order_relaxed) == 0)) {
|
1814
|
+
if (absl::base_internal::NumCPUs() > 1) {
|
1815
|
+
// If this is multiprocessor, allow spinning.
|
1816
|
+
globals.spinloop_iterations.store(1500, std::memory_order_relaxed);
|
1817
|
+
} else {
|
1818
|
+
// If this a uniprocessor, only yield/sleep.
|
1819
|
+
globals.spinloop_iterations.store(-1, std::memory_order_relaxed);
|
1820
|
+
}
|
1821
|
+
}
|
1815
1822
|
ABSL_RAW_CHECK(
|
1816
1823
|
this->LockSlowWithDeadline(how, cond, KernelTimeout::Never(), flags),
|
1817
1824
|
"condition untrue on return from LockSlow");
|
1818
1825
|
}
|
1819
1826
|
|
1820
1827
|
// Compute cond->Eval() and tell race detectors that we do it under mutex mu.
|
1821
|
-
static inline bool EvalConditionAnnotated(const Condition
|
1828
|
+
static inline bool EvalConditionAnnotated(const Condition* cond, Mutex* mu,
|
1822
1829
|
bool locking, bool trylock,
|
1823
1830
|
bool read_lock) {
|
1824
1831
|
// Delicate annotation dance.
|
@@ -1868,7 +1875,7 @@ static inline bool EvalConditionAnnotated(const Condition *cond, Mutex *mu,
|
|
1868
1875
|
// tsan). As the result there is no tsan-visible synchronization between the
|
1869
1876
|
// addition and this thread. So if we would enable race detection here,
|
1870
1877
|
// it would race with the predicate initialization.
|
1871
|
-
static inline bool EvalConditionIgnored(Mutex
|
1878
|
+
static inline bool EvalConditionIgnored(Mutex* mu, const Condition* cond) {
|
1872
1879
|
// Memory accesses are already ignored inside of lock/unlock operations,
|
1873
1880
|
// but synchronization operations are also ignored. When we evaluate the
|
1874
1881
|
// predicate we must ignore only memory accesses but not synchronization,
|
@@ -1893,7 +1900,7 @@ static inline bool EvalConditionIgnored(Mutex *mu, const Condition *cond) {
|
|
1893
1900
|
// obstruct this call
|
1894
1901
|
// - kMuIsCond indicates that this is a conditional acquire (condition variable,
|
1895
1902
|
// Await, LockWhen) so contention profiling should be suppressed.
|
1896
|
-
bool Mutex::LockSlowWithDeadline(MuHow how, const Condition
|
1903
|
+
bool Mutex::LockSlowWithDeadline(MuHow how, const Condition* cond,
|
1897
1904
|
KernelTimeout t, int flags) {
|
1898
1905
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1899
1906
|
bool unlock = false;
|
@@ -1910,10 +1917,10 @@ bool Mutex::LockSlowWithDeadline(MuHow how, const Condition *cond,
|
|
1910
1917
|
}
|
1911
1918
|
unlock = true;
|
1912
1919
|
}
|
1913
|
-
SynchWaitParams waitp(
|
1914
|
-
|
1915
|
-
|
1916
|
-
if (
|
1920
|
+
SynchWaitParams waitp(how, cond, t, nullptr /*no cvmu*/,
|
1921
|
+
Synch_GetPerThreadAnnotated(this),
|
1922
|
+
nullptr /*no cv_word*/);
|
1923
|
+
if (cond != nullptr) {
|
1917
1924
|
flags |= kMuIsCond;
|
1918
1925
|
}
|
1919
1926
|
if (unlock) {
|
@@ -1953,20 +1960,20 @@ static void CheckForMutexCorruption(intptr_t v, const char* label) {
|
|
1953
1960
|
if (ABSL_PREDICT_TRUE((w & (w << 3) & (kMuWriter | kMuWrWait)) == 0)) return;
|
1954
1961
|
RAW_CHECK_FMT((v & (kMuWriter | kMuReader)) != (kMuWriter | kMuReader),
|
1955
1962
|
"%s: Mutex corrupt: both reader and writer lock held: %p",
|
1956
|
-
label, reinterpret_cast<void
|
1963
|
+
label, reinterpret_cast<void*>(v));
|
1957
1964
|
RAW_CHECK_FMT((v & (kMuWait | kMuWrWait)) != kMuWrWait,
|
1958
|
-
"%s: Mutex corrupt: waiting writer with no waiters: %p",
|
1959
|
-
|
1965
|
+
"%s: Mutex corrupt: waiting writer with no waiters: %p", label,
|
1966
|
+
reinterpret_cast<void*>(v));
|
1960
1967
|
assert(false);
|
1961
1968
|
}
|
1962
1969
|
|
1963
|
-
void Mutex::LockSlowLoop(SynchWaitParams
|
1970
|
+
void Mutex::LockSlowLoop(SynchWaitParams* waitp, int flags) {
|
1964
1971
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
1965
1972
|
int c = 0;
|
1966
1973
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
1967
1974
|
if ((v & kMuEvent) != 0) {
|
1968
|
-
PostSynchEvent(
|
1969
|
-
|
1975
|
+
PostSynchEvent(
|
1976
|
+
this, waitp->how == kExclusive ? SYNCH_EV_LOCK : SYNCH_EV_READERLOCK);
|
1970
1977
|
}
|
1971
1978
|
ABSL_RAW_CHECK(
|
1972
1979
|
waitp->thread->waitp == nullptr || waitp->thread->suppress_fatal_errors,
|
@@ -1991,11 +1998,11 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
1991
1998
|
flags |= kMuHasBlocked;
|
1992
1999
|
c = 0;
|
1993
2000
|
}
|
1994
|
-
} else {
|
2001
|
+
} else { // need to access waiter list
|
1995
2002
|
bool dowait = false;
|
1996
|
-
if ((v & (kMuSpin|kMuWait)) == 0) {
|
2003
|
+
if ((v & (kMuSpin | kMuWait)) == 0) { // no waiters
|
1997
2004
|
// This thread tries to become the one and only waiter.
|
1998
|
-
PerThreadSynch
|
2005
|
+
PerThreadSynch* new_h = Enqueue(nullptr, waitp, v, flags);
|
1999
2006
|
intptr_t nv =
|
2000
2007
|
(v & ClearDesignatedWakerMask(flags & kMuHasBlocked) & kMuLow) |
|
2001
2008
|
kMuWait;
|
@@ -2007,7 +2014,7 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2007
2014
|
v, reinterpret_cast<intptr_t>(new_h) | nv,
|
2008
2015
|
std::memory_order_release, std::memory_order_relaxed)) {
|
2009
2016
|
dowait = true;
|
2010
|
-
} else {
|
2017
|
+
} else { // attempted Enqueue() failed
|
2011
2018
|
// zero out the waitp field set by Enqueue()
|
2012
2019
|
waitp->thread->waitp = nullptr;
|
2013
2020
|
}
|
@@ -2020,9 +2027,9 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2020
2027
|
(v & ClearDesignatedWakerMask(flags & kMuHasBlocked)) |
|
2021
2028
|
kMuSpin | kMuReader,
|
2022
2029
|
std::memory_order_acquire, std::memory_order_relaxed)) {
|
2023
|
-
PerThreadSynch
|
2024
|
-
h->readers += kMuOne;
|
2025
|
-
do {
|
2030
|
+
PerThreadSynch* h = GetPerThreadSynch(v);
|
2031
|
+
h->readers += kMuOne; // inc reader count in waiter
|
2032
|
+
do { // release spinlock
|
2026
2033
|
v = mu_.load(std::memory_order_relaxed);
|
2027
2034
|
} while (!mu_.compare_exchange_weak(v, (v & ~kMuSpin) | kMuReader,
|
2028
2035
|
std::memory_order_release,
|
@@ -2032,7 +2039,7 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2032
2039
|
waitp->how == kShared)) {
|
2033
2040
|
break; // we timed out, or condition true, so return
|
2034
2041
|
}
|
2035
|
-
this->UnlockSlow(waitp);
|
2042
|
+
this->UnlockSlow(waitp); // got lock but condition false
|
2036
2043
|
this->Block(waitp->thread);
|
2037
2044
|
flags |= kMuHasBlocked;
|
2038
2045
|
c = 0;
|
@@ -2043,18 +2050,19 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2043
2050
|
(v & ClearDesignatedWakerMask(flags & kMuHasBlocked)) |
|
2044
2051
|
kMuSpin | kMuWait,
|
2045
2052
|
std::memory_order_acquire, std::memory_order_relaxed)) {
|
2046
|
-
PerThreadSynch
|
2047
|
-
PerThreadSynch
|
2053
|
+
PerThreadSynch* h = GetPerThreadSynch(v);
|
2054
|
+
PerThreadSynch* new_h = Enqueue(h, waitp, v, flags);
|
2048
2055
|
intptr_t wr_wait = 0;
|
2049
2056
|
ABSL_RAW_CHECK(new_h != nullptr, "Enqueue to list failed");
|
2050
2057
|
if (waitp->how == kExclusive && (v & kMuReader) != 0) {
|
2051
|
-
wr_wait = kMuWrWait;
|
2058
|
+
wr_wait = kMuWrWait; // give priority to a waiting writer
|
2052
2059
|
}
|
2053
|
-
do {
|
2060
|
+
do { // release spinlock
|
2054
2061
|
v = mu_.load(std::memory_order_relaxed);
|
2055
2062
|
} while (!mu_.compare_exchange_weak(
|
2056
|
-
v,
|
2057
|
-
|
2063
|
+
v,
|
2064
|
+
(v & (kMuLow & ~kMuSpin)) | kMuWait | wr_wait |
|
2065
|
+
reinterpret_cast<intptr_t>(new_h),
|
2058
2066
|
std::memory_order_release, std::memory_order_relaxed));
|
2059
2067
|
dowait = true;
|
2060
2068
|
}
|
@@ -2074,9 +2082,9 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2074
2082
|
waitp->thread->waitp == nullptr || waitp->thread->suppress_fatal_errors,
|
2075
2083
|
"detected illegal recursion into Mutex code");
|
2076
2084
|
if ((v & kMuEvent) != 0) {
|
2077
|
-
PostSynchEvent(this,
|
2078
|
-
|
2079
|
-
|
2085
|
+
PostSynchEvent(this, waitp->how == kExclusive
|
2086
|
+
? SYNCH_EV_LOCK_RETURNING
|
2087
|
+
: SYNCH_EV_READERLOCK_RETURNING);
|
2080
2088
|
}
|
2081
2089
|
}
|
2082
2090
|
|
@@ -2085,28 +2093,27 @@ void Mutex::LockSlowLoop(SynchWaitParams *waitp, int flags) {
|
|
2085
2093
|
// which holds the lock but is not runnable because its condition is false
|
2086
2094
|
// or it is in the process of blocking on a condition variable; it must requeue
|
2087
2095
|
// itself on the mutex/condvar to wait for its condition to become true.
|
2088
|
-
ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams
|
2096
|
+
ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams* waitp) {
|
2089
2097
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
2090
2098
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
2091
2099
|
this->AssertReaderHeld();
|
2092
2100
|
CheckForMutexCorruption(v, "Unlock");
|
2093
2101
|
if ((v & kMuEvent) != 0) {
|
2094
|
-
PostSynchEvent(
|
2095
|
-
|
2102
|
+
PostSynchEvent(
|
2103
|
+
this, (v & kMuWriter) != 0 ? SYNCH_EV_UNLOCK : SYNCH_EV_READERUNLOCK);
|
2096
2104
|
}
|
2097
2105
|
int c = 0;
|
2098
2106
|
// the waiter under consideration to wake, or zero
|
2099
|
-
PerThreadSynch
|
2107
|
+
PerThreadSynch* w = nullptr;
|
2100
2108
|
// the predecessor to w or zero
|
2101
|
-
PerThreadSynch
|
2109
|
+
PerThreadSynch* pw = nullptr;
|
2102
2110
|
// head of the list searched previously, or zero
|
2103
|
-
PerThreadSynch
|
2111
|
+
PerThreadSynch* old_h = nullptr;
|
2104
2112
|
// a condition that's known to be false.
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
// (starvation avoidance)
|
2113
|
+
PerThreadSynch* wake_list = kPerThreadSynchNull; // list of threads to wake
|
2114
|
+
intptr_t wr_wait = 0; // set to kMuWrWait if we wake a reader and a
|
2115
|
+
// later writer could have acquired the lock
|
2116
|
+
// (starvation avoidance)
|
2110
2117
|
ABSL_RAW_CHECK(waitp == nullptr || waitp->thread->waitp == nullptr ||
|
2111
2118
|
waitp->thread->suppress_fatal_errors,
|
2112
2119
|
"detected illegal recursion into Mutex code");
|
@@ -2126,8 +2133,7 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2126
2133
|
} else if ((v & (kMuReader | kMuWait)) == kMuReader && waitp == nullptr) {
|
2127
2134
|
// fast reader release (reader with no waiters)
|
2128
2135
|
intptr_t clear = ExactlyOneReader(v) ? kMuReader | kMuOne : kMuOne;
|
2129
|
-
if (mu_.compare_exchange_strong(v, v - clear,
|
2130
|
-
std::memory_order_release,
|
2136
|
+
if (mu_.compare_exchange_strong(v, v - clear, std::memory_order_release,
|
2131
2137
|
std::memory_order_relaxed)) {
|
2132
2138
|
return;
|
2133
2139
|
}
|
@@ -2135,16 +2141,16 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2135
2141
|
mu_.compare_exchange_strong(v, v | kMuSpin,
|
2136
2142
|
std::memory_order_acquire,
|
2137
2143
|
std::memory_order_relaxed)) {
|
2138
|
-
if ((v & kMuWait) == 0) {
|
2144
|
+
if ((v & kMuWait) == 0) { // no one to wake
|
2139
2145
|
intptr_t nv;
|
2140
2146
|
bool do_enqueue = true; // always Enqueue() the first time
|
2141
2147
|
ABSL_RAW_CHECK(waitp != nullptr,
|
2142
2148
|
"UnlockSlow is confused"); // about to sleep
|
2143
|
-
do {
|
2149
|
+
do { // must loop to release spinlock as reader count may change
|
2144
2150
|
v = mu_.load(std::memory_order_relaxed);
|
2145
2151
|
// decrement reader count if there are readers
|
2146
|
-
intptr_t new_readers = (v >= kMuOne)?
|
2147
|
-
PerThreadSynch
|
2152
|
+
intptr_t new_readers = (v >= kMuOne) ? v - kMuOne : v;
|
2153
|
+
PerThreadSynch* new_h = nullptr;
|
2148
2154
|
if (do_enqueue) {
|
2149
2155
|
// If we are enqueuing on a CondVar (waitp->cv_word != nullptr) then
|
2150
2156
|
// we must not retry here. The initial attempt will always have
|
@@ -2168,21 +2174,20 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2168
2174
|
}
|
2169
2175
|
// release spinlock & our lock; retry if reader-count changed
|
2170
2176
|
// (writer count cannot change since we hold lock)
|
2171
|
-
} while (!mu_.compare_exchange_weak(v, nv,
|
2172
|
-
std::memory_order_release,
|
2177
|
+
} while (!mu_.compare_exchange_weak(v, nv, std::memory_order_release,
|
2173
2178
|
std::memory_order_relaxed));
|
2174
2179
|
break;
|
2175
2180
|
}
|
2176
2181
|
|
2177
2182
|
// There are waiters.
|
2178
2183
|
// Set h to the head of the circular waiter list.
|
2179
|
-
PerThreadSynch
|
2184
|
+
PerThreadSynch* h = GetPerThreadSynch(v);
|
2180
2185
|
if ((v & kMuReader) != 0 && (h->readers & kMuHigh) > kMuOne) {
|
2181
2186
|
// a reader but not the last
|
2182
|
-
h->readers -= kMuOne;
|
2183
|
-
intptr_t nv = v;
|
2187
|
+
h->readers -= kMuOne; // release our lock
|
2188
|
+
intptr_t nv = v; // normally just release spinlock
|
2184
2189
|
if (waitp != nullptr) { // but waitp!=nullptr => must queue ourselves
|
2185
|
-
PerThreadSynch
|
2190
|
+
PerThreadSynch* new_h = Enqueue(h, waitp, v, kMuIsCond);
|
2186
2191
|
ABSL_RAW_CHECK(new_h != nullptr,
|
2187
2192
|
"waiters disappeared during Enqueue()!");
|
2188
2193
|
nv &= kMuLow;
|
@@ -2200,17 +2205,17 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2200
2205
|
|
2201
2206
|
// The lock is becoming free, and there's a waiter
|
2202
2207
|
if (old_h != nullptr &&
|
2203
|
-
!old_h->may_skip) {
|
2204
|
-
old_h->may_skip = true;
|
2208
|
+
!old_h->may_skip) { // we used old_h as a terminator
|
2209
|
+
old_h->may_skip = true; // allow old_h to skip once more
|
2205
2210
|
ABSL_RAW_CHECK(old_h->skip == nullptr, "illegal skip from head");
|
2206
2211
|
if (h != old_h && MuEquivalentWaiter(old_h, old_h->next)) {
|
2207
2212
|
old_h->skip = old_h->next; // old_h not head & can skip to successor
|
2208
2213
|
}
|
2209
2214
|
}
|
2210
2215
|
if (h->next->waitp->how == kExclusive &&
|
2211
|
-
|
2216
|
+
h->next->waitp->cond == nullptr) {
|
2212
2217
|
// easy case: writer with no condition; no need to search
|
2213
|
-
pw = h;
|
2218
|
+
pw = h; // wake w, the successor of h (=pw)
|
2214
2219
|
w = h->next;
|
2215
2220
|
w->wake = true;
|
2216
2221
|
// We are waking up a writer. This writer may be racing against
|
@@ -2233,13 +2238,13 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2233
2238
|
// waiter has a condition or is a reader. We avoid searching over
|
2234
2239
|
// waiters we've searched on previous iterations by starting at
|
2235
2240
|
// old_h if it's set. If old_h==h, there's no one to wakeup at all.
|
2236
|
-
if (old_h == h) {
|
2237
|
-
|
2238
|
-
intptr_t nv = (v & ~(kMuReader|kMuWriter|kMuWrWait));
|
2241
|
+
if (old_h == h) { // we've searched before, and nothing's new
|
2242
|
+
// so there's no one to wake.
|
2243
|
+
intptr_t nv = (v & ~(kMuReader | kMuWriter | kMuWrWait));
|
2239
2244
|
h->readers = 0;
|
2240
|
-
h->maybe_unlocking = false;
|
2241
|
-
if (waitp != nullptr) {
|
2242
|
-
PerThreadSynch
|
2245
|
+
h->maybe_unlocking = false; // finished unlocking
|
2246
|
+
if (waitp != nullptr) { // we must queue ourselves and sleep
|
2247
|
+
PerThreadSynch* new_h = Enqueue(h, waitp, v, kMuIsCond);
|
2243
2248
|
nv &= kMuLow;
|
2244
2249
|
if (new_h != nullptr) {
|
2245
2250
|
nv |= kMuWait | reinterpret_cast<intptr_t>(new_h);
|
@@ -2253,12 +2258,12 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2253
2258
|
}
|
2254
2259
|
|
2255
2260
|
// set up to walk the list
|
2256
|
-
PerThreadSynch
|
2257
|
-
PerThreadSynch
|
2261
|
+
PerThreadSynch* w_walk; // current waiter during list walk
|
2262
|
+
PerThreadSynch* pw_walk; // previous waiter during list walk
|
2258
2263
|
if (old_h != nullptr) { // we've searched up to old_h before
|
2259
2264
|
pw_walk = old_h;
|
2260
2265
|
w_walk = old_h->next;
|
2261
|
-
} else {
|
2266
|
+
} else { // no prior search, start at beginning
|
2262
2267
|
pw_walk =
|
2263
2268
|
nullptr; // h->next's predecessor may change; don't record it
|
2264
2269
|
w_walk = h->next;
|
@@ -2284,36 +2289,32 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2284
2289
|
// to walk the path from w_walk to h inclusive. (TryRemove() can remove
|
2285
2290
|
// a waiter anywhere, but it acquires both the spinlock and the Mutex)
|
2286
2291
|
|
2287
|
-
old_h = h;
|
2292
|
+
old_h = h; // remember we searched to here
|
2288
2293
|
|
2289
2294
|
// Walk the path upto and including h looking for waiters we can wake.
|
2290
2295
|
while (pw_walk != h) {
|
2291
2296
|
w_walk->wake = false;
|
2292
2297
|
if (w_walk->waitp->cond ==
|
2293
2298
|
nullptr || // no condition => vacuously true OR
|
2294
|
-
|
2295
|
-
|
2296
|
-
// is in fact true
|
2297
|
-
EvalConditionIgnored(this, w_walk->waitp->cond))) {
|
2299
|
+
// this thread's condition is true
|
2300
|
+
EvalConditionIgnored(this, w_walk->waitp->cond)) {
|
2298
2301
|
if (w == nullptr) {
|
2299
|
-
w_walk->wake = true;
|
2302
|
+
w_walk->wake = true; // can wake this waiter
|
2300
2303
|
w = w_walk;
|
2301
2304
|
pw = pw_walk;
|
2302
2305
|
if (w_walk->waitp->how == kExclusive) {
|
2303
2306
|
wr_wait = kMuWrWait;
|
2304
|
-
break;
|
2307
|
+
break; // bail if waking this writer
|
2305
2308
|
}
|
2306
2309
|
} else if (w_walk->waitp->how == kShared) { // wake if a reader
|
2307
2310
|
w_walk->wake = true;
|
2308
|
-
} else {
|
2311
|
+
} else { // writer with true condition
|
2309
2312
|
wr_wait = kMuWrWait;
|
2310
2313
|
}
|
2311
|
-
} else { // can't wake; condition false
|
2312
|
-
known_false = w_walk->waitp->cond; // remember last false condition
|
2313
2314
|
}
|
2314
|
-
if (w_walk->wake) {
|
2315
|
-
pw_walk = w_walk;
|
2316
|
-
} else {
|
2315
|
+
if (w_walk->wake) { // we're waking reader w_walk
|
2316
|
+
pw_walk = w_walk; // don't skip similar waiters
|
2317
|
+
} else { // not waking; skip as much as possible
|
2317
2318
|
pw_walk = Skip(w_walk);
|
2318
2319
|
}
|
2319
2320
|
// If pw_walk == h, then load of pw_walk->next can race with
|
@@ -2340,8 +2341,8 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2340
2341
|
h = DequeueAllWakeable(h, pw, &wake_list);
|
2341
2342
|
|
2342
2343
|
intptr_t nv = (v & kMuEvent) | kMuDesig;
|
2343
|
-
|
2344
|
-
|
2344
|
+
// assume no waiters left,
|
2345
|
+
// set kMuDesig for INV1a
|
2345
2346
|
|
2346
2347
|
if (waitp != nullptr) { // we must queue ourselves and sleep
|
2347
2348
|
h = Enqueue(h, waitp, v, kMuIsCond);
|
@@ -2354,7 +2355,7 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2354
2355
|
|
2355
2356
|
if (h != nullptr) { // there are waiters left
|
2356
2357
|
h->readers = 0;
|
2357
|
-
h->maybe_unlocking = false;
|
2358
|
+
h->maybe_unlocking = false; // finished unlocking
|
2358
2359
|
nv |= wr_wait | kMuWait | reinterpret_cast<intptr_t>(h);
|
2359
2360
|
}
|
2360
2361
|
|
@@ -2365,12 +2366,12 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2365
2366
|
}
|
2366
2367
|
// aggressive here; no one can proceed till we do
|
2367
2368
|
c = synchronization_internal::MutexDelay(c, AGGRESSIVE);
|
2368
|
-
}
|
2369
|
+
} // end of for(;;)-loop
|
2369
2370
|
|
2370
2371
|
if (wake_list != kPerThreadSynchNull) {
|
2371
2372
|
int64_t total_wait_cycles = 0;
|
2372
2373
|
int64_t max_wait_cycles = 0;
|
2373
|
-
int64_t now =
|
2374
|
+
int64_t now = CycleClock::Now();
|
2374
2375
|
do {
|
2375
2376
|
// Profile lock contention events only if the waiter was trying to acquire
|
2376
2377
|
// the lock, not waiting on a condition variable or Condition.
|
@@ -2382,7 +2383,7 @@ ABSL_ATTRIBUTE_NOINLINE void Mutex::UnlockSlow(SynchWaitParams *waitp) {
|
|
2382
2383
|
wake_list->waitp->contention_start_cycles = now;
|
2383
2384
|
wake_list->waitp->should_submit_contention_data = true;
|
2384
2385
|
}
|
2385
|
-
wake_list = Wakeup(wake_list);
|
2386
|
+
wake_list = Wakeup(wake_list); // wake waiters
|
2386
2387
|
} while (wake_list != kPerThreadSynchNull);
|
2387
2388
|
if (total_wait_cycles > 0) {
|
2388
2389
|
mutex_tracer("slow release", this, total_wait_cycles);
|
@@ -2410,15 +2411,15 @@ void Mutex::Trans(MuHow how) {
|
|
2410
2411
|
// condition variable. If this mutex is free, we simply wake the thread.
|
2411
2412
|
// It will later acquire the mutex with high probability. Otherwise, we
|
2412
2413
|
// enqueue thread w on this mutex.
|
2413
|
-
void Mutex::Fer(PerThreadSynch
|
2414
|
+
void Mutex::Fer(PerThreadSynch* w) {
|
2414
2415
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
2415
2416
|
int c = 0;
|
2416
2417
|
ABSL_RAW_CHECK(w->waitp->cond == nullptr,
|
2417
2418
|
"Mutex::Fer while waiting on Condition");
|
2418
|
-
ABSL_RAW_CHECK(!w->waitp->timeout.has_timeout(),
|
2419
|
-
"Mutex::Fer while in timed wait");
|
2420
2419
|
ABSL_RAW_CHECK(w->waitp->cv_word == nullptr,
|
2421
2420
|
"Mutex::Fer with pending CondVar queueing");
|
2421
|
+
// The CondVar timeout is not relevant for the Mutex wait.
|
2422
|
+
w->waitp->timeout = {};
|
2422
2423
|
for (;;) {
|
2423
2424
|
intptr_t v = mu_.load(std::memory_order_relaxed);
|
2424
2425
|
// Note: must not queue if the mutex is unlocked (nobody will wake it).
|
@@ -2435,9 +2436,10 @@ void Mutex::Fer(PerThreadSynch *w) {
|
|
2435
2436
|
IncrementSynchSem(this, w);
|
2436
2437
|
return;
|
2437
2438
|
} else {
|
2438
|
-
if ((v & (kMuSpin|kMuWait)) == 0) {
|
2439
|
+
if ((v & (kMuSpin | kMuWait)) == 0) { // no waiters
|
2439
2440
|
// This thread tries to become the one and only waiter.
|
2440
|
-
PerThreadSynch
|
2441
|
+
PerThreadSynch* new_h =
|
2442
|
+
Enqueue(nullptr, w->waitp, v, kMuIsCond | kMuIsFer);
|
2441
2443
|
ABSL_RAW_CHECK(new_h != nullptr,
|
2442
2444
|
"Enqueue failed"); // we must queue ourselves
|
2443
2445
|
if (mu_.compare_exchange_strong(
|
@@ -2447,8 +2449,8 @@ void Mutex::Fer(PerThreadSynch *w) {
|
|
2447
2449
|
}
|
2448
2450
|
} else if ((v & kMuSpin) == 0 &&
|
2449
2451
|
mu_.compare_exchange_strong(v, v | kMuSpin | kMuWait)) {
|
2450
|
-
PerThreadSynch
|
2451
|
-
PerThreadSynch
|
2452
|
+
PerThreadSynch* h = GetPerThreadSynch(v);
|
2453
|
+
PerThreadSynch* new_h = Enqueue(h, w->waitp, v, kMuIsCond | kMuIsFer);
|
2452
2454
|
ABSL_RAW_CHECK(new_h != nullptr,
|
2453
2455
|
"Enqueue failed"); // we must queue ourselves
|
2454
2456
|
do {
|
@@ -2467,19 +2469,18 @@ void Mutex::Fer(PerThreadSynch *w) {
|
|
2467
2469
|
|
2468
2470
|
void Mutex::AssertHeld() const {
|
2469
2471
|
if ((mu_.load(std::memory_order_relaxed) & kMuWriter) == 0) {
|
2470
|
-
SynchEvent
|
2472
|
+
SynchEvent* e = GetSynchEvent(this);
|
2471
2473
|
ABSL_RAW_LOG(FATAL, "thread should hold write lock on Mutex %p %s",
|
2472
|
-
static_cast<const void
|
2473
|
-
(e == nullptr ? "" : e->name));
|
2474
|
+
static_cast<const void*>(this), (e == nullptr ? "" : e->name));
|
2474
2475
|
}
|
2475
2476
|
}
|
2476
2477
|
|
2477
2478
|
void Mutex::AssertReaderHeld() const {
|
2478
2479
|
if ((mu_.load(std::memory_order_relaxed) & (kMuReader | kMuWriter)) == 0) {
|
2479
|
-
SynchEvent
|
2480
|
-
ABSL_RAW_LOG(
|
2481
|
-
|
2482
|
-
|
2480
|
+
SynchEvent* e = GetSynchEvent(this);
|
2481
|
+
ABSL_RAW_LOG(FATAL,
|
2482
|
+
"thread should hold at least a read lock on Mutex %p %s",
|
2483
|
+
static_cast<const void*>(this), (e == nullptr ? "" : e->name));
|
2483
2484
|
}
|
2484
2485
|
}
|
2485
2486
|
|
@@ -2490,42 +2491,38 @@ static const intptr_t kCvEvent = 0x0002L; // record events
|
|
2490
2491
|
static const intptr_t kCvLow = 0x0003L; // low order bits of CV
|
2491
2492
|
|
2492
2493
|
// Hack to make constant values available to gdb pretty printer
|
2493
|
-
enum {
|
2494
|
+
enum {
|
2495
|
+
kGdbCvSpin = kCvSpin,
|
2496
|
+
kGdbCvEvent = kCvEvent,
|
2497
|
+
kGdbCvLow = kCvLow,
|
2498
|
+
};
|
2494
2499
|
|
2495
2500
|
static_assert(PerThreadSynch::kAlignment > kCvLow,
|
2496
2501
|
"PerThreadSynch::kAlignment must be greater than kCvLow");
|
2497
2502
|
|
2498
|
-
void CondVar::EnableDebugLog(const char
|
2499
|
-
SynchEvent
|
2503
|
+
void CondVar::EnableDebugLog(const char* name) {
|
2504
|
+
SynchEvent* e = EnsureSynchEvent(&this->cv_, name, kCvEvent, kCvSpin);
|
2500
2505
|
e->log = true;
|
2501
2506
|
UnrefSynchEvent(e);
|
2502
2507
|
}
|
2503
2508
|
|
2504
|
-
CondVar::~CondVar() {
|
2505
|
-
if ((cv_.load(std::memory_order_relaxed) & kCvEvent) != 0) {
|
2506
|
-
ForgetSynchEvent(&this->cv_, kCvEvent, kCvSpin);
|
2507
|
-
}
|
2508
|
-
}
|
2509
|
-
|
2510
|
-
|
2511
2509
|
// Remove thread s from the list of waiters on this condition variable.
|
2512
|
-
void CondVar::Remove(PerThreadSynch
|
2510
|
+
void CondVar::Remove(PerThreadSynch* s) {
|
2513
2511
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
2514
2512
|
intptr_t v;
|
2515
2513
|
int c = 0;
|
2516
2514
|
for (v = cv_.load(std::memory_order_relaxed);;
|
2517
2515
|
v = cv_.load(std::memory_order_relaxed)) {
|
2518
2516
|
if ((v & kCvSpin) == 0 && // attempt to acquire spinlock
|
2519
|
-
cv_.compare_exchange_strong(v, v | kCvSpin,
|
2520
|
-
std::memory_order_acquire,
|
2517
|
+
cv_.compare_exchange_strong(v, v | kCvSpin, std::memory_order_acquire,
|
2521
2518
|
std::memory_order_relaxed)) {
|
2522
|
-
PerThreadSynch
|
2519
|
+
PerThreadSynch* h = reinterpret_cast<PerThreadSynch*>(v & ~kCvLow);
|
2523
2520
|
if (h != nullptr) {
|
2524
|
-
PerThreadSynch
|
2521
|
+
PerThreadSynch* w = h;
|
2525
2522
|
while (w->next != s && w->next != h) { // search for thread
|
2526
2523
|
w = w->next;
|
2527
2524
|
}
|
2528
|
-
if (w->next == s) {
|
2525
|
+
if (w->next == s) { // found thread; remove it
|
2529
2526
|
w->next = s->next;
|
2530
2527
|
if (h == s) {
|
2531
2528
|
h = (w == s) ? nullptr : w;
|
@@ -2534,7 +2531,7 @@ void CondVar::Remove(PerThreadSynch *s) {
|
|
2534
2531
|
s->state.store(PerThreadSynch::kAvailable, std::memory_order_release);
|
2535
2532
|
}
|
2536
2533
|
}
|
2537
|
-
|
2534
|
+
// release spinlock
|
2538
2535
|
cv_.store((v & kCvEvent) | reinterpret_cast<intptr_t>(h),
|
2539
2536
|
std::memory_order_release);
|
2540
2537
|
return;
|
@@ -2557,14 +2554,14 @@ void CondVar::Remove(PerThreadSynch *s) {
|
|
2557
2554
|
// variable queue just before the mutex is to be unlocked, and (most
|
2558
2555
|
// importantly) after any call to an external routine that might re-enter the
|
2559
2556
|
// mutex code.
|
2560
|
-
static void CondVarEnqueue(SynchWaitParams
|
2557
|
+
static void CondVarEnqueue(SynchWaitParams* waitp) {
|
2561
2558
|
// This thread might be transferred to the Mutex queue by Fer() when
|
2562
2559
|
// we are woken. To make sure that is what happens, Enqueue() doesn't
|
2563
2560
|
// call CondVarEnqueue() again but instead uses its normal code. We
|
2564
2561
|
// must do this before we queue ourselves so that cv_word will be null
|
2565
2562
|
// when seen by the dequeuer, who may wish immediately to requeue
|
2566
2563
|
// this thread on another queue.
|
2567
|
-
std::atomic<intptr_t
|
2564
|
+
std::atomic<intptr_t>* cv_word = waitp->cv_word;
|
2568
2565
|
waitp->cv_word = nullptr;
|
2569
2566
|
|
2570
2567
|
intptr_t v = cv_word->load(std::memory_order_relaxed);
|
@@ -2577,8 +2574,8 @@ static void CondVarEnqueue(SynchWaitParams *waitp) {
|
|
2577
2574
|
v = cv_word->load(std::memory_order_relaxed);
|
2578
2575
|
}
|
2579
2576
|
ABSL_RAW_CHECK(waitp->thread->waitp == nullptr, "waiting when shouldn't be");
|
2580
|
-
waitp->thread->waitp = waitp;
|
2581
|
-
PerThreadSynch
|
2577
|
+
waitp->thread->waitp = waitp; // prepare ourselves for waiting
|
2578
|
+
PerThreadSynch* h = reinterpret_cast<PerThreadSynch*>(v & ~kCvLow);
|
2582
2579
|
if (h == nullptr) { // add this thread to waiter list
|
2583
2580
|
waitp->thread->next = waitp->thread;
|
2584
2581
|
} else {
|
@@ -2591,8 +2588,8 @@ static void CondVarEnqueue(SynchWaitParams *waitp) {
|
|
2591
2588
|
std::memory_order_release);
|
2592
2589
|
}
|
2593
2590
|
|
2594
|
-
bool CondVar::WaitCommon(Mutex
|
2595
|
-
bool rc = false;
|
2591
|
+
bool CondVar::WaitCommon(Mutex* mutex, KernelTimeout t) {
|
2592
|
+
bool rc = false; // return value; true iff we timed-out
|
2596
2593
|
|
2597
2594
|
intptr_t mutex_v = mutex->mu_.load(std::memory_order_relaxed);
|
2598
2595
|
Mutex::MuHow mutex_how = ((mutex_v & kMuWriter) != 0) ? kExclusive : kShared;
|
@@ -2659,35 +2656,6 @@ bool CondVar::WaitCommon(Mutex *mutex, KernelTimeout t) {
|
|
2659
2656
|
return rc;
|
2660
2657
|
}
|
2661
2658
|
|
2662
|
-
bool CondVar::WaitWithTimeout(Mutex *mu, absl::Duration timeout) {
|
2663
|
-
return WaitWithDeadline(mu, DeadlineFromTimeout(timeout));
|
2664
|
-
}
|
2665
|
-
|
2666
|
-
bool CondVar::WaitWithDeadline(Mutex *mu, absl::Time deadline) {
|
2667
|
-
return WaitCommon(mu, KernelTimeout(deadline));
|
2668
|
-
}
|
2669
|
-
|
2670
|
-
void CondVar::Wait(Mutex *mu) {
|
2671
|
-
WaitCommon(mu, KernelTimeout::Never());
|
2672
|
-
}
|
2673
|
-
|
2674
|
-
// Wake thread w
|
2675
|
-
// If it was a timed wait, w will be waiting on w->cv
|
2676
|
-
// Otherwise, if it was not a Mutex mutex, w will be waiting on w->sem
|
2677
|
-
// Otherwise, w is transferred to the Mutex mutex via Mutex::Fer().
|
2678
|
-
void CondVar::Wakeup(PerThreadSynch *w) {
|
2679
|
-
if (w->waitp->timeout.has_timeout() || w->waitp->cvmu == nullptr) {
|
2680
|
-
// The waiting thread only needs to observe "w->state == kAvailable" to be
|
2681
|
-
// released, we must cache "cvmu" before clearing "next".
|
2682
|
-
Mutex *mu = w->waitp->cvmu;
|
2683
|
-
w->next = nullptr;
|
2684
|
-
w->state.store(PerThreadSynch::kAvailable, std::memory_order_release);
|
2685
|
-
Mutex::IncrementSynchSem(mu, w);
|
2686
|
-
} else {
|
2687
|
-
w->waitp->cvmu->Fer(w);
|
2688
|
-
}
|
2689
|
-
}
|
2690
|
-
|
2691
2659
|
void CondVar::Signal() {
|
2692
2660
|
SchedulingGuard::ScopedDisable disable_rescheduling;
|
2693
2661
|
ABSL_TSAN_MUTEX_PRE_SIGNAL(nullptr, 0);
|
@@ -2696,11 +2664,10 @@ void CondVar::Signal() {
|
|
2696
2664
|
for (v = cv_.load(std::memory_order_relaxed); v != 0;
|
2697
2665
|
v = cv_.load(std::memory_order_relaxed)) {
|
2698
2666
|
if ((v & kCvSpin) == 0 && // attempt to acquire spinlock
|
2699
|
-
cv_.compare_exchange_strong(v, v | kCvSpin,
|
2700
|
-
std::memory_order_acquire,
|
2667
|
+
cv_.compare_exchange_strong(v, v | kCvSpin, std::memory_order_acquire,
|
2701
2668
|
std::memory_order_relaxed)) {
|
2702
|
-
PerThreadSynch
|
2703
|
-
PerThreadSynch
|
2669
|
+
PerThreadSynch* h = reinterpret_cast<PerThreadSynch*>(v & ~kCvLow);
|
2670
|
+
PerThreadSynch* w = nullptr;
|
2704
2671
|
if (h != nullptr) { // remove first waiter
|
2705
2672
|
w = h->next;
|
2706
2673
|
if (w == h) {
|
@@ -2709,11 +2676,11 @@ void CondVar::Signal() {
|
|
2709
2676
|
h->next = w->next;
|
2710
2677
|
}
|
2711
2678
|
}
|
2712
|
-
|
2679
|
+
// release spinlock
|
2713
2680
|
cv_.store((v & kCvEvent) | reinterpret_cast<intptr_t>(h),
|
2714
2681
|
std::memory_order_release);
|
2715
2682
|
if (w != nullptr) {
|
2716
|
-
|
2683
|
+
w->waitp->cvmu->Fer(w); // wake waiter, if there was one
|
2717
2684
|
cond_var_tracer("Signal wakeup", this);
|
2718
2685
|
}
|
2719
2686
|
if ((v & kCvEvent) != 0) {
|
@@ -2728,7 +2695,7 @@ void CondVar::Signal() {
|
|
2728
2695
|
ABSL_TSAN_MUTEX_POST_SIGNAL(nullptr, 0);
|
2729
2696
|
}
|
2730
2697
|
|
2731
|
-
void CondVar::SignalAll
|
2698
|
+
void CondVar::SignalAll() {
|
2732
2699
|
ABSL_TSAN_MUTEX_PRE_SIGNAL(nullptr, 0);
|
2733
2700
|
intptr_t v;
|
2734
2701
|
int c = 0;
|
@@ -2742,14 +2709,14 @@ void CondVar::SignalAll () {
|
|
2742
2709
|
if ((v & kCvSpin) == 0 &&
|
2743
2710
|
cv_.compare_exchange_strong(v, v & kCvEvent, std::memory_order_acquire,
|
2744
2711
|
std::memory_order_relaxed)) {
|
2745
|
-
PerThreadSynch
|
2712
|
+
PerThreadSynch* h = reinterpret_cast<PerThreadSynch*>(v & ~kCvLow);
|
2746
2713
|
if (h != nullptr) {
|
2747
|
-
PerThreadSynch
|
2748
|
-
PerThreadSynch
|
2749
|
-
do {
|
2714
|
+
PerThreadSynch* w;
|
2715
|
+
PerThreadSynch* n = h->next;
|
2716
|
+
do { // for every thread, wake it up
|
2750
2717
|
w = n;
|
2751
2718
|
n = n->next;
|
2752
|
-
|
2719
|
+
w->waitp->cvmu->Fer(w);
|
2753
2720
|
} while (w != h);
|
2754
2721
|
cond_var_tracer("SignalAll wakeup", this);
|
2755
2722
|
}
|
@@ -2774,57 +2741,50 @@ void ReleasableMutexLock::Release() {
|
|
2774
2741
|
}
|
2775
2742
|
|
2776
2743
|
#ifdef ABSL_HAVE_THREAD_SANITIZER
|
2777
|
-
extern "C" void __tsan_read1(void
|
2744
|
+
extern "C" void __tsan_read1(void* addr);
|
2778
2745
|
#else
|
2779
2746
|
#define __tsan_read1(addr) // do nothing if TSan not enabled
|
2780
2747
|
#endif
|
2781
2748
|
|
2782
2749
|
// A function that just returns its argument, dereferenced
|
2783
|
-
static bool Dereference(void
|
2750
|
+
static bool Dereference(void* arg) {
|
2784
2751
|
// ThreadSanitizer does not instrument this file for memory accesses.
|
2785
2752
|
// This function dereferences a user variable that can participate
|
2786
2753
|
// in a data race, so we need to manually tell TSan about this memory access.
|
2787
2754
|
__tsan_read1(arg);
|
2788
|
-
return *(static_cast<bool
|
2755
|
+
return *(static_cast<bool*>(arg));
|
2789
2756
|
}
|
2790
2757
|
|
2791
2758
|
ABSL_CONST_INIT const Condition Condition::kTrue;
|
2792
2759
|
|
2793
|
-
Condition::Condition(bool (*func)(void
|
2794
|
-
: eval_(&CallVoidPtrFunction),
|
2795
|
-
arg_(arg) {
|
2760
|
+
Condition::Condition(bool (*func)(void*), void* arg)
|
2761
|
+
: eval_(&CallVoidPtrFunction), arg_(arg) {
|
2796
2762
|
static_assert(sizeof(&func) <= sizeof(callback_),
|
2797
2763
|
"An overlarge function pointer passed to Condition.");
|
2798
2764
|
StoreCallback(func);
|
2799
2765
|
}
|
2800
2766
|
|
2801
|
-
bool Condition::CallVoidPtrFunction(const Condition
|
2802
|
-
using FunctionPointer = bool (*)(void
|
2767
|
+
bool Condition::CallVoidPtrFunction(const Condition* c) {
|
2768
|
+
using FunctionPointer = bool (*)(void*);
|
2803
2769
|
FunctionPointer function_pointer;
|
2804
2770
|
std::memcpy(&function_pointer, c->callback_, sizeof(function_pointer));
|
2805
2771
|
return (*function_pointer)(c->arg_);
|
2806
2772
|
}
|
2807
2773
|
|
2808
|
-
Condition::Condition(const bool
|
2774
|
+
Condition::Condition(const bool* cond)
|
2809
2775
|
: eval_(CallVoidPtrFunction),
|
2810
2776
|
// const_cast is safe since Dereference does not modify arg
|
2811
|
-
arg_(const_cast<bool
|
2812
|
-
using FunctionPointer = bool (*)(void
|
2777
|
+
arg_(const_cast<bool*>(cond)) {
|
2778
|
+
using FunctionPointer = bool (*)(void*);
|
2813
2779
|
const FunctionPointer dereference = Dereference;
|
2814
2780
|
StoreCallback(dereference);
|
2815
2781
|
}
|
2816
2782
|
|
2817
|
-
bool Condition::Eval() const {
|
2818
|
-
// eval_ == null for kTrue
|
2819
|
-
return (this->eval_ == nullptr) || (*this->eval_)(this);
|
2820
|
-
}
|
2783
|
+
bool Condition::Eval() const { return (*this->eval_)(this); }
|
2821
2784
|
|
2822
|
-
bool Condition::GuaranteedEqual(const Condition
|
2823
|
-
|
2824
|
-
|
2825
|
-
return b == nullptr || b->eval_ == nullptr;
|
2826
|
-
} else if (b == nullptr || b->eval_ == nullptr) {
|
2827
|
-
return false;
|
2785
|
+
bool Condition::GuaranteedEqual(const Condition* a, const Condition* b) {
|
2786
|
+
if (a == nullptr || b == nullptr) {
|
2787
|
+
return a == b;
|
2828
2788
|
}
|
2829
2789
|
// Check equality of the representative fields.
|
2830
2790
|
return a->eval_ == b->eval_ && a->arg_ == b->arg_ &&
|