Re: RFC: omit write barrier instructions unless '-threaded'

2013-03-01 Thread Simon Marlow
On 27/02/13 16:17, Joey Adams wrote: On Sun, Feb 24, 2013 at 3:40 PM, Gabor Greif mailto:ggr...@gmail.com>> wrote: Hi all, from what I gathered so far no emission of write barriers is needed when - running on a uniprocessor (-threaded or not) - running on a multiprocessor sa

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-27 Thread Gabor Greif
On 2/27/13, Joey Adams wrote: > On Sun, Feb 24, 2013 at 3:40 PM, Gabor Greif wrote: > >> Hi all, >> >> from what I gathered so far no emission of write barriers is needed when >> - running on a uniprocessor (-threaded or not) >> - running on a multiprocessor sans having linked with -threaded. >

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-27 Thread Joey Adams
On Sun, Feb 24, 2013 at 3:40 PM, Gabor Greif wrote: > Hi all, > > from what I gathered so far no emission of write barriers is needed when > - running on a uniprocessor (-threaded or not) > - running on a multiprocessor sans having linked with -threaded. > On Windows, the non-threaded RTS does

Fwd: RFC: omit write barrier instructions unless '-threaded'

2013-02-26 Thread Gabor Greif
From: Gabor Greif Date: Tue, 26 Feb 2013 10:45:52 +0100 Subject: Re: RFC: omit write barrier instructions unless '-threaded' To: Simon Marlow Cool, pushed https://github.com/ghc/ghc/commit/b7ae3cd9273da044384de4a327a4a5d71190129e Cheers, Gabor On 2/26/13, Simon Marlow wrote:

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-26 Thread Simon Marlow
On 25/02/13 22:07, Gabor Greif wrote: Thanks, this helped! Something like this? $ git show c3f5312 commit c3f53126fb0835cb21fc085e9b7cb5acb1ea1fba Author: Gabor Greif Date: Mon Feb 25 23:03:23 2013 +0100 Only emit %write_barrier primitive for THREADED_RTS diff --git a/includes/Cmm.h

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-25 Thread Gabor Greif
Thanks, this helped! Something like this? $ git show c3f5312 commit c3f53126fb0835cb21fc085e9b7cb5acb1ea1fba Author: Gabor Greif Date: Mon Feb 25 23:03:23 2013 +0100 Only emit %write_barrier primitive for THREADED_RTS diff --git a/includes/Cmm.h b/includes/Cmm.h index 1505b1c..bc5702c 1

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-25 Thread Simon Marlow
On 25/02/13 14:53, Gabor Greif wrote: On 2/25/13, Simon Marlow wrote: On 24/02/13 20:40, Gabor Greif wrote: Hi all, from what I gathered so far no emission of write barriers is needed when - running on a uniprocessor (-threaded or not) - running on a multiprocessor sans having linked wi

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-25 Thread Gabor Greif
On 2/25/13, Simon Marlow wrote: > On 24/02/13 20:40, Gabor Greif wrote: >> Hi all, >> >> from what I gathered so far no emission of write barriers is needed when >> - running on a uniprocessor (-threaded or not) >> - running on a multiprocessor sans having linked with -threaded. >> >> Below pa

Re: RFC: omit write barrier instructions unless '-threaded'

2013-02-25 Thread Simon Marlow
On 24/02/13 20:40, Gabor Greif wrote: Hi all, from what I gathered so far no emission of write barriers is needed when - running on a uniprocessor (-threaded or not) - running on a multiprocessor sans having linked with -threaded. Below patch suppresses the emission of 'lwsync' when no '-th

RFC: omit write barrier instructions unless '-threaded'

2013-02-24 Thread Gabor Greif
Hi all, from what I gathered so far no emission of write barriers is needed when - running on a uniprocessor (-threaded or not) - running on a multiprocessor sans having linked with -threaded. Below patch suppresses the emission of 'lwsync' when no '-threaded' is specified on PPC only. So it do