Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2545:bb050fe2901d
Fixed regression wrt write barriers.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 21:38:22 +0200 |
parents | c58a301eb2d7 |
children | e1b3db8031ee |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Wed Apr 27 21:29:17 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java Wed Apr 27 21:38:22 2011 +0200 @@ -1597,7 +1597,7 @@ } public boolean requiresNullCheck() { - return current == null || current instanceof InstanceOf || current instanceof CheckCast;//current.canTrap(); + return current == null || current.canTrap(); } public boolean requiresBoundsCheck() { @@ -1605,11 +1605,11 @@ } public boolean requiresReadBarrier() { - return current == null || current.kind == CiKind.Object; + return current == null || true; } public boolean requiresWriteBarrier() { - return current == null || current.kind == CiKind.Object; + return current == null || true; } public boolean requiresArrayStoreCheck() {