]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Improve *_get_type() fast path (requires glib >= 2.58) 6b03920e39bc3900148d02ea5c2ddc13d6e91091 89/head
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 5 Dec 2019 13:08:36 +0000 (14:08 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 5 Dec 2019 14:46:59 +0000 (15:46 +0100)
commit6b03920e39bc3900148d02ea5c2ddc13d6e91091
tree516c760075838ba6e14e1fb31b5efb3cdcfb8a5c
parent7551bbbe8ee6dc9cec3f17436a773f80e5bc2125
codegen: Improve *_get_type() fast path (requires glib >= 2.58)

Uses G_GNUC_NO_INLINE if glib >= 2.58 is targetted otherwise the
compiler is free to inline the separate *_get_type_once() function.

Follows the changes introduced in glib by
https://gitlab.gnome.org/GNOME/glib/commit/e924f777369710221c3e0a9d7bf40392a27d1fa4

See https://gitlab.gnome.org/GNOME/glib/issues/541
and https://gitlab.gnome.org/GNOME/vala/issues/879
ccode/valaccodefunction.vala
ccode/valaccodemodifiers.vala
codegen/valatyperegisterfunction.vala