File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,15 @@ pub fn bind_mutator<VM: VMBinding>(
121
121
mutator
122
122
}
123
123
124
- /// Report to MMTk that a mutator is no longer needed. A binding should not attempt
125
- /// to use the mutator after this call. MMTk will not attempt to reclaim the memory for the
126
- /// mutator, so a binding should properly reclaim the memory for the mutator after this call.
124
+ /// Report to MMTk that a mutator is no longer needed. All mutator state is flushed before it is
125
+ /// destroyed. A binding should not attempt to use the mutator after this call. MMTk will not
126
+ /// attempt to reclaim the memory for the mutator, so a binding should properly reclaim the memory
127
+ /// for the mutator after this call.
127
128
///
128
129
/// Arguments:
129
130
/// * `mutator`: A reference to the mutator to be destroyed.
130
131
pub fn destroy_mutator < VM : VMBinding > ( mutator : & mut Mutator < VM > ) {
132
+ mutator. flush ( ) ;
131
133
mutator. on_destroy ( ) ;
132
134
}
133
135
You can’t perform that action at this time.
0 commit comments