Correct preprocessor conditional termination in case BACKGROUND_GC is not defined...
authorAdam Tornhill <adam@adamtornhill.com>
Thu, 29 Sep 2016 16:50:44 +0000 (18:50 +0200)
committerSean Gillespie <sean.william.g@gmail.com>
Thu, 29 Sep 2016 16:50:44 +0000 (09:50 -0700)
This patch ensures that the code remains valid even when BACKGROUND_GC is not defined.
Before this patch, the endif that terminates the conditional compilation block
misses the terminating curly brace. That means there will be an extra, erroneous
closing brace the moment BACKGROUND_GC isn't defined.

src/gc/gc.cpp

index ea392c2..2c04b21 100644 (file)
@@ -9972,8 +9972,8 @@ gc_heap::init_semi_shared()
         {
             goto cleanup;
         }
-#endif //BACKGROUND_GC
     }
+#endif //BACKGROUND_GC
 
     memset (&current_no_gc_region_info, 0, sizeof (current_no_gc_region_info));