aboutsummaryrefslogtreecommitdiff
path: root/libjava/gcj
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-05-28 18:53:06 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-05-28 19:53:06 +0100
commitca60dce284a912a0e62500ed6b097c1960dce26e (patch)
treea45dca3a962b2788d50822d0c51a8159a48662d5 /libjava/gcj
parent0919ed7222874f28a047d4ace01e15efd7edfe7d (diff)
downloadgcc-ca60dce284a912a0e62500ed6b097c1960dce26e.zip
gcc-ca60dce284a912a0e62500ed6b097c1960dce26e.tar.gz
gcc-ca60dce284a912a0e62500ed6b097c1960dce26e.tar.bz2
gcj.texi (Object allocation): Remove _Jv_AllocBytes.
* gcj.texi (Object allocation): Remove _Jv_AllocBytes. (Mixing with C++): Document JvAllocBytes and RawDataManaged. * gcj/cni.h (JvAllocBytes): New public CNI function. Calls _Jv_AllocBytes. * gnu/gcj/RawDataManaged.java: New file. * java/lang/Thread.java (data): Declare as RawDataManaged. * java/lang/natThread.cc (init_native): Cast natThread data to RawDataManaged, not jobject. * Makefile.am (ordinary_java_source_files): Add RawDataManaged. * Makefile.in: Rebuilt. From-SVN: r82372
Diffstat (limited to 'libjava/gcj')
-rw-r--r--libjava/gcj/cni.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/gcj/cni.h b/libjava/gcj/cni.h
index 59cf673..b9ee382 100644
--- a/libjava/gcj/cni.h
+++ b/libjava/gcj/cni.h
@@ -22,6 +22,7 @@ details. */
extern "C" jstring _Jv_NewStringUTF (const char *bytes);
extern "C" void _Jv_InitClass (jclass);
+extern "C" void *_Jv_AllocBytes (jsize size) __attribute__((__malloc__));
extern inline void
JvInitClass (jclass cls)
@@ -29,6 +30,12 @@ JvInitClass (jclass cls)
return _Jv_InitClass (cls);
}
+extern inline void *
+JvAllocBytes (jsize sz)
+{
+ return _Jv_AllocBytes (sz);
+}
+
extern inline jstring
JvAllocString (jsize sz)
{