MPS issue job003974

TitleStackContext and MutatorContext could be unified
Statusopen
Priorityoptional
Assigned userRichard Brooksby
OrganizationRavenbrook
DescriptionThe StackContext and MutatorContext structures both represent infomation about a mutator thread that is needed by ThreadScan in order to scan the thread's register and stack roots when a trace flips. StackContext is used when the thread entered the MPS via an API entry point, while MutatorContext is used when the thread entered the MPS via a barrier hit or via being suspended.

The distinction between these two context structures makes the code in ThreadScan less clear, and also makes it harder to implement concurrent MPS (job003970) or to flip inside a barrier hit.
AnalysisSee <https://info.ravenbrook.com/mail/2016/03/03/09-52-34/0/>.
How foundunknown
Evidence<https://info.ravenbrook.com/mail/2016/03/03/09-52-34/0/>
Created byRichard Brooksby
Created on2016-03-08 10:17:23
Last modified byGareth Rees
Last modified on2018-09-19 13:07:22
History2016-03-08 RB Created