From fcb50df61105e3d8c78ce122a138b7c34a84eefc Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 25 Oct 2023 05:08:30 -0700 Subject: [PATCH] oil: make AoT introspect noinline --- include/oi/oi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/oi/oi.h b/include/oi/oi.h index 195180a..30fb8b2 100644 --- a/include/oi/oi.h +++ b/include/oi/oi.h @@ -38,7 +38,7 @@ template IntrospectionResult __attribute__((weak)) introspectImpl(const T& objectAddr); template -IntrospectionResult introspect(const T& objectAddr) { +__attribute__((noinline)) IntrospectionResult introspect(const T& objectAddr) { if (!introspectImpl) throw std::logic_error( "OIL is expecting AoT compilation but it doesn't appear to have run.");