From e1f9c4591f6cff440f89bdee0c9d3e002beec431 Mon Sep 17 00:00:00 2001
From: Lukas Stadler <lukas.stadler@oracle.com>
Date: Wed, 4 Nov 2015 15:36:12 +0100
Subject: [PATCH] make FastROption values CompilationFinal

---
 .../src/com/oracle/truffle/r/runtime/FastROptions.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/FastROptions.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/FastROptions.java
index c38b27dc66..97bbe9d0fa 100644
--- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/FastROptions.java
+++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/FastROptions.java
@@ -24,6 +24,8 @@ package com.oracle.truffle.r.runtime;
 
 import java.util.Map.Entry;
 
+import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
+
 /**
  * Options to control the behavior of the FastR system, that relate to the implementation, i.e., are
  * <b>not</b> part of the standard set of R options or command line options. The syntax follows that
@@ -64,7 +66,7 @@ public enum FastROptions {
     private final String help;
     private final boolean isBoolean;
     private final Object defaultValue;
-    Object value;
+    @CompilationFinal Object value;
 
     FastROptions(String help, boolean defaultValue) {
         this(help, defaultValue, false);
-- 
GitLab