This is an automated email from the ASF dual-hosted git repository.

serverglen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new cb7a6ff7 fix coredump stack uncomplete when usercode throw exceptions 
(#2256)
cb7a6ff7 is described below

commit cb7a6ff783fe9f208708e496ed446e92c1dd18f5
Author: smbzhang <[email protected]>
AuthorDate: Tue May 23 09:47:30 2023 +0800

    fix coredump stack uncomplete when usercode throw exceptions (#2256)
---
 src/brpc/input_messenger.cpp | 2 +-
 src/brpc/input_messenger.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/brpc/input_messenger.cpp b/src/brpc/input_messenger.cpp
index 1234eef4..43167d5b 100644
--- a/src/brpc/input_messenger.cpp
+++ b/src/brpc/input_messenger.cpp
@@ -202,7 +202,7 @@ static void QueueMessage(InputMessageBase* to_run_msg,
     }
 }
 
-InputMessenger::InputMessageClosure::~InputMessageClosure() {
+InputMessenger::InputMessageClosure::~InputMessageClosure() noexcept(false) {
     if (_msg) {
         ProcessInputMessage(_msg);
     }
diff --git a/src/brpc/input_messenger.h b/src/brpc/input_messenger.h
index 68e7b0c7..1c191a87 100644
--- a/src/brpc/input_messenger.h
+++ b/src/brpc/input_messenger.h
@@ -114,7 +114,7 @@ private:
     class InputMessageClosure {
     public:
         InputMessageClosure() : _msg(NULL) { }
-        ~InputMessageClosure();
+        ~InputMessageClosure() noexcept(false);
 
         InputMessageBase* release() {
             InputMessageBase* m = _msg;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to