Skip to content

Commit

Permalink
more missing barriers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@658 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Oct 9, 2008
1 parent 19667a4 commit 60accd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion insns.def
Expand Up @@ -1320,7 +1320,7 @@ setinlinecache
{
IC ic = GET_CONST_INLINE_CACHE(dst);

ic->ic_value = val;
GC_WB(&ic->ic_value, val);
ic->ic_vmstat = GET_VM_STATE_VERSION();
}

Expand Down
6 changes: 3 additions & 3 deletions iseq.c
Expand Up @@ -113,18 +113,18 @@ set_relation(rb_iseq_t *iseq, const VALUE parent)
/* set class nest stack */
if (type == ISEQ_TYPE_TOP) {
/* toplevel is private */
iseq->cref_stack = NEW_BLOCK(th->top_wrapper ? th->top_wrapper : rb_cObject);
GC_WB(&iseq->cref_stack, NEW_BLOCK(th->top_wrapper ? th->top_wrapper : rb_cObject));
iseq->cref_stack->nd_file = 0;
iseq->cref_stack->nd_visi = NOEX_PRIVATE;
}
else if (type == ISEQ_TYPE_METHOD || type == ISEQ_TYPE_CLASS) {
iseq->cref_stack = NEW_BLOCK(0); /* place holder */
GC_WB(&iseq->cref_stack, NEW_BLOCK(0)); /* place holder */
iseq->cref_stack->nd_file = 0;
}
else if (RTEST(parent)) {
rb_iseq_t *piseq;
GetISeqPtr(parent, piseq);
iseq->cref_stack = piseq->cref_stack;
GC_WB(&iseq->cref_stack, piseq->cref_stack);
}

if (type == ISEQ_TYPE_TOP ||
Expand Down

0 comments on commit 60accd0

Please sign in to comment.