Is recent GTK 3.22 still Boehm GC friendly (thread issue)?

ε祈祈猫儿з 提交于 2019-11-28 11:56:17

GTK+ is not written with a garbage collector in mind. You would have to modify GDK and the libraries it's built on, to to call the GC_* allocation functions for this to work. Simply notifying the GC of the extra GLib threads does not seem to be a solution here.

That said, this might be a non-issue if GTK+ and the libraries it uses, are backed by a different heap than the Boehm GC. Your application might not be entirely free of memory leaks and other issues, but at least all the code you write would be properly GC'd.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!