[Issue 10108] Thread local slice to array literal references the same data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 17 11:53:54 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10108
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simen.kjaras at gmail.com
--- Comment #7 from Simen Kjaeraas <simen.kjaras at gmail.com> 2013-05-17 11:53:53 PDT ---
Simplified example without __gshared:
import core.thread;
int[] arr = [1,2,3];
void main( ) {
int* p = arr.ptr;
auto thr = new Thread({assert(arr.ptr == p);}); // Should have failed.
thr.start();
thr.join();
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list