[ruby-cvs:53944] normal:r46798 (trunk): vm_core.h (struct rb_iseq_struct): stack_max is uint32_t

normal at ruby-lang.org normal at ruby-lang.org
Sun Jul 13 16:01:15 JST 2014


normal	2014-07-13 16:01:09 +0900 (Sun, 13 Jul 2014)

  New Revision: 46798

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46798

  Log:
    vm_core.h (struct rb_iseq_struct): stack_max is uint32_t
    
    * vm_core.h (struct rb_iseq_struct): stack_max is uint32_t
      No program will ever need more than a few megabytes of stack,
      so there's no sense in using a 64-bit counter for stack
      accounting.  Packing this with the 32-bit type enum reduces
      rb_iseq_struct from 312 to 304 bytes on 64-bit systems.

  Modified files:
    trunk/ChangeLog
    trunk/vm_core.h


More information about the ruby-cvs mailing list