diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-04-16 16:27:19 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-04-16 17:27:19 +0100 |
commit | 245c3c04af3e4f256615b0e68c7a14a77a91d6d2 (patch) | |
tree | f8e6ed92c4715a9964e9461e0650bbca33471270 /libjava/gnu/gcj | |
parent | 2f228199b9cbcc7b3b1a3cc978bf9e3b8ddec8f3 (diff) | |
download | gcc-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/gnu/gcj')
-rw-r--r-- | libjava/gnu/gcj/natCore.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/gnu/gcj/natCore.cc b/libjava/gnu/gcj/natCore.cc index 91b0247..bb3fd57 100644 --- a/libjava/gnu/gcj/natCore.cc +++ b/libjava/gnu/gcj/natCore.cc @@ -96,8 +96,7 @@ _Jv_create_core (_Jv_core_chain *node, jstring name) gnu::gcj::Core *core = NULL; if (node) { - core = (gnu::gcj::Core *) _Jv_AllocObject(&gnu::gcj::Core::class$, - sizeof (gnu::gcj::Core)); + core = new gnu::gcj::Core (); core->ptr = (gnu::gcj::RawData *) node->data; core->length = node->data_length; } |