mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Update doc for ObjectSpace.memsize_of
This commit is contained in:
parent
7816a04d97
commit
78820e86c7
1 changed files with 4 additions and 3 deletions
|
@ -38,10 +38,11 @@
|
|||
* information as only a *HINT*. Especially, the size of +T_DATA+ may not be
|
||||
* correct.
|
||||
*
|
||||
* This method is only expected to work with C Ruby.
|
||||
* This method is only expected to work with CRuby.
|
||||
*
|
||||
* From Ruby 2.2, memsize_of(obj) returns a memory size includes
|
||||
* sizeof(RVALUE).
|
||||
* From Ruby 3.2 with Variable Width Allocation, it returns the actual slot
|
||||
* size used plus any additional memory allocated outside the slot (such
|
||||
* as external strings, arrays, or hash tables).
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue