unison-runtime-0.0.0
Safe HaskellNone
LanguageHaskell2010

Unison.Runtime.Machine

Synopsis

Documentation

type ActiveThreads = Maybe (IORef (Set ThreadId)) Source #

A ref storing every currently active thread. This is helpful for cleaning up orphaned threads when the main process completes.

We track threads when running in a host process like UCM, otherwise, in one-off environments Nothing is used and we don't bother tracking forked threads since they'll be cleaned up automatically on process termination.

boxSlot :: Stack -> Int -> IO Val Source #

The boxed form of the wide variable whose value slot is slot i (boxVal on the stack).

initialNativeCells :: Int Source #

How many native code cells a fresh cache starts with. Each is 16 bytes.

refNumsTy :: CCache prof -> IO (Map Reference Word64) Source #

The process-wide type numbering (Unison.Runtime.TypeNumbers).