Function mmtk::memory_manager::add_work_packets
source · pub fn add_work_packets<VM: VMBinding>(
mmtk: &'static MMTK<VM>,
bucket: WorkBucketStage,
packets: Vec<Box<dyn GCWork<VM>>>
)
Expand description
Bulk add a number of work packets to the given work bucket. Note that this simply adds the work packets to the given work bucket, and the scheduler will decide when to execute the work packets.
Arguments:
mmtk
: A reference to an MMTk instance.bucket
: Which work bucket to add these packets to.packet
: The work packets to be added.