[ruby-cvs:71468] normal:r64376 (trunk): vm_core.h (rb_thread_t): pack small fields together

normal at ruby-lang.org normal at ruby-lang.org
Wed Aug 15 14:54:41 JST 2018


normal	2018-08-15 14:54:41 +0900 (Wed, 15 Aug 2018)

  New Revision: 64376

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

  Log:
    vm_core.h (rb_thread_t): pack small fields together
    
    On a 64-bit system, this reduces rb_thread_t from 536 to 520 bytes.
    Depending on the allocation, this can reduce cacheline access
    for checking the abort_on_exception, report_on_exception and
    pending_interrupt_queue_checked flags.

  Modified files:
    trunk/thread.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list