Mercurial > hg > graal-compiler
diff src/share/vm/gc_interface/collectedHeap.hpp @ 20446:c10b463abc6e
8057824: methods to copy allocation context statistics
Reviewed-by: mikael, jmasa, tschatzl
author | jcoomes |
---|---|
date | Wed, 10 Sep 2014 13:01:13 -0700 |
parents | 439f0d76cff3 |
children | ef9eda2c1abe |
line wrap: on
line diff
--- 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();)