Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 9863:b2141bc6e98e
option values are either initialized upon creation or they must provide a lazily initialized value
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 04 Jun 2013 15:42:42 +0200 |
parents | e876c2a6954f |
children | 063a712fe8d8 |
comparison
equal
deleted
inserted
replaced
9858:538ac2cf3383 | 9863:b2141bc6e98e |
---|---|
73 | 73 |
74 @Option(help = "Time limit in milliseconds for bootstrap (-1 for no limit)") | 74 @Option(help = "Time limit in milliseconds for bootstrap (-1 for no limit)") |
75 private static final OptionValue<Integer> TimedBootstrap = new OptionValue<>(-1); | 75 private static final OptionValue<Integer> TimedBootstrap = new OptionValue<>(-1); |
76 | 76 |
77 @Option(help = "Number of compilation threads to use") | 77 @Option(help = "Number of compilation threads to use") |
78 private static final OptionValue<Integer> Threads = new OptionValue<Integer>(1) { | 78 private static final OptionValue<Integer> Threads = new OptionValue<Integer>() { |
79 | 79 |
80 @Override | 80 @Override |
81 public Integer initialValue() { | 81 public Integer initialValue() { |
82 return Runtime.getRuntime().availableProcessors(); | 82 return Runtime.getRuntime().availableProcessors(); |
83 } | 83 } |