pub fn add_work_packet<VM: VMBinding, W: GCWork<VM>>(
    mmtk: &'static MMTK<VM>,
    bucket: WorkBucketStage,
    packet: W
)
Expand description

Add a work packet to the given work bucket. Note that this simply adds the work packet to the given work bucket, and the scheduler will decide when to execute the work packet.

Arguments:

  • mmtk: A reference to an MMTk instance.
  • bucket: Which work bucket to add this packet to.
  • packet: The work packet to be added.