るりまサーチ

最速Rubyリファレンスマニュアル検索!
59件ヒット [1-59件を表示] (0.014秒)
トップページ > クエリ:GC[x] > クエリ:WeakRef[x]

別のキーワード

  1. gc stat
  2. gc latest_gc_info
  3. _builtin latest_gc_info
  4. _builtin gc
  5. gc enable

ライブラリ

クラス

キーワード

検索結果

WeakRef (38036.0)

weak reference を実現するクラスです。

...weak reference を実現するクラスです。

WeakRef
オブジェクトは与えられたオブジェクトをポイントしますが、
ポイント先のオブジェクトは GC される可能性があります。
アクセスしようとしたときにオブジェクトが GC されてい...
...れば
WeakRef
::RefError が発生します。

delegate も参照してください。

=== サンプルコード

require 'weakref'

foo = Object.new
ref = WeakRef.new(foo)
ref.some_method_of_foo...

WeakRef#weakref_alive? -> bool (27117.0)

参照先のオブジェクトがまだ生きていれば真を返します。 GC されていれば偽を返します。

...参照先のオブジェクトがまだ生きていれば真を返します。
GC
されていれば偽を返します。...

WeakRef#__getobj__ -> object (21012.0)

自身の参照先のオブジェクトを返します。

...自身の参照先のオブジェクトを返します。

@raise WeakRef::RefError GC 済みのオブジェクトを参照した場合に発生します。

@see delegate...

WeakRef::RefError (3016.0)

GC されたオブジェクトを参照しようとしたときに発生する例外です。

...GC されたオブジェクトを参照しようとしたときに発生する例外です。...

ObjectSpace::WeakMap (48.0)

GC の対象になるオブジェクトへの weak reference を持つクラスです。主に WeakRef クラスの内部で使用されるため、weakref ライブラリ 経由で使用してください。

...GC の対象になるオブジェクトへの weak reference を持つクラスです。主に
WeakRef
クラスの内部で使用されるため、weakref ライブラリ
経由で使用してください。...

絞り込み条件を変える

NEWS for Ruby 3.0.0 (42.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...e evaluated code. 4352 17419
* ConditionVariable
* ConditionVariable#wait may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Dir
* Dir.glob and Dir.[] now sort the results by default, and accept the `sort:` keyword option. 8709
* ENV
* ENV.exce...
...acktrace and Fiber#backtrace_locations provide per-fiber backtrace. 16815
* The limitation of Fiber#transfer is relaxed. 17221
* GC
* GC.auto_compact= and GC.auto_compact have been added to control when compaction runs. Setting `auto_compact=` to `true` will cause compaction to occur duri...
...lv
* rinda
* set
* securerandom
* shellwords
* tempfile
* tmpdir
* time
* tsort
* un
* weakref
* The following extensions are promoted to default gems from stdlib.
* digest
* io-nonblock
* io-wait
* nkf
* p...