harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r527704 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp
Date Wed, 11 Apr 2007 22:11:04 GMT
Author: gshimansky
Date: Wed Apr 11 15:11:03 2007
New Revision: 527704

URL: http://svn.apache.org/viewvc?view=rev&rev=527704
Log:
Applied HARMONY-1922 [drlvm] wrong assertion in class_alloc_new_object()


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp?view=diff&rev=527704&r1=527703&r2=527704
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/jit_runtime_support.cpp Wed Apr 11 15:11:03
2007
@@ -2029,7 +2029,7 @@
 {
     ASSERT_RAISE_AREA;
     assert(!hythread_is_suspend_enabled());
-    assert(strcmp(c->get_name()->bytes, "java/lang/Class")); 
+    assert(struct_Class_to_java_lang_Class(c)); 
 
     ManagedObject* obj = c->allocate_instance();
     if(!obj) {
@@ -2044,7 +2044,7 @@
 {
     ASSERT_RAISE_AREA;
     assert(!hythread_is_suspend_enabled());
-    assert(strcmp(vtable->clss->get_name()->bytes, "java/lang/Class")); 
+    assert(struct_Class_to_java_lang_Class(vtable->clss)); 
 #ifdef VM_STATS
     VM_Statistics::get_vm_stats().num_class_alloc_new_object++;
     vtable->clss->instance_allocated(vtable->allocated_size);
@@ -2073,7 +2073,7 @@
 {
     ASSERT_RAISE_AREA;
     assert(!hythread_is_suspend_enabled());
-    assert(strcmp(clss->get_name()->bytes, "java/lang/Class"));
+    assert(struct_Class_to_java_lang_Class(clss)); 
 
     ObjectHandle obj = oh_allocate_local_handle();
     obj->object = clss->allocate_instance();



Mime
View raw message