diff --git a/src/core/lib/surface/channel.h b/src/core/lib/surface/channel.h index 2c8ea4f40d1..2cca3a73003 100644 --- a/src/core/lib/surface/channel.h +++ b/src/core/lib/surface/channel.h @@ -90,6 +90,9 @@ struct RegisteredCall { struct CallRegistrationTable { grpc_core::Mutex mu; + // The map key should be owned strings rather than unowned char*'s to + // guarantee that it outlives calls on the core channel (which may outlast the + // C++ or other wrapped language Channel that registered these calls). std::map, RegisteredCall> map /* GUARDED_BY(mu) */; int method_registration_attempts /* GUARDED_BY(mu) */ = 0;