Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (30 sloc) 1.034 kb
37dc489 Add real Configuration infrastructure
Evan Phoenix authored
1 #ifndef RBX_CONFIGURATION_HPP
2 #define RBX_CONFIGURATION_HPP
3
4 #include "util/configuration.hpp"
5
6 namespace rubinius {
7 class Configuration : public config::Configuration {
8 public:
9 // GC
10 config::Integer gc_bytes;
11 config::Integer gc_large_object;
12 config::Integer gc_lifetime;
13
14 // JIT/Interpreter
15 config::Bool jit_enabled;
16 config::Bool dynamic_interpreter_enabled;
17
18 // Debug
19 config::Bool print_config;
20
21 // defaults
22 static const int default_gc_bytes = 1048576 * 3;
23 static const int default_gc_large_object = 2700;
24 static const int default_gc_lifetime = 6;
25
26 Configuration()
27 : gc_bytes(this, "rbx.gc.bytes", default_gc_bytes)
28 , gc_large_object(this, "rbx.gc.large_object", default_gc_large_object)
29 , gc_lifetime(this, "rbx.gc.lifetime", default_gc_lifetime)
30 , jit_enabled(this, "rbx.jit.enabled")
31 , dynamic_interpreter_enabled(this, "rbx.interpreter.dynamic")
32 , print_config(this, "config.print")
33 {}
34 };
35 }
36
37 #endif
Something went wrong with that request. Please try again.