comparison src/share/vm/ci/ciObjectFactory.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 5eb9169b1a14
children 1d7922586cf6
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
109 HandleMark handle_mark(thread); 109 HandleMark handle_mark(thread);
110 110
111 // This Arena is long lived and exists in the resource mark of the 111 // This Arena is long lived and exists in the resource mark of the
112 // compiler thread that initializes the initial ciObjectFactory which 112 // compiler thread that initializes the initial ciObjectFactory which
113 // creates the shared ciObjects that all later ciObjectFactories use. 113 // creates the shared ciObjects that all later ciObjectFactories use.
114 Arena* arena = new Arena(); 114 Arena* arena = new (mtCompiler) Arena();
115 ciEnv initial(arena); 115 ciEnv initial(arena);
116 ciEnv* env = ciEnv::current(); 116 ciEnv* env = ciEnv::current();
117 env->_factory->init_shared_objects(); 117 env->_factory->init_shared_objects();
118 118
119 _initialized = true; 119 _initialized = true;