File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl PlanConstraints {
56
56
max_non_los_default_alloc_bytes : MAX_INT ,
57
57
max_non_los_copy_bytes : MAX_INT ,
58
58
// As `LAZY_SWEEP` is true, needs_linear_scan is true for all the plans. This is strange.
59
- // https://github.com/mmtk/mmtk-core/issues/1027 trackes the issue.
59
+ // https://github.com/mmtk/mmtk-core/issues/1027 tracks the issue.
60
60
needs_linear_scan : crate :: util:: constants:: SUPPORT_CARD_SCANNING
61
61
|| crate :: util:: constants:: LAZY_SWEEP ,
62
62
needs_concurrent_workers : false ,
@@ -69,9 +69,9 @@ impl PlanConstraints {
69
69
}
70
70
}
71
71
72
- /// The default plan constraints. Each plan should define their own plan contraints .
72
+ /// The default plan constraints. Each plan should define their own plan constraints .
73
73
/// They can start from the default constraints and explicitly set some of the fields.
74
74
pub ( crate ) const DEFAULT_PLAN_CONSTRAINTS : PlanConstraints = PlanConstraints :: default ( ) ;
75
75
76
- // Use 16 pages as the size limit for non-LOS objects to avoid copying large objects
77
- pub const MAX_NON_LOS_ALLOC_BYTES_COPYING_PLAN : usize = 16 << LOG_BYTES_IN_PAGE ;
76
+ // Use two pages as the size limit for non-LOS objects to avoid copying large objects
77
+ pub const MAX_NON_LOS_ALLOC_BYTES_COPYING_PLAN : usize = 2 << LOG_BYTES_IN_PAGE ;
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ use crate::util::conversions::bytes_to_pages_up;
9
9
use crate :: util:: opaque_pointer:: * ;
10
10
use crate :: vm:: VMBinding ;
11
11
12
- const BYTES_IN_PAGE : usize = 1 << 12 ;
13
- const BLOCK_SIZE : usize = 8 * BYTES_IN_PAGE ;
12
+ /// Size of a bump allocator block. Currently it is set to 32 KB.
13
+ const BLOCK_SIZE : usize = 8 << crate :: util :: constants :: LOG_BYTES_IN_PAGE ;
14
14
const BLOCK_MASK : usize = BLOCK_SIZE - 1 ;
15
15
16
16
/// A bump pointer allocator. It keeps a thread local allocation buffer,
You can’t perform that action at this time.
0 commit comments