Skip to content

Commit

Permalink
Enable container support by default
Browse files Browse the repository at this point in the history
Enable container support by default. To disable container support
use -XX:-UseContainerSupport option.

Signed-off-by: Ashutosh Mehra <asmehra1@in.ibm.com>
  • Loading branch information
Ashutosh Mehra committed Oct 9, 2018
1 parent 7dfd8ed commit 0a5212d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/vm/jvminit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,8 @@ IDATA VMInitStages(J9JavaVM *vm, IDATA stage, void* reserved) {
argIndex = FIND_AND_CONSUME_ARG(EXACT_MATCH, VMOPT_XXUSECONTAINERSUPPORT, NULL);
argIndex2 = FIND_AND_CONSUME_ARG(EXACT_MATCH, VMOPT_XXNOUSECONTAINERSUPPORT, NULL);

if (argIndex > argIndex2) {
/* Enable -XX:+UseContainerSupport by default */
if (argIndex >= argIndex2) {
OMRPORT_ACCESS_FROM_J9PORT(vm->portLibrary);
uint64_t subsystemsEnabled = omrsysinfo_cgroup_enable_subsystems(OMR_CGROUP_SUBSYSTEM_ALL);

Expand Down

0 comments on commit 0a5212d

Please sign in to comment.