Disabling synchronized blocks locking overhead?

d coder dlang.coder at gmail.com
Sun Jul 10 05:17:43 PDT 2011


>
>
>> I've added a -nosync flag to the compiler (v2.053) that removes all the
> effects of synchronized. It has been tested and I ran all unittests, or at
> least I think I did .. it took less than half a second ..
>
> It's a small patch, but does anyone mind checking it?
>


Thanks. But I get loads of errors from druntime when I try your patch and
turn on the -nosync compiler flag. I have patched against the latest dmd
from github.

Regards
- Puneet

/home/puneet/work/nosync-d/src/druntime/import/object.di(27): function
declaration without return type. (Note that constructors are always named
'this')
/home/puneet/work/nosync-d/src/druntime/import/object.di(27): no identifier
for declarator immutable(char)
/home/puneet/work/nosync-d/src/druntime/import/object.di(27): semicolon
expected to close alias declaration
/home/puneet/work/nosync-d/src/druntime/import/object.di(27): Declaration
expected, not '['
/home/puneet/work/nosync-d/src/druntime/import/object.di(28): function
declaration without return type. (Note that constructors are always named
'this')
/home/puneet/work/nosync-d/src/druntime/import/object.di(28): no identifier
for declarator immutable(wchar)
/home/puneet/work/nosync-d/src/druntime/import/object.di(28): semicolon
expected to close alias declaration
/home/puneet/work/nosync-d/src/druntime/import/object.di(28): Declaration
expected, not '['
/home/puneet/work/nosync-d/src/druntime/import/object.di(29): function
declaration without return type. (Note that constructors are always named
'this')
/home/puneet/work/nosync-d/src/druntime/import/object.di(29): no identifier
for declarator immutable(dchar)
/home/puneet/work/nosync-d/src/druntime/import/object.di(29): semicolon
expected to close alias declaration
/home/puneet/work/nosync-d/src/druntime/import/object.di(29): Declaration
expected, not '['
/home/puneet/work/nosync-d/src/druntime/import/object.di(51): found 'ownee'
when expecting ')'
/home/puneet/work/nosync-d/src/druntime/import/object.di(51): semicolon
expected following function declaration
/home/puneet/work/nosync-d/src/druntime/import/object.di(51): Declaration
expected, not ','
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(776): found 'buf' when
expecting ';' following statement
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(1861): function
declaration without return type. (Note that constructors are always named
'this')
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(1861): found '[' when
expecting ')'
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(1861): semicolon expected
following auto declaration, not ']'
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(1861): found ']' instead
of statement
/home/puneet/work/nosync-d/src/phobos/std/stdio.d(1952): found ')' when
expecting '.' following ubyte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110710/f4c2c045/attachment.html>


More information about the Digitalmars-d mailing list