Commit Graph

47 Commits

Author SHA1 Message Date
Vijay Pai 6124a835d4 Revert "Hide ConnectedSubchannel from LB policy API." 2019-06-18 10:37:15 -07:00
Mark D. Roth 7767fbe683 Hide ConnectedSubchannel from LB policy API. 2019-06-12 06:44:36 -07:00
Mark D. Roth b7e1b6f3ff
Merge pull request #19250 from markdroth/channelz_map.alt
Convert channelz registry to use Map<> instead of InlinedVector<>.
2019-06-10 12:28:35 -07:00
Juanli Shen 5bd4c0c7d0 Add operator== for ServerAddress and InlinedVector 2019-06-07 17:39:08 -07:00
Mark D. Roth f9fcdc015d Convert ChannelzRegistry to use Map<> instead of InlinedVector<>. 2019-06-07 09:51:29 -07:00
Moiz Haidry b0ef377ebd Fixed erase() method by changing RemoveRecursive() to return a new iterator to the successor in addition to the new root. Both are returned as a single pair 2019-06-03 13:37:28 -07:00
Esun Kim 1518ecbd76 Added new configuration system to core/grp.
More generic configuration system is introduced in order to i) unify the
way how modules access the configurations instead of using low-level
get/setenv functions and ii) enable the customization for where configuration
is stored. This could be extended to support flag, file, etc.

Default configuration system uses environment variables as before so
basically this is expected to work just as it did. This behavior can
change by redefining GPR_GLOBAL_CONFIG_DEFINE_*type* macros.

* Migrated configuration

GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS
GRPC_EXPERIMENTAL_DISABLE_FLOW_CONTROL
GRPC_ABORT_ON_LEAKS
GRPC_NOT_USE_SYSTEM_SSL_ROOTS
2019-04-30 15:49:24 -07:00
Moiz Haidry ba00d3c914 Added a locality map class that maintains a child policy per locality. This is used by the xds lb policy to manage multiple localities. Also added a grpc_core::Map which is a templatized map, that is used by the locality map to maintain this info 2019-03-29 12:50:54 -07:00
xtao 7766912dda
fix more detected mu/cv leaks 2019-02-16 00:00:50 +08:00
Yash Tibrewal 9df6023dca Move Optional to gprpp, and reviewer comments 2019-01-18 14:48:12 -08:00
yang-g 67742ef63f Fix BUILD files. Manually edit bzl files 2018-12-06 14:37:52 -08:00
Soheil Hassas Yeganeh 4345ef121a Add debug-only tracing to grpc_core::RefCount
Also, this patch removes the *WithTracing variants in favor of the new
API.
2018-12-01 23:42:18 -05:00
yang-g e75fc243da change tests to use the new class instead of grpc_test_init 2018-11-30 08:57:38 -08:00
Mark D. Roth 5214f8bc57 Fix InlinedVector to use its elements' move and copy methods. 2018-11-28 14:00:40 -08:00
Soheil Hassas Yeganeh 1dd09321cd Add a non-polymorphic variant to RefCounted.
Using RefCounted<Child, NonPolymorphic> users can now build smart,
ref-counted pointers without paying the costs of a vtable when it's
possible.
2018-11-13 23:11:56 -05:00
ncteisen 8abb4370a9 Add pop_back test 2018-10-05 16:05:21 -07:00
Mark D. Roth 3abd620134 fix clang_tidy 2018-07-27 08:20:31 -07:00
Mark D. Roth 326f82e5e2 A bit of cleanup and add more tests. 2018-07-27 08:04:24 -07:00
Mark D. Roth 87e772fa7b Fix RefCountedPtr to handle polymorphism. 2018-07-26 14:30:58 -07:00
ncteisen 2968bf687a reviewer feedback 2018-07-17 15:11:27 -07:00
ncteisen 0f6e4dd20d reviewer feedback: 2018-07-17 11:26:55 -07:00
ncteisen 2d2854a1ce Add copy and move ctor to InlinedVector 2018-07-13 10:43:35 -07:00
Mark D. Roth 547bb5e66f
Merge pull request #15782 from markdroth/recv_trailing_metadata_ready3
Third attempt: move recv_trailing_metadata into its own callback, don't use on_complete for recv_ops
2018-06-19 07:40:31 -07:00
Noah Eisen 58e0cbf9fb Enable the performance-* clang-tidy checks 2018-06-14 14:58:09 -04:00
Mark D. Roth 817d28fed6 Revert "Merge pull request #15746 from grpc/revert-15709-recv_trailing_metadata_ready2"
This reverts commit 3f9308ce1f, reversing
changes made to 92a0ae0b10.
2018-06-14 09:44:58 -07:00
Mark D. Roth 0159026111
Revert "Second attempt: move recv_trailing_metadata into its own callback, don't use on_complete for recv_ops" 2018-06-13 14:49:25 -07:00
Mark D. Roth 5b3824baf2 Code review changes. 2018-06-11 16:49:13 -07:00
kpayson64 f8c1bd826c Fix fork test flake 2018-05-18 10:40:44 -07:00
kpayson64 c934a2e25d Regenerate projects 2018-05-11 12:22:47 -07:00
kpayson64 4fad281ce8 Merge remote-tracking branch 'upstream/master' into fork_exec_ctx_check 2018-05-11 12:20:11 -07:00
kpayson64 ec445cc2bb BUILD fixes 2018-05-11 11:25:55 -07:00
kpayson64 701e70da07 c++ify 2018-04-30 17:40:59 -07:00
Mark D. Roth 908a2173fe Avoid warnings from LLVM -Wself-assign. 2018-04-18 08:04:11 -07:00
Mark D. Roth 62d2ca77db Change InlinedVector to keep elements stored contiguously. 2018-03-28 08:54:03 -07:00
David Garcia Quintas caa2605a28 Don't capture unnecessary or unused variables 2018-03-21 18:25:22 -07:00
Vijay Pai 756caa7c6a Minor changes and fixes 2018-03-01 13:41:07 -08:00
Vijay Pai 2fe87b0905 Move assignment for Thread, make destructor optional, loop cv waits 2018-03-01 11:47:36 -08:00
Vijay Pai d71b55db98 Reduce thread count to reduce stack frame size 2018-02-24 10:28:32 -06:00
Vijay Pai c02d997607 Minor bug fixes 2018-02-20 14:31:31 -08:00
Vijay Pai 87e2e6a58a clang-fmt 2018-02-19 22:45:47 -08:00
Vijay Pai da69355f30 C++ize gpr_thread as grpc_core::Thread, make it 2-phase init (construct/Start) 2018-02-19 22:39:58 -08:00
Vijay Pai c745690caf Internalize gpr_thd except for id and currentid 2018-02-12 11:44:52 -08:00
Mark D. Roth 08d9f3df30 Change Ref() methods to return a RefCountedPtr<>. 2018-02-06 07:58:17 -08:00
Mark D. Roth d0e1f7466e Fix build problem. 2018-01-24 14:54:41 -08:00
Mark D. Roth 9ab4d0c826 Add const version of operator[]. 2018-01-23 14:57:11 -08:00
Mark D. Roth 19688bf7a8 Add clear() method for InlinedVector<>. 2018-01-23 14:25:50 -08:00
Mark D. Roth 4f2b0fdadf Rename 'gpr++' directories to 'gprpp'. 2018-01-19 13:04:59 -08:00