Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/symbolTable.cpp @ 20360:833b0f92429a
8046598: Scalable Native memory tracking development
Summary: Enhance scalability of native memory tracking
Reviewed-by: coleenp, ctornqvi, gtriantafill
author | zgu |
---|---|
date | Wed, 27 Aug 2014 08:19:12 -0400 |
parents | 2c6ef90f030a |
children | 152cf4afc11f |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360:833b0f92429a |
---|---|
72 } | 72 } |
73 | 73 |
74 void SymbolTable::initialize_symbols(int arena_alloc_size) { | 74 void SymbolTable::initialize_symbols(int arena_alloc_size) { |
75 // Initialize the arena for global symbols, size passed in depends on CDS. | 75 // Initialize the arena for global symbols, size passed in depends on CDS. |
76 if (arena_alloc_size == 0) { | 76 if (arena_alloc_size == 0) { |
77 _arena = new (mtSymbol) Arena(); | 77 _arena = new (mtSymbol) Arena(mtSymbol); |
78 } else { | 78 } else { |
79 _arena = new (mtSymbol) Arena(arena_alloc_size); | 79 _arena = new (mtSymbol) Arena(mtSymbol, arena_alloc_size); |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 // Call function for all symbols in the symbol table. | 83 // Call function for all symbols in the symbol table. |
84 void SymbolTable::symbols_do(SymbolClosure *cl) { | 84 void SymbolTable::symbols_do(SymbolClosure *cl) { |