Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5136

[drlvm] DRL VM hangs during stress.Mix running.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • Advanced

    Description

      DRL VM hangs during stress.Mix running.

      Main threads waits on the monitor enter on the following stack:
      <pthread_mutex_lock>
      <hymutex_lock>
      <hythread_monitor_enter>
      <hythread_thin_monitor_enter>
      <Jthread_monitor_enter>
      <?? JAVA CODE ??>
      <JIT_execute_method_default>
      <DrlEMImpl::execute_method>
      <ExecuteMethod>
      <vm_execute_java_method_array>
      <run_java_detach>
      <jthread_detach>
      <vm_destroy>
      <DestroyJavaVM>

      Thread which caught monitor is dead.
      In this case it looks like that one thread complete its work and running in java method group.remove under synchronization.
      At this moment thread was stopped via safe_point. Monitor was not free in this case. Than the other thread, which is main, tries to detach him self and blocs on the locked monitor, which was caught by first thread, which is dead at this moment.

      Attachments

        1. shutdown.patch
          2 kB
          Pavel Rebriy

        Issue Links

          Activity

            People

              gshimansky Gregory Shimansky
              pavel.n.afremov Pavel Afremov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: