File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
//! This module contains code useful for tracing,
2
2
//! i.e. visiting the reachable objects by traversing all or part of an object graph.
3
3
4
- use crate :: scheduler:: gc_work:: { ProcessEdgesWork , SlotOf , EDGES_WORK_BUFFER_SIZE } ;
5
- use crate :: scheduler:: { GCWorker , WorkBucketStage } ;
4
+ use crate :: scheduler:: gc_work:: { ProcessEdgesWork , SlotOf } ;
5
+ use crate :: scheduler:: { GCWorker , WorkBucketStage , EDGES_WORK_BUFFER_SIZE } ;
6
6
use crate :: util:: ObjectReference ;
7
7
use crate :: vm:: SlotVisitor ;
8
8
Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ use crate::*;
10
10
use std:: marker:: PhantomData ;
11
11
use std:: ops:: { Deref , DerefMut } ;
12
12
13
- /// Buffer size for [`ProcessEdgesWork`] work packets. This constant is exposed to binding
14
- /// developers so that they can use this value for places in their binding that interface with the
15
- /// work packet system, specifically the transitive closure via `ProcessEdgesWork` work packets
16
- /// such as roots gathering code or weak reference processing. In order to have better load
17
- /// balancing, it is recommended that binding developers use this constant to split work up into
18
- /// different work packets.
19
- pub const EDGES_WORK_BUFFER_SIZE : usize = 4096 ;
20
-
21
13
pub struct ScheduleCollection ;
22
14
23
15
impl < VM : VMBinding > GCWork < VM > for ScheduleCollection {
Original file line number Diff line number Diff line change 1
1
//! A general scheduler implementation. MMTk uses it to schedule GC-related work.
2
2
3
+ /// Buffer size for [`ProcessEdgesWork`] work packets. This constant is exposed to binding
4
+ /// developers so that they can use this value for places in their binding that interface with the
5
+ /// work packet system, specifically the transitive closure via `ProcessEdgesWork` work packets
6
+ /// such as roots gathering code or weak reference processing. In order to have better load
7
+ /// balancing, it is recommended that binding developers use this constant to split work up into
8
+ /// different work packets.
9
+ pub const EDGES_WORK_BUFFER_SIZE : usize = 4096 ;
10
+
3
11
pub ( crate ) mod affinity;
4
12
5
13
#[ allow( clippy:: module_inception) ]
You can’t perform that action at this time.
0 commit comments