mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 22:16:09 +08:00
4109fe8594
libjava: 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I boehm-gc's include dirs. * configure: Rebuilt. * include/boehm-gc.h: Include gc_config.h. boehm-gc: 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * configure.ac (gc_cflags): Add -Iinclude. (AC_CONFIG_HEADERS): New. Configure gc_config.h header. Don't write DEFS to boehm-cflags file. * configure: Rebuilt. * gcj_mlc.c: Check #ifdef GC_GCJ_SUPPORT after including headers. * specific.c: Check #ifdef GC_LINUX_THREADS after including headers. * include/gc_config_macros.h: Remove backward-compatibility redefinitions of GC_ names. * include/gc.h: Include <gc_config.h>. 2004-08-13 Bryce McKinlay <mckinlay@redhat.com> Import Boehm GC version 6.3. From-SVN: r85972
30 lines
591 B
C
30 lines
591 B
C
#include <stdio.h>
|
|
#define GC_DEBUG
|
|
#include "gc.h"
|
|
|
|
struct treenode {
|
|
struct treenode *x;
|
|
struct treenode *y;
|
|
} * root[10];
|
|
|
|
struct treenode * mktree(int i) {
|
|
struct treenode * r = GC_MALLOC(sizeof(struct treenode));
|
|
if (0 == i) return 0;
|
|
if (1 == i) r = GC_MALLOC_ATOMIC(sizeof(struct treenode));
|
|
r -> x = mktree(i-1);
|
|
r -> y = mktree(i-1);
|
|
return r;
|
|
}
|
|
|
|
main()
|
|
{
|
|
int i;
|
|
for (i = 0; i < 10; ++i) {
|
|
root[i] = mktree(12);
|
|
}
|
|
GC_generate_random_backtrace();
|
|
GC_generate_random_backtrace();
|
|
GC_generate_random_backtrace();
|
|
GC_generate_random_backtrace();
|
|
}
|