Mercurial > hg > truffle
comparison src/cpu/x86/vm/stubGenerator_x86_64.cpp @ 671:d0994e5bebce
6822204: volatile fences should prefer lock:addl to actual mfence instructions
Reviewed-by: kvn, phh
author | never |
---|---|
date | Thu, 26 Mar 2009 14:31:45 -0700 |
parents | bd441136a5ce |
children | df6caf649ff7 |
comparison
equal
deleted
inserted
replaced
668:90a66aa50514 | 671:d0994e5bebce |
---|---|
635 // | 635 // |
636 // Result: | 636 // Result: |
637 address generate_orderaccess_fence() { | 637 address generate_orderaccess_fence() { |
638 StubCodeMark mark(this, "StubRoutines", "orderaccess_fence"); | 638 StubCodeMark mark(this, "StubRoutines", "orderaccess_fence"); |
639 address start = __ pc(); | 639 address start = __ pc(); |
640 __ mfence(); | 640 __ membar(Assembler::StoreLoad); |
641 __ ret(0); | 641 __ ret(0); |
642 | 642 |
643 return start; | 643 return start; |
644 } | 644 } |
645 | 645 |