Skip to content

Commit 0db6b51

Browse files
committed
Remove noinline from internal static locals
1 parent 35469a2 commit 0db6b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/pybind11/detail/internals.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct internals {
9898

9999
/// Each module locally stores a pointer to the `internals` data. The data
100100
/// itself is shared among modules with the same `PYBIND11_INTERNALS_ID`.
101-
PYBIND11_NOINLINE inline internals *&get_internals_ptr() {
101+
inline internals *&get_internals_ptr() {
102102
static internals *internals_ptr = nullptr;
103103
return internals_ptr;
104104
}
@@ -167,7 +167,7 @@ PYBIND11_NOINLINE inline internals &get_internals() {
167167
}
168168

169169
/// Works like `internals.registered_types_cpp`, but for module-local registered types:
170-
PYBIND11_NOINLINE inline type_map<type_info *> &registered_local_types_cpp() {
170+
inline type_map<type_info *> &registered_local_types_cpp() {
171171
static type_map<type_info *> locals{};
172172
return locals;
173173
}

0 commit comments

Comments
 (0)