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

Let G1ConcurrentMark constructor fail immediately

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • gc

      The G1ConcurrentMark constructor uses a boolean member to indicate initialization success as it is otherwise impossible to return a value in a constructor (without exceptions we prohibit to use).

      Change this construct to just do a vm_shutdown_during_initialization() at the failure conditions directly, because
       - the only caller does that already anyway, in the process giving a very generic general failure error message
       - it's kind of the only class doing error handling during initialization.
       - it adds code (member, getter, checking) for little gain

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: