From e5ffdf9120c14b38e4c8794888d2002e2686ebfc Mon Sep 17 00:00:00 2001 From: Dean Long Date: Tue, 16 Nov 2021 17:25:38 +0000 Subject: [PATCH] 8276231: ciReplay: SIGSEGV when replay compiling lambdas Reviewed-by: iveresov, chagedorn --- src/hotspot/share/ci/ciReplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotspot/share/ci/ciReplay.cpp b/src/hotspot/share/ci/ciReplay.cpp index 20f33cc4909..e9cfbaf9fbd 100644 --- a/src/hotspot/share/ci/ciReplay.cpp +++ b/src/hotspot/share/ci/ciReplay.cpp @@ -467,6 +467,7 @@ class CompileReplay : public StackObj { } { bool found_it; + ik->link_class(CHECK_NULL); obj = cp->find_cached_constant_at(cpi, found_it, thread); } } @@ -927,6 +928,7 @@ class CompileReplay : public StackObj { void process_ciInstanceKlass(TRAPS) { InstanceKlass* k = (InstanceKlass*)parse_klass(CHECK); if (k == NULL) { + skip_remaining(); return; } int is_linked = parse_int("is_linked");