[8u] RFR (S) 8194246: JVM crashes when calling getStackTrace if stack contains a method that is a member of a very large class

Aleksey Shipilev shade at redhat.com
Mon Jul 5 08:35:30 UTC 2021


Original bug:
   https://bugs.openjdk.java.net/browse/JDK-8194246
   https://hg.openjdk.java.net/jdk/jdk/rev/f01f81fa1242

The patch does not apply cleanly to 8u, because the context is different due to stack trace handling 
rewrites in 9 (mostly for StackWalker, AFAICS). I reapplied the patch by hand for every access to 
_method array. Note that _cprefs seems to have the similar problem, but it does not have a tested 
upstream patch, so I deferred that to JDK-8269859.

Plus, test requires small adjustments for /testlibrary, imports, and dropping the class file version 
to 52.0.

8u webrev:
   https://cr.openjdk.java.net/~shade/8194246/webrev.8u.01/

Testing: new test (used to fail, now passes); tier1

-- 
Thanks,
-Aleksey



More information about the jdk8u-dev mailing list