Thread overview | |||||
---|---|---|---|---|---|
|
March 28, 2014 [-profiler && std.parallelism] Error: asm statements are assumed to throw | ||||
---|---|---|---|---|
| ||||
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 Re: [-profiler && std.parallelism] Error: asm statements are assumed to throw | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | 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 Re: [-profiler && std.parallelism] Error: asm statements are assumed to throw | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrew Edwards | 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
|
Copyright © 1999-2021 by the D Language Foundation