xo-interpreter2 stack: plumbing for aux_mm and use opportunistically
This commit is contained in:
parent
8ff02d52c1
commit
2191eec0f8
4 changed files with 133 additions and 141 deletions
|
|
@ -19,15 +19,28 @@ namespace xo {
|
|||
|
||||
VsmConfig() = default;
|
||||
|
||||
VsmConfig with_debug_flag(bool x) const {
|
||||
VsmConfig retval = *this;
|
||||
retval.debug_flag_ = x;
|
||||
return retval;
|
||||
}
|
||||
|
||||
/** true for interactive parser session; false for batch session **/
|
||||
bool interactive_flag_ = true;
|
||||
|
||||
/** true to enable logging **/
|
||||
bool debug_flag_ = false;
|
||||
|
||||
/** reader configuration **/
|
||||
ReaderConfig rdr_config_;
|
||||
/** Configuration for allocator/collector.
|
||||
* TODO: may want to make CollectorConfig polymorphic
|
||||
**/
|
||||
X1CollectorConfig x1_config_ = X1CollectorConfig().with_size(4*1024*1024);
|
||||
X1CollectorConfig x1_config_ = X1CollectorConfig().with_name("gc").with_size(4*1024*1024);
|
||||
/** Configuration for handful of non-moveable high-level objects
|
||||
* e.g. DArenaHashMap in global symtab
|
||||
**/
|
||||
ArenaConfig fixed_config_ = ArenaConfig().with_name("fixed").with_size(4*1024);
|
||||
/** Configuration for error allocator
|
||||
* TODO: may want to make ArenaConfig polymorphic
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue