Exceptions::count_out_of_memory_exceptions miscounts class metaspace OOMEs

XMLWordPrintable

    • b05

      SonarCloud reports that Universe::is_out_of_memory_error_class_metaspace added by JDK-8278125 is not used. Indeed, Exceptions::count_out_of_memory_exceptions seems to have a typo in a condition.

      SonarCloud reports that `Universe::is_out_of_memory_error_class_metaspace` is not used after JDK-8278125. Indeed, that patch seemed to introduce a typo in `Exceptions::count_out_of_memory_exceptions`:
      https://github.com/openjdk/jdk/commit/ad1dc9c2ae5463363aff20072a3f2ca4ea23acd2?diff=unified#diff-997cf62de09eb9ba3ba9a8fc1d48666b913b4ece76a4f37559a985282788d913L466-R466

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: