Mercurial > hg > graal-compiler
changeset 7127:4632b14e56dd
Snippets cannot have speculative optimizations since they have to be valid for the entire run of the VM
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 04 Dec 2012 10:44:41 -0800 |
parents | ce248dc0a656 |
children | b16fdf354ba5 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Mon Dec 03 17:54:05 2012 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Tue Dec 04 10:44:41 2012 -0800 @@ -136,7 +136,8 @@ @Override public void run() { - Assumptions assumptions = new Assumptions(GraalOptions.OptAssumptions); + // Snippets cannot have speculative optimizations since they have to be valid for the entire run of the VM. + Assumptions assumptions = new Assumptions(false); VMToCompilerImpl.this.intrinsifyArrayCopy = new IntrinsifyArrayCopyPhase(runtime, assumptions); SnippetInstaller installer = new SnippetInstaller(runtime, assumptions, runtime.getGraalRuntime().getTarget()); GraalIntrinsics.installIntrinsics(installer);