aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport/error_utils.cc
Commit message (Collapse)AuthorAge
* Optimize error handling for special cases.Gravatar Soheil Hassas Yeganeh2018-10-18
| | | | | | | | | | | | | | This commit contains a few improvements: 1. Using a consequetive range of [0..4], will allow us to merge all branches of error_is_special into one comparison. 2. With (1), we can remove the for loops to find entries in error_status_map with a single O(1) lookup. 3. grpc_error_is_special() code paths should be inlined for ref and unref to avoid callq for the majority of cases where speical error is used. 4. grpc_error_get_int() should never accept a nullptr argument to avoid an expensive branch in the hot path. Callers should all allocate a dummy int on the stack when calling.
* Add a sanity check for inclusion of port_platform.hGravatar Alexander Polcyn2018-02-23
|
* Run clang fmtGravatar Noah Eisen2018-02-09
|
* Autofix c casts to c++ castsGravatar Noah Eisen2018-02-09
|
* Missing s/NULL/nullptrGravatar ncteisen2018-01-03
|
* Revert "Revert "All instances of exec_ctx being passed around in src/core ↵Gravatar Yash Tibrewal2017-12-06
| | | | removed""
* Revert "All instances of exec_ctx being passed around in src/core removed"Gravatar Yash Tibrewal2017-12-06
|
* Merge masterGravatar Yash Tibrewal2017-11-21
|\
| * use aquire releaseGravatar ncteisen2017-11-20
| |
| * Fix TSAN attemptGravatar ncteisen2017-11-17
| |
* | Merge masterGravatar Yash Tibrewal2017-11-16
|\ \
| | * Only alloc if status <> okGravatar ncteisen2017-11-15
| | |
| | * Dup the memoryGravatar ncteisen2017-11-15
| | |
| | * Merge branch 'master' of https://github.com/grpc/grpc into ↵Gravatar ncteisen2017-11-15
| | |\ | | |/ | |/| | | | surfacing-error-details
| | * Add error string to recv status APIGravatar ncteisen2017-11-13
| | |
| * | Enable clang-tidy as a sanity check, fix up all known failuresGravatar Craig Tiller2017-11-10
| | |
| * | s/NULL/nullptrGravatar Craig Tiller2017-11-10
| |/
* | Merge with masterGravatar Yash Tibrewal2017-11-09
|\|
| * Update clang-format to 5.0Gravatar Craig Tiller2017-11-03
| |
* | Removing instances of exec_ctx being passed around in functions inGravatar Yash Tibrewal2017-10-18
|/ | | | | | | | | | | src/core. exec_ctx is now a thread_local pointer of type ExecCtx instead of grpc_exec_ctx which is initialized whenever ExecCtx is instantiated. ExecCtx also keeps track of the previous exec_ctx so that nesting of exec_ctx is allowed. This means that there is only one exec_ctx being used at any time. Also, grpc_exec_ctx_finish is called in the destructor of the object, and the previous exec_ctx is restored to avoid breaking current functionality. The code still explicitly calls grpc_exec_ctx_finish because removing all such instances causes the code to break.
* Merge github.com:grpc/grpc into flowctl+millisGravatar Craig Tiller2017-10-05
|
* Changes for C to C++. Adding extern C to header files for compatibility.Gravatar Yash Tibrewal2017-10-02
Also converting to .cc