Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_CFGPrinter.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 | f95d63e2154a |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
31 #include "c1/c1_ValueStack.hpp" | 31 #include "c1/c1_ValueStack.hpp" |
32 | 32 |
33 #ifndef PRODUCT | 33 #ifndef PRODUCT |
34 | 34 |
35 | 35 |
36 class CFGPrinterOutput : public CHeapObj { | 36 class CFGPrinterOutput : public CHeapObj<mtCompiler> { |
37 private: | 37 private: |
38 outputStream* _output; | 38 outputStream* _output; |
39 | 39 |
40 Compilation* _compilation; | 40 Compilation* _compilation; |
41 bool _do_print_HIR; | 41 bool _do_print_HIR; |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 | 107 |
108 CFGPrinterOutput::CFGPrinterOutput() | 108 CFGPrinterOutput::CFGPrinterOutput() |
109 : _output(new(ResourceObj::C_HEAP) fileStream("output.cfg")) | 109 : _output(new(ResourceObj::C_HEAP, mtCompiler) fileStream("output.cfg")) |
110 { | 110 { |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 | 114 |