After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 607973 - PATCH: g_mem_set_vtable in multithreaded applications
PATCH: g_mem_set_vtable in multithreaded applications
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-24 21:33 UTC by shuerhaaken
Modified: 2010-03-12 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH (1.53 KB, application/octet-stream)
2010-01-24 21:33 UTC, shuerhaaken
  Details
New Patch, same content, but updated for the vala version of 08.March2010 (1.53 KB, patch)
2010-03-08 16:17 UTC, shuerhaaken
none Details | Review

Description shuerhaaken 2010-01-24 21:33:23 UTC
Created attachment 152181 [details]
PATCH

This patch fixes the codeposition of the recently added glib memory statistic support in vala.

"g_mem_set_vtable" and "g_thread_init" codepositions have to be swapped because "g_mem_set_vtable" has to be called even before "g_thread_init".

Without this patch multithreaded applications that are using glib's memory statistic will fail.

Regards,
Jörn Magens
Comment 1 shuerhaaken 2010-03-08 16:17:07 UTC
Created attachment 155565 [details] [review]
New Patch, same content, but updated for the vala version of 08.March2010
Comment 2 shuerhaaken 2010-03-08 16:18:32 UTC
This is really a trivial fix. Please apply it as I already missed the last vala release.
Comment 3 Jürg Billeter 2010-03-12 14:52:29 UTC
commit 67e44ed8b41fd9e95d17d2c6f4e54a95101f828c
Author: Jörn Magens <interflug1@gmx.net>
Date:   Fri Mar 12 15:50:13 2010 +0100

    Fix use of memory profiler in multithreaded applications
    
    Fixes bug 607973.