jvm 0.4.1

Core abstractions and runtime services for embeddable JVM implementations
Documentation
1
2
3
4
5
6
7
8
9
use alloc::vec::Vec;

use crate::ClassInstance;

/// Discovers roots in a consumer's execution state during synchronous collection.
/// Implementations must only inspect existing state, without calling JVM APIs or mutating the object inventory.
pub trait ExternalRoots: Send + Sync {
    fn roots(&self, objects: &[&dyn ClassInstance]) -> anyhow::Result<Vec<usize>>;
}