Permit garbage collection on any compiler generated memory allocation.
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 7 Mar 2011 22:19:50 +0000 (22:19 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 7 Mar 2011 22:19:50 +0000 (22:19 +0000)
From-SVN: r170760

libgo/runtime/go-new.c

index e673d14fc95f8da7cee327f42ffa6a2ea7547f65..a592174e50f891088700b63b54edff0e1c0c26f6 100644 (file)
@@ -11,7 +11,7 @@
 void *
 __go_new (size_t size)
 {
-  return __go_alloc (size);
+  return runtime_mallocgc (size, 0, 1, 1);
 }
 
 void *