General

Profile

jhawthorn (John Hawthorn)

  • Login: jhawthorn
  • Registered on: 12/22/2016
  • Last sign in: 04/08/2026

Issues

open closed Total
Assigned issues 19 68 87
Reported issues 7 26 33

Projects

Project Roles Registered on
Ruby Committer 11/25/2021

Activity

Today

12:25 PM Ruby Revision 0280c61f (git): Convert K&R function definitions in configure.ac
jhawthorn (John Hawthorn)

04/13/2026

11:03 PM Ruby Bug #21997 (Closed): segfault in basicobject
jhawthorn (John Hawthorn)
04:52 PM Ruby Bug #21996 (Open): Crash when modifying instance variables during inspect or Marshal dump
In #15968 describes an issue where instance variables being modified lead to incorrect Marshal output being generated, which was partially solved by checking for the number of IVs changing and raising an exception. However, if enough IVs... jhawthorn (John Hawthorn)
03:46 PM Ruby Revision ab324956 (git): Avoid array resize in rb_obj_instance_variables
We know (an estimate of) the ivar count upfront (+/- hidden internal
fields), from the shape, so we should reserve the expected length
upfront.
jhawthorn (John Hawthorn)
03:46 PM Ruby Revision 3a90afd1 (git): Avoid atomic exchange in rb_free_tmp_buffer
Usually RB_ALLOCV_N uses alloca for small allocations, and in that case
the value is 0, and we should not need to atomic exchange it back to 0.
I'm actually not sure why we need atomic operations here anyways.
jhawthorn (John Hawthorn)

04/10/2026

07:56 AM Ruby Feature #21987: Assume `chdir(2)` isn't called and cache `rb_dir_getwd_ospath()`
byroot (Jean Boussier) wrote:
> For some implementations, allocating a `T_DATA` to avoid leaks in case of failure.
Is this still the case? I removed some of this in https://github.com/ruby/ruby/commit/126b657bd103a1abf4b572ade557ffdc...
jhawthorn (John Hawthorn)
12:39 AM Ruby Revision 4c2ae6e2 (git): Always ensure room in rb_obj_embedded_size
Although the issue only occurred on debug builds, we should always be
requesting a size large enough to fit the object when it expands to the
heap, rather than just hoping the GC provides enough room.
jhawthorn (John Hawthorn)

04/09/2026

08:55 PM Ruby Revision 0b5862f4 (git): Don't use fixed-size hashes for cdhash
This caused out of bounds writes because of converting to a st_table.
Co-authored-by: Luke Gruber <luke.gru@gmail.com>
Co-authored-by: Matt Valentine-House <matt@eightbitraptor.com>
jhawthorn (John Hawthorn)
08:55 PM Ruby Revision 8aa2322b (git): Add slot size assertion to ar_force_convert_table
Co-authored-by: Luke Gruber <luke.gru@gmail.com>
Co-authored-by: Matt Valentine-House <matt@eightbitraptor.com>
jhawthorn (John Hawthorn)

04/06/2026

10:36 PM Ruby Revision a2a69b42 (git): Add assertion to rb_class_alloc
We should only ever call rb_class_alloc with a T_CLASS. Adding this
assert/assumption allows us to elide later checks for T_CLASS>
jhawthorn (John Hawthorn)

Also available in: Atom