Mercurial > hg > graal-compiler
diff src/share/vm/oops/methodData.hpp @ 8611:6c4db417385a
added API to reset the profiling information for a method
added some test cases that check the recorded profiling information
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Wed, 27 Mar 2013 17:25:59 +0100 |
parents | 5fc51c1ecdeb |
children | d343737786fe |
line wrap: on
line diff
--- a/src/share/vm/oops/methodData.hpp Wed Mar 27 10:36:57 2013 +0100 +++ b/src/share/vm/oops/methodData.hpp Wed Mar 27 17:25:59 2013 +0100 @@ -1178,6 +1178,7 @@ MethodData() {}; // For ciMethodData bool is_methodData() const volatile { return true; } + void initialize(); // Whole-method sticky bits and flags enum { @@ -1295,10 +1296,7 @@ static bool bytecode_has_profile(Bytecodes::Code code) { return bytecode_cell_count(code) != no_profile_data; } - - // Perform initialization of a new MethodData* - void initialize(methodHandle method); - + // My size int size_in_bytes() const { return _size; } int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); }