~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to erts/emulator/beam/erl_process_lock.c

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
    erts_smp_spinlock_init(&wtr_lock, "proc_lck_wtr_alloc");
141
141
    for (i = 0; i < ERTS_NO_OF_PIX_LOCKS; i++) {
142
142
#if ERTS_PROC_LOCK_MUTEX_IMPL
 
143
#ifdef ERTS_ENABLE_LOCK_COUNT
 
144
        erts_smp_mtx_init_x(&erts_pix_locks[i].u.mtx, "pix_lock", make_small(i));
 
145
#else
143
146
        erts_smp_mtx_init(&erts_pix_locks[i].u.mtx, "pix_lock");
 
147
#endif
 
148
#else
 
149
#ifdef ERTS_ENABLE_LOCK_COUNT
 
150
        erts_smp_spinlock_init_x(&erts_pix_locks[i].u.spnlck, "pix_lock", make_small(i));
144
151
#else
145
152
        erts_smp_spinlock_init(&erts_pix_locks[i].u.spnlck, "pix_lock");
146
153
#endif
 
154
#endif
147
155
    }
148
156
    waiter_free_list = NULL;
149
157
    queue_free_list = NULL;