OSDN Git Service

Permit garbage collection on any compiler generated memory allocation.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Mar 2011 22:19:50 +0000 (22:19 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Mar 2011 22:19:50 +0000 (22:19 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170760 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/runtime/go-new.c

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