summaryrefslogtreecommitdiffstats
path: root/libjava/include
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/boehm-gc.h12
-rw-r--r--libjava/include/config.h.in3
2 files changed, 15 insertions, 0 deletions
diff --git a/libjava/include/boehm-gc.h b/libjava/include/boehm-gc.h
index 4e0065f5bb2..fa2623b37e1 100644
--- a/libjava/include/boehm-gc.h
+++ b/libjava/include/boehm-gc.h
@@ -35,6 +35,8 @@ extern "C" void * GC_local_gcj_malloc(size_t, void *);
extern "C" void * GC_local_malloc_atomic(size_t);
#endif
+#ifndef LIBGCJ_GC_DEBUG
+
inline void *
_Jv_AllocObj (jsize size, jclass klass)
{
@@ -67,6 +69,16 @@ _Jv_AllocPtrFreeObj (jsize size, jclass klass)
return obj;
}
+#else /* LIBGCJ_GC_DEBUG */
+
+void *
+_Jv_AllocObj (jsize size, jclass klass);
+
+void *
+_Jv_AllocPtrFreeObj (jsize size, jclass klass);
+
+#endif /* LIBGCJ_GC_DEBUG */
+
// _Jv_AllocBytes (jsize size) should go here, too. But clients don't
// usually include this header.
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in
index bb52dbcba36..0429517ac1e 100644
--- a/libjava/include/config.h.in
+++ b/libjava/include/config.h.in
@@ -366,6 +366,9 @@
/* Indicate that linker is not able to 8-byte align static data */
#undef JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS
+/* Define if we want to use debug calls into the garbage collector. */
+#undef LIBGCJ_GC_DEBUG
+
/* Define if using POSIX threads on Linux. */
#undef LINUX_THREADS
OpenPOWER on IntegriCloud