harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From x..@apache.org
Subject svn commit: r525389 - in /harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify: verifier_common.h verifier_scanner.cpp
Date Wed, 04 Apr 2007 03:32:44 GMT
Author: xli
Date: Tue Apr  3 20:32:43 2007
New Revision: 525389

URL: http://svn.apache.org/viewvc?view=rev&rev=525389
Log:
HARMONY-3567 fixed some minor bugs in GCv5 verifier. Also resolved HARMONY-3557.

Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h
    harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_scanner.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h?view=diff&rev=525389&r1=525388&r2=525389
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_common.h Tue Apr  3 20:32:43
2007
@@ -130,7 +130,7 @@
 
 inline Boolean wb_is_marked_in_slot(REF* p_ref){
   REF ref = *p_ref;
-  return (POINTER_SIZE_INT)ref & VERIFY_WB_MARK_BIT;
+  return (Boolean)((POINTER_SIZE_INT)ref & VERIFY_WB_MARK_BIT);
 }
 
 inline REF verifier_get_object_slot(REF* p_ref)
@@ -150,7 +150,7 @@
 
 inline Boolean is_unreachable_obj(Partial_Reveal_Object* p_obj)
 {
-  return ((POINTER_SIZE_INT)obj_get_vt_raw(p_obj) & UNREACHABLE_OBJ_MARK_IN_VT);
+  return (Boolean)((POINTER_SIZE_INT)obj_get_vt_raw(p_obj) & UNREACHABLE_OBJ_MARK_IN_VT);
 }
 
 #endif 

Modified: harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_scanner.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_scanner.cpp?view=diff&rev=525389&r1=525388&r2=525389
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_scanner.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_gen/src/verify/verifier_scanner.cpp Tue Apr  3 20:32:43
2007
@@ -297,7 +297,7 @@
   }
   if((POINTER_SIZE_INT)next_area_start < (POINTER_SIZE_INT)lspace->heap_end){
     ret_obj = next_area_start;
-    unsigned int obj_size = ALIGN_UP_TO_KILO(vm_object_size((Partial_Reveal_Object*)next_area_start));
+	POINTER_SIZE_INT obj_size = ALIGN_UP_TO_KILO(vm_object_size((Partial_Reveal_Object*)next_area_start));
     assert(obj_size);
     next_area_start = (POINTER_SIZE_INT*)((POINTER_SIZE_INT)next_area_start + obj_size);
     return (Partial_Reveal_Object*)ret_obj;
@@ -384,6 +384,7 @@
   heap_verifier->live_obj_scanner = verifier_scan_live_objects;
   heap_verifier->all_obj_scanner   = verifier_scan_all_objects;
 }
+
 
 
 



Mime
View raw message