src/hotspot/os/linux/osContainer_linux.cpp
changeset 48161 fed0e4b11604
parent 47903 7f22774a5f42
child 48438 efb9f4c91bde
equal deleted inserted replaced
48152:bef902d8fef1 48161:fed0e4b11604
   321         }
   321         }
   322       }
   322       }
   323     }
   323     }
   324   }
   324   }
   325 
   325 
   326   if (mntinfo != NULL) fclose(mntinfo);
   326   fclose(mntinfo);
       
   327 
       
   328   if (memory == NULL || cpuset == NULL || cpu == NULL || cpuacct == NULL) {
       
   329     log_debug(os, container)("Required cgroup subsystems not found");
       
   330     return;
       
   331   }
   327 
   332 
   328   /*
   333   /*
   329    * Read /proc/self/cgroup and map host mount point to
   334    * Read /proc/self/cgroup and map host mount point to
   330    * local one via /proc/self/mountinfo content above
   335    * local one via /proc/self/mountinfo content above
   331    *
   336    *
   381         cpu->set_subsystem_path(base);
   386         cpu->set_subsystem_path(base);
   382       }
   387       }
   383     }
   388     }
   384   }
   389   }
   385 
   390 
   386   if (cgroup != NULL) fclose(cgroup);
   391   fclose(cgroup);
   387 
       
   388   if (memory == NULL || cpuset == NULL || cpu == NULL) {
       
   389     log_debug(os, container)("Required cgroup subsystems not found");
       
   390     return;
       
   391   }
       
   392 
   392 
   393   // We need to update the amount of physical memory now that
   393   // We need to update the amount of physical memory now that
   394   // command line arguments have been processed.
   394   // command line arguments have been processed.
   395   if ((mem_limit = memory_limit_in_bytes()) > 0) {
   395   if ((mem_limit = memory_limit_in_bytes()) > 0) {
   396     os::Linux::set_physical_memory(mem_limit);
   396     os::Linux::set_physical_memory(mem_limit);