るりまサーチ

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

別のキーワード

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

種類

ライブラリ

モジュール

検索結果

GC.compact -> Hash (39107.0)

ヒープをコンパクションします。

...ヒープをコンパクションします。

詳細は15626を参照してください。

@see GC.verify_compaction_references...

GC.auto_compact=(bool) (27191.0)

GC.compact をフルGCで行うかどうかを制御します。

...
GC
.compact をフルGCで行うかどうかを制御します。

true を設定するとフルGCのタイミングででヒープをコンパクションします。

この機能を有効にするとフルGCのパフォーマンスが低下します。

デフォルトは false です。

詳細...
...は17176を参照してください。

@param bool フルGCでコンパクションするかどうかを true か false で設定します。

@see GC.compact GC.auto_compact...

GC.verify_compaction_references(toward: nil, double_heap: nil) -> Hash (27130.0)

コンパクションの参照の一貫性を検証します。

...にして、
全ての移動を確実にするためにヒープをコンパクションして、全ての参照を更新して、
それからフルGCを実行します。
もし T_MOVED への参照をもつオブジェクトがあれば、マークスタックにプッシュされて、
SEGV が...
...起きるでしょう。

@param toward nil か :empty を指定します。
@param double_heap ヒープサイズを2倍にするかどうかを真偽値で指定します。

@return GC.compact の返り値と同じです。

@see GC.compact...

GC.auto_compact -> bool (27113.0)

auto compaction が有効化どうかを返します。

...auto compaction が有効化どうかを返します。

@return auto compaction が有効な場合 true を返します。
そうでなければ false を返します。

@see GC.auto_compact=...

NEWS for Ruby 3.1.0 (72.0)

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

...< A; end
A.subclasses #=> [D, B]
B.subclasses #=> [C]
C.subclasses #=> []
//}

* Enumerable
* 新規メソッド
* Enumerable#compactが追加されました。 17312
* Enumerable#tallyがカウント集計用のハッシュオブジェクトを任意で渡せるように...
...rator::Lazy#compact が追加されました。 17312

* File
* 変更されたメソッド
* File.dirname がパスの階層を取り除く任意の引数を渡せるようになりました。 12194

* GC
* 新規メソッド
* GC.measure_total_time = true でGCの計測を...
...あります。デフォルトで有効になっています。 GC.measure_total_time は現在の設定を返します。 GC.stat[:time] または GC.stat(:time) は、測定された時間をミリ秒で返します。 10917
* GC.total_time が計測された時間をナノ秒で返します...

絞り込み条件を変える

NEWS for Ruby 3.0.0 (54.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...
...ation 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 during major collections. At the moment, compaction adds significant overhead to major colle...
...267
* Queue / SizedQueue
* Queue#pop, SizedQueue#push and related methods may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Ractor
* New class added to enable parallel execution. See rdoc-ref:ractor.md for more details.
* Random
* `Random::DEFA...

NEWS for Ruby 2.4.0 (18.0)

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

...け付けるようになりました。
half には :even, :up, :down が指定可能です。 12548 12958 12953

* Hash
* Hash#compact, Hash#compact! を追加 11818
* Hash#transform_values Hash#transform_values! を追加 12512

* Integer
* Fixnum と Bignum は Integer に...
...show_version() will no longer exits the process, if
RUBY_SHOW_COPYRIGHT_TO_DIE is set to 0. This will be the default in
the future.

* rb_gc_adjust_memory_usage() [Feature #12690]

=== サポートするプラットフォームの変更

* FreeBSD < 4 はもうサポートしていま...

NEWS for Ruby 2.7.0 (18.0)

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

...wメソッドが :receiver オプションを受け付けるように
なりました。 15751

* GC
* 新規メソッド
* ヒープをコンパクションするGC.compactメソッドが追加されました。
このメソッドはヒープの生きているオブジ...