comparison src/share/vm/oops/method.cpp @ 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 b8f261ba79c6
children b9a918201d47
comparison
equal deleted inserted replaced
8610:5407d1dd6450 8611:6c4db417385a
1938 guarantee(md == NULL || 1938 guarantee(md == NULL ||
1939 md->is_metadata(), "should be metadata"); 1939 md->is_metadata(), "should be metadata");
1940 guarantee(md == NULL || 1940 guarantee(md == NULL ||
1941 md->is_methodData(), "should be method data"); 1941 md->is_methodData(), "should be method data");
1942 } 1942 }
1943
1944 #ifdef GRAAL
1945 void Method::reset_counters() {
1946 invocation_counter()->reset();
1947 backedge_counter()->reset();
1948 _interpreter_invocation_count = 0;
1949 _interpreter_throwout_count = 0;
1950 #ifndef PRODUCT
1951 _compiled_invocation_count = 0;
1952 #endif
1953 }
1954 #endif