Skip to content

Commit

Permalink
Correct comp unit mutex setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 10, 2014
1 parent 34a1a35 commit 43991af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/6model/reprs/MVMCompUnit.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ static MVMObject * type_object_for(MVMThreadContext *tc, MVMObject *HOW) {

/* Initializes a new instance. */
static void initialize(MVMThreadContext *tc, MVMSTable *st, MVMObject *root, void *data) {
MVMCompUnitBody *body = (MVMCompUnitBody *)data;
MVMObject *mutextype = tc->instance->boot_types.BOOTReentrantMutex;
MVMROOT(tc, root, {
MVM_ASSIGN_REF(tc, &(root->header), body->update_mutex, REPR(mutextype)->allocate(tc, STABLE(mutextype)));
REPR(mutextype)->initialize(tc, STABLE(mutextype), body->update_mutex, OBJECT_BODY(body->update_mutex));
MVMObject *rm = MVM_repr_alloc_init(tc, tc->instance->boot_types.BOOTReentrantMutex);
MVM_ASSIGN_REF(tc, &(root->header), ((MVMCompUnit *)root)->body.update_mutex, rm);
});
}

Expand Down

0 comments on commit 43991af

Please sign in to comment.