8187685: NMT: Tracking compiler memory usage of thread's resource area

Bias compiler thread's resource area to mtCompiler

Reviewed-by: kvn, coleenp
This commit is contained in:
Zhengyu Gu 2017-10-06 22:40:31 -04:00
parent 3ccd60110d
commit 0d8679e178
3 changed files with 18 additions and 2 deletions

View file

@ -3263,6 +3263,9 @@ CompilerThread::CompilerThread(CompileQueue* queue,
_buffer_blob = NULL;
_compiler = NULL;
// Compiler uses resource area for compilation, let's bias it to mtCompiler
resource_area()->bias_to(mtCompiler);
#ifndef PRODUCT
_ideal_graph_printer = NULL;
#endif