#include "threads/thread.h"
#include "threads/locks.h" /* schani */
-#include "sysdep/native-math.h"
+#include "native-math.h"
builtin_descriptor builtin_desc[] = {
{(functionptr) builtin_instanceof, "instanceof"},
#ifdef SIZE_FROM_CLASSINFO
c->alignedsize = align_size(c->instancesize);
-
o = heap_allocate ( c->alignedsize, true, c->finalizer );
#else
o = heap_allocate ( c->instancesize, true, c->finalizer );
java_arrayheader *a;
#ifdef SIZE_FROM_CLASSINFO
s4 alignedsize = align_size(base_size + (size-1) * elementsize);
-
a = heap_allocate ( alignedsize, true, NULL );
#else
a = heap_allocate ( sizeof(java_objectarray) + (size-1) * elementsize,
#endif
if (!a) return NULL;
-#if SIZE_FROM_CLASSINFO
+#ifdef SIZE_FROM_CLASSINFO
memset(a, 0, alignedsize);
#else
memset(a, 0, base_size + (size-1) * elementsize);