mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
7133260: AllocationProfiler uses space in metadata and doesn't seem to do anything useful
Remove -Xaprof and Klass::_alloc_count & ArrayKlass::_alloc_size. Reviewed-by: stefank, coleenp
This commit is contained in:
parent
4ecee47075
commit
b454ece6d7
30 changed files with 7 additions and 388 deletions
|
@ -42,7 +42,6 @@
|
|||
#include "oops/oop.inline.hpp"
|
||||
#include "oops/symbol.hpp"
|
||||
#include "prims/jvmtiExport.hpp"
|
||||
#include "runtime/aprofiler.hpp"
|
||||
#include "runtime/arguments.hpp"
|
||||
#include "runtime/biasedLocking.hpp"
|
||||
#include "runtime/compilationPolicy.hpp"
|
||||
|
@ -509,16 +508,6 @@ void before_exit(JavaThread * thread) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (Arguments::has_alloc_profile()) {
|
||||
HandleMark hm;
|
||||
// Do one last collection to enumerate all the objects
|
||||
// allocated since the last one.
|
||||
Universe::heap()->collect(GCCause::_allocation_profiler);
|
||||
AllocationProfiler::disengage();
|
||||
AllocationProfiler::print(0);
|
||||
}
|
||||
|
||||
if (PrintBytecodeHistogram) {
|
||||
BytecodeHistogram::print();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue