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

trivial mem leak in numa

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • hotspot
    • b26

    Description

      diff --git a/src/hotspot/os/linux/os_linux.hpp b/src/hotspot/os/linux/os_linux.hpp
      index 8659175b653..96d5331be8c 100644
      --- a/src/hotspot/os/linux/os_linux.hpp
      +++ b/src/hotspot/os/linux/os_linux.hpp
      @@ -386,19 +386,17 @@ class Linux {
         // Returns true if bound to a single numa node, otherwise returns false.
         static bool is_bound_to_single_node() {
           int nodes = 0;
      - struct bitmask* bmp = NULL;
           unsigned int node = 0;
           unsigned int highest_node_number = 0;

      - if (_numa_get_membind != NULL && _numa_max_node != NULL && _numa_bitmask_isbitset != NULL) {
      - bmp = _numa_get_membind();
      + if (_numa_membind_bitmask != NULL && _numa_max_node != NULL && _numa_bitmask_isbitset != NULL) {
             highest_node_number = _numa_max_node();
           } else {
             return false;
           }

           for (node = 0; node <= highest_node_number; node++) {
      - if (_numa_bitmask_isbitset(bmp, node)) {
      + if (_numa_bitmask_isbitset(_numa_membind_bitmask, node)) {
               nodes++;
             }
           }

      Attachments

        Issue Links

          Activity

            People

              mli Hamlin Li
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: