1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Use the `{likely, unlikely}` provided by compiler when using nightly
//! Memory Management ToolKit (MMTk) is a portable and high performance memory manager
//! that includes various garbage collection algorithms and provides clean and efficient
//! interfaces to cooperate with language implementations. MMTk features highly modular
//! and highly reusable designs. It includes components such as allocators, spaces and
//! work packets that GC implementers can choose from to compose their own GC plan easily.
//!
//! Logically, this crate includes these major parts:
//! * GC components:
//! * [Allocators](util/alloc/allocator/trait.Allocator.html): handlers of allocation requests which allocate objects to the bound space.
//! * [Policies](policy/space/trait.Space.html): definitions of semantics and behaviors for memory regions.
//! Each space is an instance of a policy, and takes up a unique proportion of the heap.
//! * [Work packets](scheduler/work/trait.GCWork.html): units of GC work scheduled by the MMTk's scheduler.
//! * [GC plans](plan/global/trait.Plan.html): GC algorithms composed from components.
//! * [Heap implementations](util/heap/index.html): the underlying implementations of memory resources that support spaces.
//! * [Scheduler](scheduler/scheduler/struct.GCWorkScheduler.html): the MMTk scheduler to allow flexible and parallel execution of GC work.
//! * Interfaces: bi-directional interfaces between MMTk and language implementations
//! i.e. [the memory manager API](memory_manager/index.html) that allows a language's memory manager to use MMTk
//! and [the VMBinding trait](vm/trait.VMBinding.html) that allows MMTk to call the language implementation.
extern crate lazy_static;
extern crate log;
extern crate downcast_rs;
extern crate static_assertions;
extern crate probe;
pub use MMTKBuilder;
pub use MMAPPER;
pub use MMTK;
pub use crateLiveBytesStats;
pub use crate;