This commit is contained in:
2026-03-24 13:40:40 +00:00
parent 3fba722b50
commit 49025b1055
4 changed files with 115 additions and 63 deletions
+9
View File
@@ -74,6 +74,15 @@ pub enum ObjectKind {
/// User-defined/native host object. Payload shape is host-defined.
UserData = 5,
/// Coroutine object: suspended execution context with its own stack/frames.
///
/// Notes:
/// - Stack/frames are stored in typed fields inside the heap storage
/// (not inside raw `payload` bytes) so the GC can traverse their
/// contained `HeapRef`s directly.
/// - `payload_len` is 0 for this fixed-layout object.
Coroutine = 6,
// Future kinds must be appended here to keep tag numbers stable.
}