Pin ChannelHandle to permanent memory address and use pointers#4675
Pin ChannelHandle to permanent memory address and use pointers#4675uklotzde wants to merge 3 commits intomixxxdj:mainfrom uklotzde:channelhandle
Conversation
|
Please explain how the code fixes the issue. |
If you have other ideas please provide a fix. Nothing more to say, please read my disclaimer. The commit message concisely explains what has changed. |
|
it's pretty shitty to say "this is the fix i refuse to explain it or entertain any questions or review comments." I agree with @daschuer, it doesn't make sense to me why these are pointers and I'd prefer to take my approach and convert them to values. We can work around the CLEAR_STRUCT issue by writing some initializers. |
|
Over and out. |
Have fun.
Disclaimer: I didn't write the code originally and I won't rewrite it. Take it as is or leave it. I am not answering any questions about design decisions and will ignore any nitpicking comments. Otherwise, cherry-pick my commit and rework it as you like. But don't expect me to review your code. Update: I am well aware that the code could still be optimized. But that is a rabbit hole that I prefer to avoid.
2.3 is also affected and might stop working at any time. This issue could even be the cause for the spurious std::bad_alloc crashes that some users have reported.