Thread overview
[-profiler && std.parallelism] Error: asm statements are assumed to throw
Mar 28, 2014
Andrew Edwards
Mar 28, 2014
Vladimir Panteleev
Mar 28, 2014
Paolo Invernizzi
March 28, 2014
Just verifying this is a bug:

import std.parallelism;

void main(string[] args)
{
	foreach(arg; (args[1..$]).parallel) {

	}
}

seireitei:~ ace$ dmd -profile bug
/usr/share/dmd/src/druntime/import/core/atomic.d(972): Error: asm statements are assumed to throw
/usr/share/dmd/src/druntime/import/core/atomic.d(973): Error: asm statements are assumed to throw
/usr/share/dmd/src/druntime/import/core/atomic.d(974): Error: asm statements are assumed to throw
/usr/share/dmd/src/druntime/import/core/atomic.d(975): Error: asm statements are assumed to throw
March 28, 2014
On Friday, 28 March 2014 at 00:08:57 UTC, Andrew Edwards wrote:
> Just verifying this is a bug:

Yep, it's a bug.

https://d.puremagic.com/issues/show_bug.cgi?id=10849
March 28, 2014
On Friday, 28 March 2014 at 00:08:57 UTC, Andrew Edwards wrote:
> Just verifying this is a bug:
>
> import std.parallelism;
>
> void main(string[] args)
> {
> 	foreach(arg; (args[1..$]).parallel) {
>
> 	}
> }
>
> seireitei:~ ace$ dmd -profile bug
> /usr/share/dmd/src/druntime/import/core/atomic.d(972): Error: asm statements are assumed to throw
> /usr/share/dmd/src/druntime/import/core/atomic.d(973): Error: asm statements are assumed to throw
> /usr/share/dmd/src/druntime/import/core/atomic.d(974): Error: asm statements are assumed to throw
> /usr/share/dmd/src/druntime/import/core/atomic.d(975): Error: asm statements are assumed to throw

An unrelated question: so -profile _can_ be used in a multithreaded program, if I stick to output regarding  function not involved with threads?

Thanks, Paolo