-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory smashing with container wrapping and coroutine #1400
Comments
ThePhD
pushed a commit
that referenced
this issue
Jul 17, 2023
— 📝 Fixes #1315, #1374, and #1400. — 📝 Lifetime in iterators was referencing the wrong stack (the main thread) rather than the coroutine's stack at time of creation. — 📝 Using main_reference/main_* objects was a suitable enough fix for most of these problems. — ⚡🛠 Prevent performance and usability issues from changing containers by storing the being/end iterator separately, rather than continually invoking `deferred_uc::end(…)` every time. — 🛠 Improve sizes for stored iterators in select cases. — 🛠 Allow for sentinel-style C++20-and-beyond ranges. — 🔧 Improve single file generation CMake. — 👷♀️ Fix up internal Lua build system issues.
ThePhD
pushed a commit
to soasis/sol2
that referenced
this issue
Jul 18, 2023
— 📝 Fixes ThePhD#1315, ThePhD#1374, and ThePhD#1400. — 📝 Lifetime in iterators was referencing the wrong stack (the main thread) rather than the coroutine's stack at time of creation. — 📝 Using main_reference/main_* objects was a suitable enough fix for most of these problems. — ⚡🛠 Prevent performance and usability issues from changing containers by storing the being/end iterator separately, rather than continually invoking `deferred_uc::end(…)` every time. — 🛠 Improve sizes for stored iterators in select cases. — 🛠 Allow for sentinel-style C++20-and-beyond ranges. — 🔧 Improve single file generation CMake. — 👷♀️ Fix up internal Lua build system issues.
ThePhD
pushed a commit
that referenced
this issue
Jul 18, 2023
— 📝 Fixes #1315, #1374, and #1400. — 📝 Lifetime in iterators was referencing the wrong stack (the main thread) rather than the coroutine's stack at time of creation. — 📝 Using main_reference/main_* objects was a suitable enough fix for most of these problems. — ⚡🛠 Prevent performance and usability issues from changing containers by storing the being/end iterator separately, rather than continually invoking `deferred_uc::end(…)` every time. — 🛠 Improve sizes for stored iterators in select cases. — 🛠 Allow for sentinel-style C++20-and-beyond ranges. — 🔧 Improve single file generation CMake. — 👷♀️ Fix up internal Lua build system issues.
phwissmann
pushed a commit
to phwissmann/sol2
that referenced
this issue
Mar 4, 2024
— 📝 Fixes ThePhD#1315, ThePhD#1374, and ThePhD#1400. — 📝 Lifetime in iterators was referencing the wrong stack (the main thread) rather than the coroutine's stack at time of creation. — 📝 Using main_reference/main_* objects was a suitable enough fix for most of these problems. — ⚡🛠 Prevent performance and usability issues from changing containers by storing the being/end iterator separately, rather than continually invoking `deferred_uc::end(…)` every time. — 🛠 Improve sizes for stored iterators in select cases. — 🛠 Allow for sentinel-style C++20-and-beyond ranges. — 🔧 Improve single file generation CMake. — 👷♀️ Fix up internal Lua build system issues.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The following code leads to some memory smashing from time to time.
It seems related to a custom wrapping of const std::vectorstd::shared_ptr
Using lua 5.2 on Xcode Version 12.2 (12B45b)
Probably similar to
#1315
Don't hesitate if you need further detail.
Thanks !
The text was updated successfully, but these errors were encountered: