Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349688

G1: Wrong initial optional region index when selecting candidates from retained regions

XMLWordPrintable

    • gc
    • b11

      Test: applications/jcstress/threadlocal.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\sb\prod\1738969254\workspace\open\src\hotspot\share\gc/g1/g1ParScanThreadState.inline.hpp:148), pid=59968, tid=63216
      # assert(!_g1h->heap_region_containing(p)->is_survivor()) failed: Should have filtered out from-newly allocated survivor references already.
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+10) (fastdebug build 25-ea+10-LTS-1004)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+10-LTS-1004, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x7824d1] G1ParScanThreadState::enqueue_card_if_tracked<enum narrowOop>+0x391
      #
      # Core dump will be written. Default location: C:\sb\prod\1739040586\testoutput\test-support\jtreg_open_test_hotspot_jtreg_jcstress_part3\scratch\hs_err_pid59968.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -XX:+UnlockDiagnosticVMOptions -XX:-UsePerfData -Xms256M -Xmx256M -XX:+AlwaysPreTouch -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:G1ConcRefinementThreads=2 -XX:CICompilerCount=2 -XX:-RestrictContended -XX:+DebugNonSafepoints -XX:-VerifyBeforeExit -XX:-EnableThreadSMRStatistics -XX:-ZapUnusedHeapArea -XX:-ZapTLAB -XX:-ZapFillerObjects -XX:-ZapResourceArea -XX:-ZapVMHandleArea -XX:-ZapStackSegments -XX:-VerifyDependencies -Djava.io.tmpdir=C:\sb\prod\1739040586\testoutput\test-support\jtreg_open_test_hotspot_jtreg_jcstress_part3\scratch -Djava.io.tmpdir=C:\sb\prod\1739040586\testoutput\test-support\jtreg_open_test_hotspot_jtreg_jcstress_part3\scratch -XX:MaxRAMPercentage=25 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\23\37\bundles\windows-x64\jdk-23_windows-x64_bin.zip\jdk-23 -Djava.io.tmpdir=c:\sb\prod\1739040586\testoutput\test-support\jtreg_open_test_hotspot_jtreg_jcstress_part3\tmp -XX:+CreateCoredumpOnCrash -XX:-TieredCompilation -XX:+HeapDumpOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError -XX:CompilerDirectivesFile=C:\sb\prod\1739040586\testoutput\test-support\jtreg_open_test_hotspot_jtreg_jcstress_part3\scratch\jcstress17165729612027668916directives org.openjdk.jcstress.ForkedMain false 127.0.0.1 57688 1

      Host: AMD EPYC 7J13 64-Core Processor , 12 cores, 23G, Windows Server 2019 , 64 bit Build 17763 (10.0.17763.6292)
      Time: Sat Feb 8 20:13:56 2025 Etc elapsed time: 44.085595 seconds (0d 0h 0m 44s)

      --------------- T H R E A D ---------------

      Current thread (0x00000141b09ba1b0): WorkerThread "GC Thread#0" [id=63216, stack(0x00000013a3d00000,0x00000013a3e00000) (1024K)]

      Stack: [0x00000013a3d00000,0x00000013a3e00000], sp=0x00000013a3dff230, free space=1020k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x7824d1] G1ParScanThreadState::enqueue_card_if_tracked<enum narrowOop>+0x391 (g1ParScanThreadState.inline.hpp:148)
      V [jvm.dll+0x793c07] G1ScanCardClosure::do_oop_work<enum narrowOop>+0x227 (g1OopClosures.inline.hpp:185)
      V [jvm.dll+0x7a70c8] G1ScanRSForOptionalClosure::do_oop+0x68 (g1OopClosures.hpp:84)
      V [jvm.dll+0x780661] G1OopStarChunkedList::chunks_do<enum narrowOop>+0x91 (g1OopStarChunkedList.inline.hpp:80)
      V [jvm.dll+0x7807eb] G1OopStarChunkedList::oops_do+0x6b (g1OopStarChunkedList.cpp:41)
      V [jvm.dll+0x7a6bfd] G1ScanOptionalRemSetRootsClosure::do_heap_region+0xbd (g1RemSet.cpp:845)
      V [jvm.dll+0x71465b] G1CollectedHeap::par_iterate_regions_array+0x15b (g1CollectedHeap.cpp:2010)
      V [jvm.dll+0x71cedf] G1CollectionSet::iterate_incremental_part_from+0x4f (g1CollectionSet.cpp:174)
      V [jvm.dll+0x7a8a90] G1RemSet::scan_collection_set_optional_roots+0x110 (g1RemSet.cpp:874)
      V [jvm.dll+0x7b9c18] G1EvacuateOptionalRegionsTask::scan_roots+0x88 (g1YoungCollector.cpp:757)
      V [jvm.dll+0x7b9f65] G1EvacuateRegionsBaseTask::work+0x75 (g1YoungCollector.cpp:657)
      V [jvm.dll+0x109fc37] WorkerThread::run+0x97 (workerThread.cpp:200)
      V [jvm.dll+0xfaa634] Thread::call_run+0x1b4 (thread.cpp:236)
      V [jvm.dll+0xd6bfc1] thread_native_entry+0xe1 (os_windows.cpp:566)
      C [ucrtbase.dll+0x2268a] (no source info available)
      C [KERNEL32.DLL+0x17ac4] (no source info available)
      C [ntdll.dll+0x5a8c1] (no source info available)



            iwalulya Ivan Walulya
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: