aboutsummaryrefslogtreecommitdiff
path: root/libjava/gcj
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-04-16 16:27:19 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-04-16 17:27:19 +0100
commit245c3c04af3e4f256615b0e68c7a14a77a91d6d2 (patch)
treef8e6ed92c4715a9964e9461e0650bbca33471270 /libjava/gcj
parent2f228199b9cbcc7b3b1a3cc978bf9e3b8ddec8f3 (diff)
downloadgcc-245c3c04af3e4f256615b0e68c7a14a77a91d6d2.zip
gcc-245c3c04af3e4f256615b0e68c7a14a77a91d6d2.tar.gz
gcc-245c3c04af3e4f256615b0e68c7a14a77a91d6d2.tar.bz2
prims.cc (_Jv_AllocObject): Remove `size' argument.
libjava: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * prims.cc (_Jv_AllocObject): Remove `size' argument. (_Jv_AllocObjectNoFinalizer): Likewise. (_Jv_AllocObjectNoInitNoFinalizer): Likewise. (_Jv_AllocPtrFreeObject): Likewise. (_Jv_AllocString): Moved from natString.cc. Call collector interface directly even in the JVMPI case. * gcj/cni.h (JvAllocObject): Remove `size' argument from _Jv_AllocObject calls. * gcj/javaprims.h: Update prototypes. * gnu/gcj/natCore.cc (_Jv_create_core): Use `new', not _Jv_AllocObject. * java/lang/Class.h: Update _Jv_AllocObject friend prototype. * java/lang/natString.cc (_Jv_AllocString): Move to prims.cc. gcc/cp: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * init.c (build_new_1): Don't use type size argument for Java _Jv_AllocObject call. gcc/java: 2004-04-15 Bryce McKinlay <mckinlay@redhat.com> * expr.c (expand_java_NEW): Don't use size argument for _Jv_AllocObject calls. * parse.y (patch_invoke): Likewise. From-SVN: r80754
Diffstat (limited to 'libjava/gcj')
-rw-r--r--libjava/gcj/cni.h4
-rw-r--r--libjava/gcj/javaprims.h12
2 files changed, 8 insertions, 8 deletions
diff --git a/libjava/gcj/cni.h b/libjava/gcj/cni.h
index 3790dc4..4040f19 100644
--- a/libjava/gcj/cni.h
+++ b/libjava/gcj/cni.h
@@ -23,13 +23,13 @@ details. */
extern inline jobject
JvAllocObject (jclass cls)
{
- return _Jv_AllocObject (cls, cls->size());
+ return _Jv_AllocObject (cls);
}
extern inline jobject
JvAllocObject (jclass cls, jsize sz)
{
- return _Jv_AllocObject (cls, sz);
+ return _Jv_AllocObject (cls);
}
extern "C" jstring _Jv_NewStringUTF (const char *bytes);
diff --git a/libjava/gcj/javaprims.h b/libjava/gcj/javaprims.h
index 60f99cf..0cdd550 100644
--- a/libjava/gcj/javaprims.h
+++ b/libjava/gcj/javaprims.h
@@ -450,17 +450,17 @@ struct _Jv_JNIEnv;
typedef struct _Jv_Field *jfieldID;
typedef struct _Jv_Method *jmethodID;
-extern "C" jobject _Jv_AllocObject (jclass, jint) __attribute__((__malloc__));
-extern "C" jobject _Jv_AllocObjectNoFinalizer (jclass, jint) __attribute__((__malloc__));
-extern "C" jobject _Jv_AllocObjectNoInitNoFinalizer (jclass, jint) __attribute__((__malloc__));
+extern "C" jobject _Jv_AllocObject (jclass) __attribute__((__malloc__));
+extern "C" jobject _Jv_AllocObjectNoFinalizer (jclass) __attribute__((__malloc__));
+extern "C" jobject _Jv_AllocObjectNoInitNoFinalizer (jclass) __attribute__((__malloc__));
#ifdef JV_HASH_SYNCHRONIZATION
- extern "C" jobject _Jv_AllocPtrFreeObject (jclass, jint)
+ extern "C" jobject _Jv_AllocPtrFreeObject (jclass)
__attribute__((__malloc__));
#else
// Collector still needs to scan sync_info
- static inline jobject _Jv_AllocPtrFreeObject (jclass klass, jint sz)
+ static inline jobject _Jv_AllocPtrFreeObject (jclass klass)
{
- return _Jv_AllocObject(klass, sz);
+ return _Jv_AllocObject(klass);
}
#endif
extern "C" jboolean _Jv_IsInstanceOf(jobject, jclass);