--- old/src/share/vm/oops/methodCounters.cpp 2017-06-29 15:57:51.796976365 -0700 +++ new/src/share/vm/oops/methodCounters.cpp 2017-06-29 15:57:51.612969292 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, 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 @@ -27,7 +27,7 @@ MethodCounters* MethodCounters::allocate(methodHandle mh, TRAPS) { ClassLoaderData* loader_data = mh->method_holder()->class_loader_data(); - return new(loader_data, size(), false, MetaspaceObj::MethodCountersType, THREAD) MethodCounters(mh); + return new(loader_data, method_counters_size(), MetaspaceObj::MethodCountersType, THREAD) MethodCounters(mh); } void MethodCounters::clear_counters() { @@ -73,6 +73,9 @@ #endif } +void MethodCounters::metaspace_pointers_do(MetaspaceClosure* it) { + tty->print_cr("Iter(MethodCounters): %p", this); // No embedded pointers +} void MethodCounters::print_value_on(outputStream* st) const { assert(is_methodCounters(), "must be methodCounters");