8171365: nsk/jvmti/scenarios/events/EM04/em04t001: many errors for missed events
Summary: fix CodeCache:blobs_do() so it iterates over all code cache heaps
Reviewed-by: sspitsyn, thartmann
--- a/hotspot/src/share/vm/code/codeCache.cpp Wed Jun 07 12:23:04 2017 +0200
+++ b/hotspot/src/share/vm/code/codeCache.cpp Wed Jun 07 08:56:35 2017 -0700
@@ -620,7 +620,7 @@
void CodeCache::blobs_do(void f(CodeBlob* nm)) {
assert_locked_or_safepoint(CodeCache_lock);
- FOR_ALL_NMETHOD_HEAPS(heap) {
+ FOR_ALL_HEAPS(heap) {
FOR_ALL_BLOBS(cb, *heap) {
f(cb);
}