Craig Tiller
66ae0d5c08
Separate slices from mdelems for static data ( #27372 )
...
* separate slice into internal and refcount, with refcount being the minimal base
* python3-ize
* Separate slices from mdelems for static data
Allows us to separate a small build target with just some slice basics
from the rest, which will help simplify the build system longer term.
Additionally exposed an opportunity to eliminate an init function.
Should also help in a month or so when it's time to jettison interned
metadata and slices entirely.
* fix compilation
* Automated change: Fix sanity tests
* fixes
* fixfixfix
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
3 years ago
Mark D. Roth
fc6f26c89b
Remove grpc_core::StringView.
5 years ago
Esun Kim
e45b60d1fe
Fix unique_ptr<char> memory allocation mismatch
5 years ago
Esun Kim
b2b7fc9af8
Replaced grpc_core::UniquePtr with std::unique_ptr
5 years ago
Vijay Pai
c3faf1c3b8
Remove unused parameter warning (12 of 20)
5 years ago
Jan Tattermusch
18fb48de59
use even better workaround
5 years ago
Jan Tattermusch
260dc18f47
a cleaner workaround
5 years ago
Jan Tattermusch
932ce81228
workaround_slice_test_compiler_bug
5 years ago
Jan Tattermusch
8e39f76b10
work around slice_test compiler bug
5 years ago
Arjun Roy
2767accc1b
Fixed init-order-fiasco for static slice table.
...
Fixes init-order bug affecting https://github.com/grpc/grpc/issues/19819 which
was first exposed by this commit:
857375a142
5 years ago
Soheil Hassas Yeganeh
5d65a9fa7b
Address comments from Vijay.
6 years ago
Soheil Hassas Yeganeh
0d6cffd6c4
Introduce grpc_slice_from_moved_string.
...
Suggested by @markdroth to avoid extra allocation and copy when it's not
needed.
6 years ago
Arjun Roy
7d946633ea
grpc_slice_refcount devirtualization
6 years ago
yang-g
e75fc243da
change tests to use the new class instead of grpc_test_init
6 years ago
Yash Tibrewal
c0cd82faed
Remove unnecessary includes of exec_ctx.h
7 years ago
Noah Eisen
be82e64b3d
Autofix c casts to c++ casts
7 years ago
Yash Tibrewal
8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed""
7 years ago
Yash Tibrewal
ad4d2dde00
Revert "All instances of exec_ctx being passed around in src/core removed"
7 years ago
Yash Tibrewal
81fc8c9c33
Fix tests to call grpc_init and grpc_shutdown before using exec_ctx
7 years ago
Craig Tiller
4ac2b8e585
Enable clang-tidy as a sanity check, fix up all known failures
7 years ago
Yash Tibrewal
1cf9992ce2
Removing a few build.yaml errors
7 years ago
Yash Tibrewal
34a57d0346
rename all test core files to cc and a lot of C++ style conversions
7 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Craig Tiller
7c70b6c144
Revert "Revert "Metadata handling rewrite""
...
This reverts commit 5e01e2ac97
.
8 years ago
Craig Tiller
5e01e2ac97
Revert "Metadata handling rewrite"
8 years ago
Craig Tiller
4a08147513
Fix test under MSVC
...
Optimizer was spotting that src1 and src2 would be identical and merging
them.
8 years ago
Craig Tiller
ca7aeea825
Fix test
8 years ago
Craig Tiller
1ad51e021f
Fix static metadata
8 years ago
Craig Tiller
1961436b93
Fix static string interning
8 years ago
Craig Tiller
7d4116fa44
All core tests compile without grpc_mdstr
8 years ago
Craig Tiller
64b26567ad
First pass of slice interning facilities
8 years ago
Craig Tiller
28b72428a8
clang-format
8 years ago
Craig Tiller
618e67d655
s/GPR_SLICE/GRPC_SLICE/g
8 years ago
Craig Tiller
b37d53ebc0
Bulk update #includes
8 years ago
Craig Tiller
d41a4a720f
s/gpr_slice/grpc_slice, and move around tests, impls
8 years ago
Sanjay Ghemawat
fca59fb2aa
Add gpr_slice_new_with_user_data.
...
gpr_slice_new_with_user_data is like gpr_slice_new, but allows the
caller to specify a distinct pointer to pass to the destroy function.
This is useful when the data is part of a larger data structure that
should be destroyed when the data is no longer needed.
8 years ago
Yuchen Zeng
64c0e8d4bc
Add format check for gpr_log and gpr_asprintf
9 years ago
Craig Tiller
7536af02cf
Eliminate gpr_ int types - and insist on C99 variants instead
9 years ago
Sree Kuchibhotla
f99dbf5d08
Remove gpr_slice_to_cstring as it is not used anywhere
9 years ago
Sree Kuchibhotla
38d39f4622
expose gpr_slice_to_cstring()
9 years ago
Sree Kuchibhotla
b6fd9bcbb6
Add coverage to new_with_len_ref() function (called via gpr_slice_ref()
9 years ago
Craig Tiller
a82950e683
clang-format all core files
9 years ago
Craig Tiller
45724b35e4
indent pass to get logical source lines on one physical line
9 years ago
Craig Tiller
6a6b36c503
Enable -Wconversion
9 years ago
Craig Tiller
32ca48ce0b
Core compiles with -Wsign-conversion
9 years ago
Julien Boeuf
da13cd201b
Adding gpr_dump and gpr_hexdump as discussed. Removed gpr_slice_to_cstring as well.
10 years ago
Julien Boeuf
abc09d8b12
Adding util to get a NULL terminated string from a slice.
10 years ago
Craig Tiller
356961916d
Remove all uses of __FUNCTION__
10 years ago
Craig Tiller
190d360def
Add missing new-lines at end of file
10 years ago