diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-05-28 18:53:06 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-05-28 19:53:06 +0100 |
commit | ca60dce284a912a0e62500ed6b097c1960dce26e (patch) | |
tree | a45dca3a962b2788d50822d0c51a8159a48662d5 /libjava/gcj | |
parent | 0919ed7222874f28a047d4ace01e15efd7edfe7d (diff) | |
download | gcc-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.h | 7 |
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) { |