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

[lworld] TestCallingConvention triggers "code buffer not large enough" assert

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • hotspot

      Due to verification code added by JDK-8292694 (ironically), more space is required for the adapters.

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (workspace\open\src\hotspot\cpu\x86\assembler_x86.cpp:13354), pid=50908, tid=82720
      # assert(code_section->limit() - code_section->end() > src_len) failed: code buffer not large enough
      #
      # JRE version: Java(TM) SE Runtime Environment (20.0+1) (fastdebug build 20-valhalla+1-22)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-valhalla+1-22, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: C:\sb\prod\1663280540\testoutput\test-support\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\scratch\0\hs_err_pid50908.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: -Djava.io.tmpdir=c:\sb\prod\1663280540\testoutput\test-support\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\tmp -Djava.library.path=c:\ade\mesos\work_dir\jib-master\install\jdk-20-valhalla+1-22\windows-x64-debug.test\hotspot\jtreg\native --patch-module=java.base=C:\sb\prod\1663280540\testoutput\test-support\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\patches\java.base -Djava.security.policy=file:/c:/sb/prod/1663280540/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/jtreg.policy com.sun.javatest.regtest.agent.AgentServer -id 41 -logfile C:\sb\prod\1663280540\testoutput\test-support\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\jtData\agentServer.41.trace -allowSetSecurityManager -port 64070 -timeoutFactor 4.0

      Host: win2016-x64-373297, Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, 12 cores, 23G, Windows Server 2016 , 64 bit Build 14393 (10.0.14393.3630)
      Time: Thu Sep 15 23:33:41 2022 /GM elapsed time: 1.200510 seconds (0d 0h 0m 1s)

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

      Current thread (0x000002048867e270): JavaThread "main" [_thread_in_vm, id=82720, stack(0x00000021c4600000,0x00000021c4700000)]

      Stack: [0x00000021c4600000,0x00000021c4700000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xc988f1] os::win32::platform_print_native_stack+0xf1 (os_windows_x86.cpp:236)
      V [jvm.dll+0xf0d687] VMError::report+0x10e7 (vmError.cpp:838)
      V [jvm.dll+0xf0f21e] VMError::report_and_die+0x65e (vmError.cpp:1686)
      V [jvm.dll+0xf0f934] VMError::report_and_die+0x64 (vmError.cpp:1467)
      V [jvm.dll+0x5ad0f7] report_vm_error+0xb7 (debug.cpp:284)
      V [jvm.dll+0x2e75c9] Assembler::pusha+0x89 (assembler_x86.cpp:13389)
      V [jvm.dll+0xb7cb79] MacroAssembler::push_CPU_state+0x39 (macroAssembler_x86.cpp:3051)
      V [jvm.dll+0xd74719] gen_c2i_adapter+0x1c9 (sharedRuntime_x86_64.cpp:806)
      V [jvm.dll+0xd7c0b7] SharedRuntime::generate_i2c2i_adapters+0x437 (sharedRuntime_x86_64.cpp:1308)
      V [jvm.dll+0xd63529] AdapterHandlerLibrary::create_adapter+0x139 (sharedRuntime.cpp:3119)
      V [jvm.dll+0xd66d25] AdapterHandlerLibrary::get_adapter+0x515 (sharedRuntime.cpp:3090)
      V [jvm.dll+0xc05f14] Method::link_method+0x234 (method.cpp:1284)
      V [jvm.dll+0x7fe13b] InstanceKlass::link_class_impl+0xb5b (instanceKlass.cpp:1017)
      V [jvm.dll+0x91cdf7] get_class_declared_methods_helper+0x2c7 (jvm.cpp:1852)
      V [jvm.dll+0x9310c1] JVM_GetClassDeclaredMethods+0x171 (jvm.cpp:1906)
      C 0x0000020497bc24be

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: