lorinlee commented on issue #1449: URL: https://github.com/apache/incubator-brpc/issues/1449#issuecomment-871893605
@cdjingit There are some differences, the code comments just explain that memory leaks may occur if borrowing KeyTable in `bthread_setspecific`, so `bthread_setspecific` creates a new one KeyTable instead of borrowing, but this implementation needs special usage. For example, we must call bthread_getspecific before bthread_setspecific, otherwise infinite KeyTables will be created, which causes KeyTables memory to leak. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
