summaryrefslogtreecommitdiffstats
path: root/libjava/interpret.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-16 19:38:27 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-16 19:38:27 +0000
commit5851266d212cbfd46b424c1b2e135a503f2003c2 (patch)
tree51d77fd9d5b222a735e5af8ac9d4676559dc4310 /libjava/interpret.cc
parent1ba9ca1de884a622eefcbe60586b6e1c0743d771 (diff)
downloadppe42-gcc-5851266d212cbfd46b424c1b2e135a503f2003c2.tar.gz
ppe42-gcc-5851266d212cbfd46b424c1b2e135a503f2003c2.zip
2004-04-16 Bryce McKinlay <mckinlay@redhat.com>
* interpret.cc (_Jv_InterpMethod::run): Update _Jv_AllocObject arguments to match new signature. Remove FIXME comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/interpret.cc')
-rw-r--r--libjava/interpret.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/libjava/interpret.cc b/libjava/interpret.cc
index 5fd2c2b5869..61ff9fb0122 100644
--- a/libjava/interpret.cc
+++ b/libjava/interpret.cc
@@ -2917,11 +2917,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args)
{
int index = GET2U ();
jclass klass = (_Jv_ResolvePoolEntry (defining_class, index)).clazz;
- // We initialize here because otherwise `size_in_bytes' may
- // not be set correctly, leading us to pass `0' as the size.
- // FIXME: fix in the allocator? There is a PR for this.
- _Jv_InitClass (klass);
- jobject res = _Jv_AllocObject (klass, klass->size_in_bytes);
+ jobject res = _Jv_AllocObject (klass);
PUSHA (res);
#ifdef DIRECT_THREADED
@@ -2935,7 +2931,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args)
new_resolved:
{
jclass klass = (jclass) AVAL ();
- jobject res = _Jv_AllocObject (klass, klass->size_in_bytes);
+ jobject res = _Jv_AllocObject (klass);
PUSHA (res);
}
NEXT_INSN;
OpenPOWER on IntegriCloud