Mercurial > hg > graal-compiler
comparison src/share/vm/opto/type.cpp @ 6197:d2a62e0f25eb
6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking
Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain
author | zgu |
---|---|
date | Thu, 28 Jun 2012 17:03:16 -0400 |
parents | c7f3d0b4570f |
children | 24b9c7f4cae6 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
206 // compilations (stub compilations) occur serially. If they are | 206 // compilations (stub compilations) occur serially. If they are |
207 // changed to proceed in parallel, then this section will need | 207 // changed to proceed in parallel, then this section will need |
208 // locking. | 208 // locking. |
209 | 209 |
210 Arena* save = current->type_arena(); | 210 Arena* save = current->type_arena(); |
211 Arena* shared_type_arena = new Arena(); | 211 Arena* shared_type_arena = new (mtCompiler)Arena(); |
212 | 212 |
213 current->set_type_arena(shared_type_arena); | 213 current->set_type_arena(shared_type_arena); |
214 _shared_type_dict = | 214 _shared_type_dict = |
215 new (shared_type_arena) Dict( (CmpKey)Type::cmp, (Hash)Type::uhash, | 215 new (shared_type_arena) Dict( (CmpKey)Type::cmp, (Hash)Type::uhash, |
216 shared_type_arena, 128 ); | 216 shared_type_arena, 128 ); |