From: Mike Stump Date: Mon, 8 May 2000 10:24:49 -0700 (PDT) Message-Id: <200005081724.KAA09064@kankakee.wrs.com> To: gcc AT gcc DOT gnu DOT org, snowball3 AT bigfoot DOT com Subject: Re: Perfomance of gc-simple Cc: djgpp-workers AT delorie DOT com, lauras AT softhome DOT net Reply-To: djgpp-workers AT delorie DOT com > From: "Mark E." > To: gcc AT gcc DOT gnu DOT org > Date: Sun, 7 May 2000 11:33:06 -0400 > static const unsigned int ptr_size = sizeof(char *); > void * > vmalloc (size_t size) > { Nope, not right, buggy. Use sizeof char* == 1, page size == 2, request size == 2 and malloc returns aligned (%4 == 0) value to see an example that doesn't work. If you rewrite the code to be cleaner, it would have worked.