From dbfd14d7f53a56ad639f1de69d8b6979cc061bb7 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Wed, 14 Jun 2023 21:43:31 +1200 Subject: [PATCH] Update comments on bind_mutator (#854) --- src/memory_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memory_manager.rs b/src/memory_manager.rs index 5c736d27c5..045fd41168 100644 --- a/src/memory_manager.rs +++ b/src/memory_manager.rs @@ -97,7 +97,8 @@ pub fn lazy_init_vm_space(mmtk: &'static mut MMTK, start: Add /// of returned boxed mutator is transferred to the binding, and the binding needs to take care of its /// lifetime. For performance reasons, A VM should store the returned mutator in a thread local storage /// that can be accessed efficiently. A VM may also copy and embed the mutator stucture to a thread-local data -/// structure, and use that as a reference to the mutator (it is okay to drop the box once the content is copied). +/// structure, and use that as a reference to the mutator (it is okay to drop the box once the content is copied -- +/// Note that `Mutator` may contain pointers so a binding may drop the box only if they perform a deep copy). /// /// Arguments: /// * `mmtk`: A reference to an MMTk instance.