Related articles |
---|
Question about inter-thread stack references ivan@ootbcomp.com (Ivan Godard) (2015-01-15) |
Re: Question about inter-thread stack references seimarao@gmail.com (Seima Rao) (2015-01-16) |
Re: Question about inter-thread stack references lkrupp@nospam.pssw.com.invalid (Louis Krupp) (2015-01-16) |
Re: Question about inter-thread stack references gah@ugcs.caltech.edu (glen herrmannsfeldt) (2015-01-17) |
Re: Question about inter-thread stack references gneuner2@comcast.net (George Neuner) (2015-01-18) |
Re: Question about inter-thread stack references monnier@iro.umontreal.ca (Stefan Monnier) (2015-01-18) |
Re: Question about inter-thread stack references kaz@kylheku.com (Kaz Kylheku) (2015-01-18) |
Re: Question about inter-thread stack references ivan@ootbcomp.com (Ivan Godard) (2015-01-18) |
Re: Question about inter-thread stack references gah@ugcs.caltech.edu (glen herrmannsfeldt) (2015-01-18) |
Re: Question about inter-thread stack references gah@ugcs.caltech.edu (glen herrmannsfeldt) (2015-01-18) |
Re: Question about inter-thread stack references jgk@panix.com (2015-01-25) |
Re: Question about inter-thread stack references kaz@kylheku.com (Kaz Kylheku) (2015-01-25) |
[1 later articles] |
From: | Stefan Monnier <monnier@iro.umontreal.ca> |
Newsgroups: | comp.compilers |
Date: | Sun, 18 Jan 2015 08:35:03 -0500 |
Organization: | A noiseless patient Spider |
References: | 15-01-015 |
Keywords: | architecture, parallel |
Posted-Date: | 18 Jan 2015 14:08:06 EST |
> If a process has two or more threads running in it, what are the rules
> regarding one thread referencing memory in a different thread's stack?
IIUC you're question is not "which weird architecture doesn't allow
them?" (since I guess you know the answer to this one, and you're
mostly interested in the Mill), but rather "which languages support
such references?".
AFAIK the rules are that inter-thread stack references are either
strictly disallowed or at best "undefined".
But even if they can be allowed, I'm pretty sure the Mill can handle
it by handling those rare cases specially (i.e. adding an indirection:
allocating them i the heap and only keeping a reference to them in the
stack).
Stefan
Return to the
comp.compilers page.
Search the
comp.compilers archives again.