diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-11-21 19:21:35 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-11-21 19:34:02 +0900 |
| commit | a2df247063453b82169788f09f6a413d44ce96f9 (patch) | |
| tree | 5563095257c36541352d4d27f41703b23acb0311 /mrbgems/mruby-bin-mruby | |
| parent | 79e73dd86a72949e52a9eba0ea7abc294b40b16c (diff) | |
| download | mruby-a2df247063453b82169788f09f6a413d44ce96f9.tar.gz mruby-a2df247063453b82169788f09f6a413d44ce96f9.zip | |
Introduce `mrb_ssize` type for buffer size on memory; ref #4483
Previously, `mrb_int` was used as the type that represents the buffer size
on memory, but the sizes of `RString` and `RArray` exceed 6 words when
`MRB_INT64` is enabled on 32-bit CPU.
I don't think it is necessary to be able to represent the buffer size on
memory that exceeds the virtual address space. Therefore, for this purpose,
introduce `mrb_ssize` which doesn't exceed the sizes of `mrb_int` and
pointer.
I think all `mrb_int` used for this purpose should be changed to
`mrb_ssize`, but currently only the members of the structures (`RString`,
`mrb_shared_string`, `RArray` and `mrb_shared_array`) are changed.
Diffstat (limited to 'mrbgems/mruby-bin-mruby')
0 files changed, 0 insertions, 0 deletions
