mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
98544c372d
commit
14ec77d179
2 changed files with 6 additions and 6 deletions
|
@ -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"も参照してください.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue