From b1bed66dfc0b1a48cf9aa1e37681f61c0b96a3cd Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Thu, 19 Dec 2019 15:41:09 +0900 Subject: [PATCH] Perf: replace dynamic_cast with static_cast in this_thread() --- iocore/eventsystem/P_UnixEThread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocore/eventsystem/P_UnixEThread.h b/iocore/eventsystem/P_UnixEThread.h index f0749753e84..f1ca40f99e0 100644 --- a/iocore/eventsystem/P_UnixEThread.h +++ b/iocore/eventsystem/P_UnixEThread.h @@ -177,7 +177,7 @@ EThread::schedule_spawn(Continuation *c, int ev, void *cookie) TS_INLINE EThread * this_ethread() { - return dynamic_cast(this_thread()); + return static_cast(this_thread()); } TS_INLINE EThread *