Crash when using java debugger and kafka

Roman Kennke rkennke at redhat.com
Thu Oct 31 09:15:43 UTC 2019


> Here is the fix for 8u232:
> 
> diff -r 309b496da750 src/share/vm/gc_implementation/shenandoah/shenandoahRootProcessor.cpp
> --- a/src/share/vm/gc_implementation/shenandoah/shenandoahRootProcessor.cpp     Thu Oct 10 18:16:48
> 2019 +0100
> +++ b/src/share/vm/gc_implementation/shenandoah/shenandoahRootProcessor.cpp     Thu Oct 31 09:06:51
> 2019 +0100
> @@ -257,11 +257,11 @@
>    if (blobs != NULL) {
>      ShenandoahWorkerTimingsTracker timer(worker_times, ShenandoahPhaseTimings::CodeCacheRoots,
> worker_id);
>      _coderoots_cset_iterator.possibly_parallel_blobs_do(blobs);
>    }
> 
> -  if (_evacuation_tasks->is_task_claimed(SHENANDOAH_EVAC_jvmti_oops_do)) {
> +  if (!_evacuation_tasks->is_task_claimed(SHENANDOAH_EVAC_jvmti_oops_do)) {
>      ShenandoahForwardedIsAliveClosure is_alive;
>      ShenandoahWorkerTimingsTracker timer(worker_times, ShenandoahPhaseTimings::JVMTIRoots, worker_id);
>      JvmtiExport::weak_oops_do(&is_alive, oops);
>    }
>  }
> 
> It was *accidentally* fixed with LRB backport:
> 
> https://hg.openjdk.java.net/shenandoah/jdk8/hotspot/file/e9d60bdac4b5/src/share/vm/gc_implementation/shenandoah/shenandoahRootProcessor.cpp#l296

Ha! I remember that I came across this when backporting LRB, and
scratched my head how this ever worked. Apparently it didn't.

Thanks for figuring this out.

Roman



More information about the shenandoah-dev mailing list