зеркало из https://github.com/github/ruby.git
[memory_view] Acquire VM lock while running exported_object_registry_free
exported_object_registry is freed at exit, so this change is just in case.
This commit is contained in:
Родитель
01ab29cc28
Коммит
9636d14f6f
|
@ -51,11 +51,11 @@ exported_object_registry_mark(void *ptr)
|
|||
static void
|
||||
exported_object_registry_free(void *ptr)
|
||||
{
|
||||
// Note that calling RB_VM_LOCK_ENTER here is unnecessary now.
|
||||
// But it may be changed in the future.
|
||||
RB_VM_LOCK_ENTER();
|
||||
st_clear(exported_object_table);
|
||||
st_free_table(exported_object_table);
|
||||
exported_object_table = NULL;
|
||||
RB_VM_LOCK_LEAVE();
|
||||
}
|
||||
|
||||
const rb_data_type_t rb_memory_view_exported_object_registry_data_type = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче