src/share/vm/services/mallocTracker.hpp

changeset 7080
dd3939fe8424
parent 7074
833b0f92429a
child 7267
417e3b8d04c5
     1.1 --- a/src/share/vm/services/mallocTracker.hpp	Tue Aug 19 09:05:55 2014 -0400
     1.2 +++ b/src/share/vm/services/mallocTracker.hpp	Wed Aug 20 08:41:15 2014 -0400
     1.3 @@ -171,8 +171,9 @@
     1.4    // Total malloc'd memory used by arenas
     1.5    size_t total_arena() const;
     1.6  
     1.7 -  inline size_t thread_count() {
     1.8 -    return by_type(mtThreadStack)->malloc_count();
     1.9 +  inline size_t thread_count() const {
    1.10 +    MallocMemorySnapshot* s = const_cast<MallocMemorySnapshot*>(this);
    1.11 +    return s->by_type(mtThreadStack)->malloc_count();
    1.12    }
    1.13  
    1.14    void reset();

mercurial