Skip to content

Commit

Permalink
port print jit memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaiwei committed Oct 12, 2024
1 parent 1abee10 commit 2fb3ba8
Show file tree
Hide file tree
Showing 28 changed files with 773 additions and 15 deletions.
6 changes: 6 additions & 0 deletions src/hotspot/share/c1/c1_Compilation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
#include "c1/c1_ValueMap.hpp"
#include "c1/c1_ValueStack.hpp"
#include "code/debugInfoRec.hpp"
#include "compiler/compilationMemoryStatistic.hpp"
#include "compiler/compilerDirectives.hpp"
#include "compiler/compileLog.hpp"
#include "compiler/compileTask.hpp"
#include "compiler/compilerDirectives.hpp"
#include "memory/resourceArea.hpp"
#include "runtime/sharedRuntime.hpp"
Expand Down Expand Up @@ -427,6 +430,9 @@ void Compilation::install_code(int frame_size) {


void Compilation::compile_method() {

CompilationMemoryStatisticMark cmsm(directive());

{
PhaseTraceTime timeit(_t_setup);

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/symbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void SymbolTable::initialize_symbols(int arena_alloc_size) {
if (arena_alloc_size == 0) {
_arena = new (mtSymbol) Arena(mtSymbol);
} else {
_arena = new (mtSymbol) Arena(mtSymbol, arena_alloc_size);
_arena = new (mtSymbol) Arena(mtSymbol, tag_other, symbol_alloc_arena_size);
}
}

Expand Down
Loading

0 comments on commit 2fb3ba8

Please sign in to comment.