Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/gc_interface/collectedHeap.hpp Tue May 27 08:44:23 2014 -0700 +++ b/src/share/vm/gc_interface/collectedHeap.hpp Thu Oct 30 10:51:06 2014 +0100 @@ -641,10 +641,13 @@ // 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, + // Returns true if there are more stats available. + virtual bool copy_allocation_context_stats(const jint* contexts, jlong* totals, jbyte* accuracy, - jint len) { } + jint len) { + return false; + } /////////////// Unit tests ///////////////