We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6fc9df commit e5e5aa4Copy full SHA for e5e5aa4
1 file changed
Objects/obmalloc.c
@@ -557,8 +557,15 @@ new_arena(void)
557
558
#undef Py_ADDRESS_IN_RANGE
559
560
-/* Don't make static, to ensure this isn't inlined. */
561
-int Py_ADDRESS_IN_RANGE(void *P, poolp pool);
+#if defined(__GNUC__) && (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)
+#define Py_NO_INLINE __attribute__((__noinline__))
562
+#else
563
+#define Py_NO_INLINE
564
+#endif
565
+
566
+/* Don't make static, to try to ensure this isn't inlined. */
567
+int Py_ADDRESS_IN_RANGE(void *P, poolp pool) Py_NO_INLINE;
568
+#undef Py_NO_INLINE
569
#endif
570
571
/*==========================================================================*/
0 commit comments