Mercurial > hg > graal-compiler
diff src/share/vm/oops/annotations.hpp @ 7956:16fb9f942703
6479360: PrintClassHistogram improvements
Summary: jcmd <pid> GC.class_stats (UnlockDiagnosticVMOptions)
Reviewed-by: coleenp, hseigel, sla, acorn
Contributed-by: ioi.lam@oracle.com
author | acorn |
---|---|
date | Fri, 25 Jan 2013 15:06:18 -0500 |
parents | 35431a769282 |
children | 927a311d00f9 |
line wrap: on
line diff
--- a/src/share/vm/oops/annotations.hpp Thu Jan 24 23:30:45 2013 -0800 +++ b/src/share/vm/oops/annotations.hpp Fri Jan 25 15:06:18 2013 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -34,6 +34,7 @@ class ClassLoaderData; class outputStream; +class KlassSizeStats; typedef Array<u1> AnnotationArray; @@ -82,7 +83,12 @@ Array<AnnotationArray*>* mda, TRAPS); void deallocate_contents(ClassLoaderData* loader_data); DEBUG_ONLY(bool on_stack() { return false; }) // for template + + // Sizing (in words) static int size() { return sizeof(Annotations) / wordSize; } +#if INCLUDE_SERVICES + void collect_statistics(KlassSizeStats *sz) const; +#endif // Constructor to initialize to null Annotations() : _class_annotations(NULL), @@ -142,7 +148,7 @@ void set_methods_annotations_of(instanceKlassHandle ik, int idnum, AnnotationArray* anno, Array<AnnotationArray*>** md_p, TRAPS); - + static julong count_bytes(Array<AnnotationArray*>* p); public: const char* internal_name() const { return "{constant pool}"; } #ifndef PRODUCT