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

Line of code in osContainer_linux.cpp#L102 appears unreachable

XMLWordPrintable

    • b13
    • x86_64
    • linux

        ADDITIONAL SYSTEM INFORMATION :
        Latest JDK source

        A DESCRIPTION OF THE PROBLEM :
        In the block starting at line 102 of osContainer_linux.cpp (https://github.com/unofficial-openjdk/openjdk/blob/jdk/jdk/src/hotspot/os/linux/osContainer_linux.cpp#L102) there appear to be two mutually contradictory checks, meaning that the branch is never evaluated. Specifically it first checks whether or not cgroup_path is the prefix of _root, and then checks to ensure that cgroup_path is longer than _root. Obviously cgroup_path cannot simultaneously be a refix of and longer than _root.


        FREQUENCY : always


              bobv Bob Vandette (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: