File tree 7 files changed +3
-18
lines changed
7 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 1
- extern crate libc;
2
- extern crate mmtk;
3
-
4
1
use std:: sync:: OnceLock ;
5
2
6
3
use mmtk:: vm:: VMBinding ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ See also:
80
80
81
81
## 0.27.0
82
82
83
- ### ` is_mmtk_object ` returns `Option<ObjectReference >
83
+ ### ` is_mmtk_object ` returns ` Option<ObjectReference> `
84
84
85
85
``` admonish tldr
86
86
`memory_manager::is_mmtk_object` now returns `Option<ObjectReference>` instead of `bool`.
Original file line number Diff line number Diff line change 1
- extern crate proc_macro;
2
- extern crate proc_macro_error;
3
- extern crate quote;
4
- extern crate syn;
5
-
6
1
use proc_macro:: TokenStream ;
7
2
use proc_macro_error:: proc_macro_error;
8
3
use syn:: parse_macro_input;
Original file line number Diff line number Diff line change 27
27
//! i.e. [the memory manager API](memory_manager/index.html) that allows a language's memory manager to use MMTk
28
28
//! and [the VMBinding trait](vm/trait.VMBinding.html) that allows MMTk to call the language implementation.
29
29
30
- extern crate libc;
31
- extern crate strum_macros;
32
30
#[ macro_use]
33
31
extern crate lazy_static;
34
32
#[ macro_use]
35
33
extern crate log;
36
- extern crate atomic_traits;
37
- extern crate crossbeam;
38
- extern crate num_cpus;
39
34
#[ macro_use]
40
35
extern crate downcast_rs;
41
36
#[ macro_use]
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ impl ReferenceProcessor {
223
223
224
224
// These funcions call `trace_object()`, which will ensure the object and its descendents will
225
225
// be traced. They are only called in steps that expand the transitive closure. That include
226
- // retaining soft references, and (for MarkSweep ) tracing objects for forwarding.
226
+ // retaining soft references, and (for MarkCompact ) tracing objects for forwarding.
227
227
// Note that finalizers also expand the transitive closure.
228
228
// These functions are intended to make the code easier to understand.
229
229
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub trait ReferenceGlue<VM: VMBinding> {
28
28
/// Get the referent from a weak reference object.
29
29
///
30
30
/// Arguments:
31
- /// * `object`: Reference to the referent. `None`` if the object currently does not point to a
31
+ /// * `object`: Reference to the referent. `None` if the object currently does not point to a
32
32
/// referent. This may happen if the reference has been cleared.
33
33
fn get_referent ( object : ObjectReference ) -> Option < ObjectReference > ;
34
34
Original file line number Diff line number Diff line change 1
- extern crate mmtk;
2
-
3
1
use mmtk:: util:: Address ;
4
2
5
3
#[ test]
You can’t perform that action at this time.
0 commit comments