Re: Disabling synchronized blocks locking overhead?

2011-06-24 Thread Khint Enco
On 25/06/11 00:50, Khint Enco wrote: Misfire! No, that 'patch' does nothing .. 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 sec

Re: Disabling synchronized blocks locking overhead?

2011-06-24 Thread Khint Enco
On 24/06/11 13:04, d coder wrote: Would the patch you sent still work? Regards - Puneet Misfire! No, that 'patch' does nothing .. admittedly I'm still finding my way through the compiler source. It looks like I simply skipped the semantic check for the synchronized storage class .. or somet

Re: Disabling synchronized blocks locking overhead?

2011-06-24 Thread Khint Enco
On 24/06/11 09:57, d coder wrote: Hello List I am working on an application where I would normally be using multithreading. But sometimes, depending on how much data sharing is being shared, I might want to invoke the same application in single-threaded mode. Now when I invoke it in single-thre