Skip to content

Commit

Permalink
Bump version to v0.9, update Rust to nightly-2021-12-05 (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinsoon authored Dec 19, 2021
1 parent 519e8f3 commit 5c4e9ea
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
0.9.0 (2021-12-16)
===

GC Plans
---
* Added a Lisp2-style mark compact plan.
* Added a GCWorkContext type for each plan which specifies the types used for this plan's GC work packet.
* Changed the allocation semantics mapping for each plan. Now each plan has 1-to-1 mapping between allocation semantics and spaces.

Policies
---
* Fixed a few bugs for Immix space when `DEFRAG` is disabled.

Misc
---
* Added an option `precise_stress` (which defaults to `true`). For precise stress test, MMTk will check for stress GC in
each allocation (including thread local fastpath allocation). For non-precise stress test, MMTk only checks for stress GC in global allocation.
* Refactored the code about counting scanned stacks to make it easier to read.

0.8.0 (2021-11-01)
===

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mmtk"
version = "0.8.0"
version = "0.9.0"
authors = ["The MMTk Developers <>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2021-10-29
nightly-2021-12-05
2 changes: 2 additions & 0 deletions src/scheduler/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ pub struct WorkerLocalStat<C> {
_phantom: PhantomData<C>,
}

unsafe impl<C> Send for WorkerLocalStat<C> {}

impl<C> Default for WorkerLocalStat<C> {
fn default() -> Self {
WorkerLocalStat {
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler/work_counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl<T: 'static + WorkCounter + Clone> WorkCounterClone for T {
/// the same work packet and the types are not statically known.
/// The overhead should be negligible compared with the cost of executing
/// a work packet.
pub(super) trait WorkCounter: WorkCounterClone + std::fmt::Debug {
pub(super) trait WorkCounter: WorkCounterClone + std::fmt::Debug + Send {
// TODO: consolidate with crate::util::statistics::counter::Counter;
/// Start the counter
fn start(&mut self);
Expand Down

0 comments on commit 5c4e9ea

Please sign in to comment.