Community
Participate
Working Groups
There is a memory leak related to OS.g_signal_connect(). To reproduce, it's sufficient to run code like this: for (int i = 0; i < 100; i++) { Shell item = new Shell(display); item.dispose(); } I'm currently investigating.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/173684
Eventually I was able to track this leak with Valgrind (after struggling to make it work with Java). In its leak report, I saw numerous leaks from: * Java_org_eclipse_swt_internal_gtk_OS_g_1signal_1connect * Java_org_eclipse_swt_internal_gtk_GTK_gtk_1gesture_1drag_1new * Java_org_eclipse_swt_internal_gtk_GTK_gtk_1gesture_1zoom_1new * Java_org_eclipse_swt_internal_gtk_GTK_gtk_1gesture_1drag_1new * Java_org_eclipse_swt_internal_gtk_GTK_gtk_1gesture_1rotate_1new With the patch, these leaks are gone.
Regression from bug 482018.
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/173684 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d0e1449c8b0413bccfab1c0bee7a1a6671efa922
Thanks for reviewing!