Armin Rigo avatar Armin Rigo committed 5a165d7

Fixes

Comments (0)

Files changed (2)

rpython/translator/c/gcc/test/test_asmgcroot.py

 from rpython.rtyper.lltypesystem import lltype, rffi
 from rpython.rlib.entrypoint import entrypoint, secondary_entrypoints
 from rpython.rtyper.lltypesystem.lloperation import llop
+from rpython.translator.backendopt.all import backend_optimizations
 
 _MSVC = compiler.name == "msvc"
 _MINGW = compiler.name == "mingw32"
             a.build_types(f, inputtypes, False)
         a.build_types(main, [s_list_of_strings])
         t.buildrtyper().specialize()
+        backend_optimizations(t)
         t.checkgraphs()
 
         cbuilder = CStandaloneBuilder(t, main, config=config,
         def define_callback_with_collect(cls):
             return lambda: 0
 
-class TestAsmGCRootWithSemiSpaceGC(AbstractTestAsmGCRoot,
-                                   test_newgc.TestSemiSpaceGC):
+class TestAsmGCRootWithMiniMarkGC(AbstractTestAsmGCRoot,
+                                  test_newgc.TestMiniMarkGC):
     # for the individual tests see
     # ====> ../../test/test_newgc.py
     secondary_entrypoints = []
         res = self.run('secondary_entrypoint_callback')
         assert res == 4900
 
-class TestAsmGCRootWithSemiSpaceGC_Mingw32(TestAsmGCRootWithSemiSpaceGC):
+class TestAsmGCRootWithMiniMarkGC_Mingw32(TestAsmGCRootWithMiniMarkGC):
     # for the individual tests see
     # ====> ../../test/test_newgc.py
 
                 'GNU' in os.popen('make --version').read()):
             py.test.skip("mingw32 and MSYS are required for this test")
 
-        test_newgc.TestSemiSpaceGC.setup_class.im_func(cls)
+        test_newgc.TestAsmGCRootWithMiniMarkGC.setup_class.im_func(cls)
 
     @classmethod
     def make_config(cls):
-        config = TestAsmGCRootWithSemiSpaceGC.make_config()
+        config = TestAsmGCRootWithMiniMarkGC.make_config()
         config.translation.cc = 'mingw32'
         return config
 
     def define_callback_with_collect(cls):
         return lambda: 0
 
-class TestAsmGCRootWithSemiSpaceGC_Shared(TestAsmGCRootWithSemiSpaceGC):
+class TestAsmGCRootWithMiniMarkGC_Shared(TestAsmGCRootWithMiniMarkGC):
     @classmethod
     def make_config(cls):
-        config = TestAsmGCRootWithSemiSpaceGC.make_config()
+        config = TestAsmGCRootWithMiniMarkGC.make_config()
         config.translation.shared = True
         return config
 
-class TestAsmGCRootWithHybridTagged(AbstractTestAsmGCRoot,
-                                    test_newgc.TestHybridTaggedPointers):
+class TestAsmGCRootWithMiniMarkTagged(AbstractTestAsmGCRoot,
+                     test_newgc.TestMiniMarkGCTaggedPointersAndRemoveTypePtr):
     pass

rpython/translator/c/test/test_standalone.py

 
     def compile(self, entry_point):
         t = TranslationContext(self.config)
-        t.config.translation.gc = "semispace"
+        t.config.translation.gc = "minimark"
         t.config.translation.gcrootfinder = self.gcrootfinder
         t.config.translation.thread = True
         t.buildannotator().build_types(entry_point, [s_list_of_strings])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.