## Description `IO::Buffer` allocates its memory with [`calloc`](https://github.com/ruby/ruby/blob/215a554542bc7835cd72d966a7de380f048bebb8/io_buffer.c#L262) or [`mmap`](https://github.com/ruby/ruby/blob/215a554542bc7835cd72d966a7de38...himura467 (Akito Shitara)
kou (Kouhei Sutou) wrote in #note-3: > Open question 1: > ... Thanks. I wrote question 1 with `rb_io_buffer_new` in mind, where the C code that creates the buffer owns the memory and invalidates the buffer before releasing it. The same...himura467 (Akito Shitara)
* [Misc #22506] Clarify read-only, lock and freeze in IO::Buffer (himura467) * I'd like to confirm the proposed meanings of read-only, lock and freeze in IO::Buffer, so the implementation can follow them.himura467 (Akito Shitara)
Eregon (Benoit Daloze) wrote in #note-1: > A frozen buffer might still be moved (by the GC) though, which needs to be prevented during native calls (e.g. `write(2)`). > ... Thanks. As far as I understand, INTERNAL and MAPPED memory, an...himura467 (Akito Shitara)
I've opened https://bugs.ruby-lang.org/issues/22506 to agree on what read-only, lock and freeze mean for `IO::Buffer`, following the discussion on `freeze` here. It would be great to continue that discussion there.himura467 (Akito Shitara)
Following https://bugs.ruby-lang.org/issues/22274#note-16, I'd like to agree on what each of these means for `IO::Buffer`, so that the remaining fixes follow one model. This is a proposal, and I'd appreciate corrections. | | What it p...himura467 (Akito Shitara)