Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED!nerds-end From: Stefan Monnier Newsgroups: comp.compilers Subject: Re: Question about inter-thread stack references Date: Sun, 18 Jan 2015 08:35:03 -0500 Organization: A noiseless patient Spider Lines: 18 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <15-01-028@comp.compilers> References: <15-01-015@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain X-Trace: miucha.iecc.com 1421608087 18314 2001:470:1f07:1126:0:676f:7373:6970 (18 Jan 2015 19:08:07 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Sun, 18 Jan 2015 19:08:07 +0000 (UTC) Keywords: architecture, parallel Posted-Date: 18 Jan 2015 14:08:06 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com X-Received-Bytes: 1733 X-Received-Body-CRC: 2966297360 Xref: csiph.com comp.compilers:1485 > 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