harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r478379 - in /harmony/enhanced/drlvm/trunk/vm/gc_cc/src: collect.cpp collect_slide_compact.cpp
Date Wed, 22 Nov 2006 23:32:39 GMT
Author: gshimansky
Date: Wed Nov 22 15:32:37 2006
New Revision: 478379

URL: http://svn.apache.org/viewvc?view=rev&rev=478379
Log:
Applied HARMONY-2216 [DRLVM][GC] vm_hint_finalize() is not called after weak reference is
placed in queue

Tests passed on gentoo and windows XP


Modified:
    harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect.cpp
    harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect_slide_compact.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect.cpp?view=diff&rev=478379&r1=478378&r2=478379
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect.cpp Wed Nov 22 15:32:37 2006
@@ -225,6 +225,9 @@
 }
 
 void process_special_references(reference_vector& array) {
+    if (array.empty()) return;
+    pending_finalizers = true;
+
     for(reference_vector::iterator i = array.begin();
             i != array.end(); ++i) {
         Partial_Reveal_Object *ref = *i;

Modified: harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect_slide_compact.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect_slide_compact.cpp?view=diff&rev=478379&r1=478378&r2=478379
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect_slide_compact.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/gc_cc/src/collect_slide_compact.cpp Wed Nov 22 15:32:37
2006
@@ -573,6 +573,9 @@
 }
 
 void gc_slide_process_special_references(reference_vector& array) {
+    if (array.empty()) return;
+    pending_finalizers = true;
+
     for(reference_vector::iterator i = array.begin();
             i != array.end(); ++i) {
         Partial_Reveal_Object *obj = *i;



Mime
View raw message