Permalink
Browse files

Use proper onstack reference for compiled machine code

  • Loading branch information...
1 parent 3be4468 commit 580680b88edd647a8cfe8130add2199fc1b401d5 @dbussink dbussink committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 vm/builtin/compiledcode.cpp
@@ -141,7 +141,7 @@ namespace rubinius {
// be sure that mcode is completely initialized before it's set.
// Otherwise another thread might see a partially initialized
// MachineCode.
- atomic::write(&machine_code_, mcode);
+ atomic::write(&self->machine_code_, mcode);
}
self->hard_unlock(state, gct);

0 comments on commit 580680b

Please sign in to comment.