Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 28 - synchronized block causes memory corruption with cross compiler
Summary: synchronized block causes memory corruption with cross compiler
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: MIPS Linux
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2012-12-11 23:51 CET by Martin Nowak
Modified: 2013-06-17 15:59 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Nowak 2012-12-11 23:51:05 CET
The size of the pthread_mutex_t used to lock the synchronized block is determined on the host system. This is an issue of the dfrontend (gcc/d/dfronted/statement.c) but gdc might require a different fix so I opened this bug report.

The corresponding dmd bug.
http://d.puremagic.com/issues/show_bug.cgi?id=9144
Comment 1 Iain Buclaw 2013-06-17 15:59:16 CEST
https://github.com/D-Programming-Language/dmd/pull/2060
https://github.com/D-Programming-Language/dmd/commit/f8669e6c38d5e03757aeabe2a29a8e76d75c7baf

For future expansion, we should really move it in to druntime, rather than the compiler generate it inlined....