diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index fb7ae43..fd91ed8 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -871,8 +871,9 @@ protected function initializeContainer() { // one from scratch. if (!isset($container) && !isset($container_definition)) { // Building the container creates 1000s of objects. Garbage collection of - // these objects is expensive and appears to be causing segmentation - // faults in PHP 5.6. + // these objects is expensive. Additionally, it appears to be causing + // random segmentation faults in PHP 5.6. Once the container is rebuilt, + // garbage collection is re-enabled. $disable_gc = gc_enabled(); if ($disable_gc) { gc_collect_cycles(); diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh index 15a59eb..09a7aad 100755 --- a/core/scripts/run-tests.sh +++ b/core/scripts/run-tests.sh @@ -147,8 +147,6 @@ drupal_set_time_limit(0); simpletest_script_reporter_init(); -$args['repeat'] = 60; -$test_list = ['\Drupal\FunctionalTests\ContainerRebuildTest']; $tests_to_run = array(); for ($i = 0; $i < $args['repeat']; $i++) { $tests_to_run = array_merge($tests_to_run, $test_list); diff --git a/core/tests/Drupal/FunctionalTests/ContainerRebuildTest.php b/core/tests/Drupal/FunctionalTests/ContainerRebuildTest.php deleted file mode 100644 index 52c4cea..0000000 --- a/core/tests/Drupal/FunctionalTests/ContainerRebuildTest.php +++ /dev/null @@ -1,30 +0,0 @@ -invalidateContainer(); - $container = $kernel->rebuildContainer(); - $this->assertInstanceOf(Container::class, $container); - $this->drupalGet(''); - } - } - -}