[8u] RFR (S) 8231949: [PPC64, s390]: Make async profiling more reliable

Aleksey Shipilev shade at redhat.com
Thu Apr 15 12:31:05 UTC 2021

Original bug:

We suspect this causes some of the real-world failures on 8u ppc64le, but there is no clear 
reproducer to see if it actually helps. So, this is somewhat of a blind backport.

The 8u patch follows the same footsteps Martin did for 11u backport:

Namely, we are using the old style for these checks:

-      if (!Method::is_valid_method(m)) return false;
-      if (!Metaspace::contains(m->constMethod())) return false;
+      if (m == NULL || !m->is_valid_method()) return false;
+      if (!Metaspace::contains((const void*)m->constMethod())) return false;

(I would suggest backporting JDK-8207779 that would introduce Method::is_valid_method in 8u, then we 
would rewrite this line back to upstream state).

There are also no s390x parts, because that port is not available in 8u.

8u webrev:

Testing: Linux ppc64le jdk_jfr (no new failures, no new passes)


More information about the jdk8u-dev mailing list