diff -r e5668dcf12e9 -r c10b463abc6e src/share/vm/gc_interface/collectedHeap.hpp --- a/src/share/vm/gc_interface/collectedHeap.hpp Wed Sep 10 13:01:13 2014 -0700 +++ b/src/share/vm/gc_interface/collectedHeap.hpp Wed Sep 10 13:01:13 2014 -0700 @@ -637,6 +637,15 @@ // actual number may be germane. static bool use_parallel_gc_threads() { return ParallelGCThreads > 0; } + // 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();)