Mercurial > hg > truffle
comparison src/share/vm/gc_interface/collectedHeap.hpp @ 20584:ef9eda2c1abe
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
author | sjohanss |
---|---|
date | Thu, 30 Oct 2014 10:51:06 +0100 |
parents | c10b463abc6e |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20583:678a467a733b | 20584:ef9eda2c1abe |
---|---|
639 | 639 |
640 // Copy the current allocation context statistics for the specified contexts. | 640 // Copy the current allocation context statistics for the specified contexts. |
641 // For each context in contexts, set the corresponding entries in the totals | 641 // For each context in contexts, set the corresponding entries in the totals |
642 // and accuracy arrays to the current values held by the statistics. Each | 642 // and accuracy arrays to the current values held by the statistics. Each |
643 // array should be of length len. | 643 // array should be of length len. |
644 virtual void copy_allocation_context_stats(const jint* contexts, | 644 // Returns true if there are more stats available. |
645 virtual bool copy_allocation_context_stats(const jint* contexts, | |
645 jlong* totals, | 646 jlong* totals, |
646 jbyte* accuracy, | 647 jbyte* accuracy, |
647 jint len) { } | 648 jint len) { |
649 return false; | |
650 } | |
648 | 651 |
649 /////////////// Unit tests /////////////// | 652 /////////////// Unit tests /////////////// |
650 | 653 |
651 NOT_PRODUCT(static void test_is_in();) | 654 NOT_PRODUCT(static void test_is_in();) |
652 }; | 655 }; |