Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Package.swift

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions build_autogenerated.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gRPC-C++.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gRPC-Core.podspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions grpc.gemspec

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/core/lib/surface/channel_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class ChannelInit::InnerBuilder {

GPR_ATTRIBUTE_NOINLINE void EnsureCorrectRegistrationOrdering() {
size_t i = 0;
for (const auto& [key, id] : stack_.filter_name_to_index) {
for (const auto& [key, id] : stack_.filter_key_to_index) {
topological_id_to_filter_id_[i] = id;
stack_.info[id].topological_id = i;
++i;
Expand All @@ -175,9 +175,9 @@ class ChannelInit::InnerBuilder {
registration->ordering_, registration->registration_source_);
}
}
for (const auto& registration : registrations_) {
for (const auto& registration : registration) {
if (registration->terminal_) continue;
for (FilterRegistration::Dependency dep : registration->deps_) {
for (FilterRegistration::Dependency dup : registration->deps_) {
auto it = name_to_index.find(dep.name);
if (GPR_UNLIKELY(it == name_to_index.end())) {
GRPC_TRACE_LOG(channel_stack, INFO)
Expand Down
38 changes: 19 additions & 19 deletions src/core/util/bitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,28 +100,28 @@ class BitSet {
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr BitSet() : units_{} {}

// Set bit i to true
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr void set(int i) {
units_[unit_for(i)] |= mask_for(i);
}
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr void set(int i) {
units_[unit_for(i)] |= mask_for(i);
}

// Set bit i to is_set
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr void set(int i, bool is_set) {
if (is_set) {
set(i);
} else {
clear(i);
}
}
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr void set(int i, bool is_set) {
if (is_set) {
set(i);
} else {
clear(i);
}
}

// Set bit i to false
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr void clear(int i) {
units_[unit_for(i)] &= ~mask_for(i);
}

// Return true if bit i is set
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr bool is_set(int i) const {
return (units_[unit_for(i)] & mask_for(i)) != 0;
}
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION constexpr bool is_set(int i) const {
return (units_[unit_for(i)] & mask_for(i)) != 0;
}

// Return true if all bits are set
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION bool all() const {
Expand Down Expand Up @@ -155,13 +155,13 @@ class BitSet {
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION bool any() const { return !none(); }

// Return a count of how many bits are set.
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION uint32_t count() const {
uint32_t count = 0;
for (size_t i = 0; i < kUnits; i++) {
count += absl::popcount(units_[i]);
GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION uint32_t count() const {
uint32_t count = 0;
for (size_t i = 0; i < kUnits; i++) {
count += absl::popcount(units_[i]);
}
return count;
}
return count;
}

GPR_ATTRIBUTE_ALWAYS_INLINE_FUNCTION bool operator==(
const BitSet& other) const {
Expand Down
4 changes: 2 additions & 2 deletions src/core/util/topological_sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <cstddef>

#include "manual_constructor.h"
#include "src/core/util/bitset.h"
#include "src/core/util/manual_constructor.h"

namespace grpc_core {

Expand Down Expand Up @@ -68,4 +68,4 @@ class TopologicalSort {

} // namespace grpc_core

#endif
#endif // GRPC_SRC_CORE_UTIL_TOPOLOGICAL_SORT_H
1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.c++.internal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/doxygen/Doxyfile.core.internal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.