mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8057824: methods to copy allocation context statistics
Reviewed-by: mikael, jmasa, tschatzl
This commit is contained in:
parent
40155ae18d
commit
fd0e5093ca
3 changed files with 46 additions and 0 deletions
|
@ -640,6 +640,15 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
|||
// 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();)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue