Mercurial > hg > truffle
changeset 10547:01c902c59e38
Replace unsafe load with readCompressed while reading the previous value in G1 pre barriers (Avoids guard insertion after guard lowering)
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Thu, 27 Jun 2013 11:23:34 +0200 |
parents | a6d6e6afd897 |
children | 74c33d164767 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java Thu Jun 27 11:22:27 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/WriteBarrierSnippets.java Thu Jun 27 11:23:34 2013 +0200 @@ -111,7 +111,7 @@ // If the previous value has to be loaded (before the write), the load is issued. // The load is always issued except the cases of CAS and referent field. if (doLoad) { - previousOop = (Word) Word.fromObject(UnsafeLoadNode.load(field, 0, 0, Kind.Object)); + previousOop = (Word) Word.fromObject(field.readObjectCompressed(0)); } // If the previous value is null the barrier should not be issued. if (previousOop.notEqual(0)) {