druntime investigation troubles
verylonglogin.reg at gmail.com
Wed May 23 10:32:06 PDT 2012
23.05.2012 10:21, Jacob Carlborg написал:
> On 2012-05-22 23:01, Steven Schveighoffer wrote:
>> It looks like code that is not called on Windows. Which doesn't make
>> sense. It would seem that you must initialize a critical section in
>> order to use it.
>> I can't find any reference to STI_monitor in dmd, dmc, or druntime
>> source code, except those calls that are done for Posix only. This isn't
>> some closed-source mystery, I think it is just unused code.
>> Sean, does this make sense? Are we using uninitialized critical sections?
> I found a call now, it's in "_d_criticalenter", both in critical.c and
What call have you found in "_d_criticalenter"?
By the way, `_STI_critical_init` is called before C main (uncomment
printf's and check), so it is definitely called not by druntime.
Денис В. Шеломовский
Denis V. Shelomovskij
More information about the Digitalmars-d-learn