• Sergey Vojtovich's avatar
    Allocate lock_sys statically · 131d9a5d
    Sergey Vojtovich authored
    There is only one lock_sys. Allocate it statically in order to avoid
    dereferencing a pointer whenever accessing it. Also, align some
    members to their own cache line in order to avoid false sharing.
    
    lock_sys_t::create(): The deferred constructor.
    
    lock_sys_t::close(): The early destructor.
    131d9a5d
lock0lock.cc 210 KB