ruby-changes:64597
From: Kenta <ko1@a...>
Date: Fri, 25 Dec 2020 20:11:48 +0900 (JST)
Subject: [ruby-changes:64597] 7a4b8d8700 (master): [memory_view] Fix a comment
https://git.ruby-lang.org/ruby.git/commit/?id=7a4b8d8700 From 7a4b8d8700ebbe8cefcce05311338448ee0fb5b5 Mon Sep 17 00:00:00 2001 From: Kenta Murata <mrkn@m...> Date: Fri, 25 Dec 2020 01:47:09 +0900 Subject: [memory_view] Fix a comment A consumer of a MemoryView no longer guards the original object. [ci skip] diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h index 4996cdb..4492c06 100644 --- a/include/ruby/memory_view.h +++ b/include/ruby/memory_view.h @@ -37,9 +37,7 @@ typedef struct { https://github.com/ruby/ruby/blob/trunk/include/ruby/memory_view.h#L37 } rb_memory_view_item_component_t; typedef struct { - /* The original object that has the memory exported via this memory view. - * The consumer of this memory view has the responsibility to call rb_gc_mark - * for preventing this obj collected by GC. */ + /* The original object that has the memory exported via this memory view. */ VALUE obj; /* The pointer to the exported memory. */ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/