< prev index next >
src/share/vm/gc_interface/collectedHeap.hpp
Print this page
rev 6817 : 8061234: ResourceContext.requestAccurateUpdate() is unreliable
Summary: Changing copy_allocation_context_stats to return if there are more stats available after the copy.
Reviewed-by: rriggs, jcoomes
*** 639,652 ****
// Copy the current allocation context statistics for the specified contexts.
// For each context in contexts, set the corresponding entries in the totals
// and accuracy arrays to the current values held by the statistics. Each
// array should be of length len.
! virtual void copy_allocation_context_stats(const jint* contexts,
jlong* totals,
jbyte* accuracy,
! jint len) { }
/////////////// Unit tests ///////////////
NOT_PRODUCT(static void test_is_in();)
};
--- 639,655 ----
// Copy the current allocation context statistics for the specified contexts.
// For each context in contexts, set the corresponding entries in the totals
// and accuracy arrays to the current values held by the statistics. Each
// array should be of length len.
! // Returns true if there are more stats available.
! virtual bool copy_allocation_context_stats(const jint* contexts,
jlong* totals,
jbyte* accuracy,
! jint len) {
! return false;
! }
/////////////// Unit tests ///////////////
NOT_PRODUCT(static void test_is_in();)
};
< prev index next >