llvm-c166/orc-rt/docs
Lang Hames b93c855309
[orc-rt] Rename "managed code" to "keepalive". NFC. (#216670)
Renames the Session's managed-code task group and its helpers so that
they name the mechanism -- the barrier that holds the Session open --
rather than a category of code:

  ManagedCodeTaskGroup                 -> KeepaliveTaskGroup
  Session::callManagedCode             -> Session::callWithKeepalive
  Session::managedCodeTokenSource      -> Session::keepaliveTokenSource
  waitForManagedCodeTasksThenShutdown  -> waitForKeepalivesThenShutdown
  ManagedCodeCaller                    -> KeepaliveCaller

and retitles the corresponding section of docs/Design.md from "Managed
code execution and shutdown" to "Keepalives and shutdown".

"Managed code" collides with the established .NET sense of the term,
which risks confusion. Naming the mechanism instead makes the purpose
clear at the call site: callWithKeepalive says that the Session is held
open across the call.

Where the documentation still needs a noun for the code itself it now
says "Session-managed code", which keeps the original meaning (JIT'd
code, plus library code loaded on its behalf) without the bare term's
collision.

TaskGroup itself is unchanged and remains generic: a keepalive is the
Session's use of a token, not a new kind of token.
2026-08-17 21:49:11 +10:00
..
Building-orc-rt.md
CMakeLists.txt
CodingConventions.md
conf.py
Design.md
ErrorHandling.md
index.md
README.txt

ORC-RT Documentation
====================

The ORC-RT documentation is written using the Sphinx documentation generator. It is
currently tested with Sphinx 5.3.0.

To build the documents into html configure ORC-RT with the following cmake options:

  * -DLLVM_ENABLE_SPHINX=ON
  * -DORC_RT_INCLUDE_DOCS=ON

After configuring ORC-RT with these options the make rule `docs-orc-rt-html`
should be available.