Commit f18d03b 1 parent 57a9874 commit f18d03b Copy full SHA for f18d03b
File tree 2 files changed +11
-1
lines changed
docs/userguide/src/migration
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ API changes:
55
55
* ` is_movable `
56
56
* ` is_reachable `
57
57
- module ` memory_manager `
58
+ + ` is_mmtk_object ` : It now requires the address parameter to be non-zero and word-aligned.
59
+ * Otherwise it will not be a legal ` ObjectReference ` in the first place. The user should
60
+ filter out such illegal values.
58
61
+ The following functions no longer have the ` <VM> ` type argument.
59
62
* ` find_object_from_internal_pointer `
60
63
* ` is_in_mmtk_space `
@@ -68,6 +71,13 @@ API changes:
68
71
- trait ` ObjectModel `
69
72
+ ` IN_OBJECT_ADDRESS_OFFSET ` : removed because it is no longer needed.
70
73
74
+ See also:
75
+
76
+ - PR: < https://github.com/mmtk/mmtk-core/issues/1170 >
77
+ - Examples:
78
+ + https://github.com/mmtk/mmtk-openjdk/pull/286 : a simple case
79
+ + https://github.com/mmtk/mmtk-jikesrvm/issues/178 : a VM that needs much change for this
80
+
71
81
## 0.27.0
72
82
73
83
### ` is_mmtk_object ` returns `Option<ObjectReference >
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ pub trait Region: Copy + PartialEq + PartialOrd {
125
125
debug_assert ! ( self . start( ) . as_usize( ) < usize :: MAX - ( n << Self :: LOG_BYTES ) ) ;
126
126
Self :: from_aligned_address ( self . start ( ) + ( n << Self :: LOG_BYTES ) )
127
127
}
128
- /// Return the region that contains the object (by its cell address) .
128
+ /// Return the region that contains the object.
129
129
fn containing ( object : ObjectReference ) -> Self {
130
130
Self :: from_unaligned_address ( object. to_raw_address ( ) )
131
131
}
You can’t perform that action at this time.
0 commit comments