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

Hotspot optimization of overriden enum-methods causes JVM crash

XMLWordPrintable

    • x86
    • windows_10

      FULL PRODUCT VERSION :
      java version "1.8.0_102"
      Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

      FULL OS VERSION :
      Microsoft Windows [Version 10.0.10586]

      A DESCRIPTION OF THE PROBLEM :
      A specific user operation causes our server-app to call the different (overridden) methods of a Java-enum very often in a very short period of time. Before the requested operation can be completed the whole JVM crashes reproducible and generates the attached dump. The file gives some hint that the problem occurred while doing some hotspot-optimization for one of the overridden methods of the enum (“EDatasheetType”).

      Whenever we switch off the hotspot compiler for the specific enum (via “-XX:CompileCommand=exclude,com/rewoo/model/EDatasheetType*::deserializeWithOption”) we can observe some debug output of the JVM saying that the hotspot compiler skips the optimizations and the problem doesn’t appear any longer.

      Unfortunately we were unable to reproduce this behaviour with a "stripped down" example up to now.

      THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

      THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

      REGRESSION. Last worked in version 7u76

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Exclude the enum from the hotspot-compile-process
      “-XX:CompileCommand=exclude,com/rewoo/model/EDatasheetType*::deserializeWithOption"

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: