aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 23:26:01 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 23:26:01 +0000
commit14ec77d1793767fb00cdf2f945ec7e5d7a1ae8bc (patch)
tree3033602c828337c1f5971ebe84e8160d9ddf756c /doc
parent98544c372d948717de22afc86d162e411f1fb5f1 (diff)
downloadruby-14ec77d1793767fb00cdf2f945ec7e5d7a1ae8bc.tar.gz
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/extension.ja.rdoc4
-rw-r--r--doc/extension.rdoc8
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc
index 9fe5edbecb..7cec8c77a7 100644
--- a/doc/extension.ja.rdoc
+++ b/doc/extension.ja.rdoc
@@ -761,7 +761,7 @@ RUBY_TYPED_FREE_IMMEDIATELY ::
指定しない場合はdfree呼び出しは遅延され, ファイナライザと
同じタイミングで実行されます.
-RUBY_TYPED_WB_PROTECTED ::
+RUBY_TYPED_WB_PROTECTED ::
オブジェクトの実装がライトバリアをサポートしていることを示
します.このフラグを指定するとRubyはそのオブジェクトに対し
@@ -769,7 +769,7 @@ RUBY_TYPED_WB_PROTECTED ::
ただし,指定する場合はユーザーはそのオブジェクトのすべての
メソッドの実装に適切にライトバリアを挿入する責任があります.
さもなくばRubyは実行時にクラッシュする可能性があります.
-
+
ライトバリアについてはdoc/extension.rdocのAppendix D
"Generational GC"も参照してください.
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index eddbf4589b..0cb1d005a3 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -670,7 +670,7 @@ to be valid as a C or Ruby identifier.
These dmark / dfree functions are invoked during GC execution. No
object allocations are allowed during it, so do not allocate ruby
objects inside them.
-
+
dmark is a function to mark Ruby objects referred from your struct.
It must mark all references from your struct with rb_gc_mark or
its family if your struct keeps such references.
@@ -688,7 +688,7 @@ But it is still recommended to avoid 0.
You have to fill reserved and parent with 0.
You can fill "data" with an arbitrary value for your use.
-Ruby does nothing with the member.
+Ruby does nothing with the member.
flags is a bitwise-OR of the following flag values.
Since they require deep understanding of garbage collector in Ruby,
@@ -696,7 +696,7 @@ you can just set 0 to flags if you are not sure.
RUBY_TYPED_FREE_IMMEDIATELY ::
- This flag makes the garbage collector immediately invoke dfree()
+ This flag makes the garbage collector immediately invoke dfree()
during GC when it need to free your struct.
You can specify this flag if the dfree never unlocks Ruby's
internal lock (GVL).
@@ -709,7 +709,7 @@ RUBY_TYPED_WB_PROTECTED ::
It shows that implementation of the object supports write barriers.
If this flag is set, Ruby is better able to do garbage collection
of the object.
-
+
When it is set, however, you are responsible for putting write
barriers in all implementations of methods of that object as
appropriate. Otherwise Ruby might crash while running.