~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090215164252-dxpjjuq108nz4noa
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:
180
180
        rp = erts_pid2proc_not_running(BIF_P, ERTS_PROC_LOCK_MAIN,
181
181
                                       BIF_ARG_1, ERTS_PROC_LOCK_MAIN);
182
182
        if (!rp) {
183
 
            ERTS_BIF_CHK_EXITED(BIF_P);
184
 
            ERTS_SMP_BIF_CHK_RESCHEDULE(BIF_P);
185
183
            BIF_RET(am_false);
186
184
        }
 
185
        if (rp == ERTS_PROC_LOCK_BUSY) {
 
186
            ERTS_BIF_YIELD2(bif_export[BIF_check_process_code_2], BIF_P,
 
187
                            BIF_ARG_1, BIF_ARG_2);
 
188
        }
187
189
        modp = erts_get_module(BIF_ARG_2);
188
190
        res = check_process_code(rp, modp);
189
191
#ifdef ERTS_SMP