Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciEnv.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 | ce8f6bb717c9 |
children | dd89808e49ba |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360:833b0f92429a |
---|---|
84 static bool firstEnv = true; | 84 static bool firstEnv = true; |
85 #endif /* PRODUCT */ | 85 #endif /* PRODUCT */ |
86 | 86 |
87 // ------------------------------------------------------------------ | 87 // ------------------------------------------------------------------ |
88 // ciEnv::ciEnv | 88 // ciEnv::ciEnv |
89 ciEnv::ciEnv(CompileTask* task, int system_dictionary_modification_counter) { | 89 ciEnv::ciEnv(CompileTask* task, int system_dictionary_modification_counter) |
90 : _ciEnv_arena(mtCompiler) { | |
90 VM_ENTRY_MARK; | 91 VM_ENTRY_MARK; |
91 | 92 |
92 // Set up ciEnv::current immediately, for the sake of ciObjectFactory, etc. | 93 // Set up ciEnv::current immediately, for the sake of ciObjectFactory, etc. |
93 thread->set_env(this); | 94 thread->set_env(this); |
94 assert(ciEnv::current() == this, "sanity"); | 95 assert(ciEnv::current() == this, "sanity"); |
137 _ClassCastException_instance = NULL; | 138 _ClassCastException_instance = NULL; |
138 _the_null_string = NULL; | 139 _the_null_string = NULL; |
139 _the_min_jint_string = NULL; | 140 _the_min_jint_string = NULL; |
140 } | 141 } |
141 | 142 |
142 ciEnv::ciEnv(Arena* arena) { | 143 ciEnv::ciEnv(Arena* arena) : _ciEnv_arena(mtCompiler) { |
143 ASSERT_IN_VM; | 144 ASSERT_IN_VM; |
144 | 145 |
145 // Set up ciEnv::current immediately, for the sake of ciObjectFactory, etc. | 146 // Set up ciEnv::current immediately, for the sake of ciObjectFactory, etc. |
146 CompilerThread* current_thread = CompilerThread::current(); | 147 CompilerThread* current_thread = CompilerThread::current(); |
147 assert(current_thread->env() == NULL, "must be"); | 148 assert(current_thread->env() == NULL, "must be"); |