[ruby-cvs:62249] ngoto:r55086 (trunk): capa should be even number on 64-bit SPARC for 8-byte word alignment

ngoto at ruby-lang.org ngoto at ruby-lang.org
Fri May 20 23:55:23 JST 2016


ngoto	2016-05-20 23:55:23 +0900 (Fri, 20 May 2016)

  New Revision: 55086

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

  Log:
    capa should be even number on 64-bit SPARC for 8-byte word alignment
    
    * id_table.c (list_id_table_init): When unaligned word access is
      prohibited and sizeof(VALUE) is 8 (64-bit machines),
      capa should always be even number for 8-byte word alignment
      of the values of a table. This code assumes that sizeof(ID) is 4,
      sizeof(VALUE) is 8, and xmalloc() returns 8-byte aligned memory.
      This fixes bus error on 64-bit SPARC Solaris 10.
      [Bug #12406][ruby-dev:49631]

  Modified files:
    trunk/ChangeLog
    trunk/id_table.c


More information about the ruby-cvs mailing list