harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r496957 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp
Date Wed, 17 Jan 2007 08:20:21 GMT
Author: varlax
Date: Wed Jan 17 00:20:20 2007
New Revision: 496957

URL: http://svn.apache.org/viewvc?view=rev&rev=496957
Log:
Applied HARMONY-2292 [drlvm][jit] warning (unused variable at GCMap.cpp:361)

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp?view=diff&rev=496957&r1=496956&r2=496957
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp Wed Jan 17
00:20:20 2007
@@ -368,7 +368,10 @@
         POINTER_SIZE_INT mptrAddr = *((POINTER_SIZE_INT*)valPtrAddr); 
         //we looking for a base that  a) located before mptr in memory b) nearest to mptr
         GCSafePointOpnd* baseOpnd = NULL;
-        POINTER_SIZE_INT basePtrAddr = 0, baseAddr = 0;
+#ifdef ENABLE_GC_RT_CHECKS
+        POINTER_SIZE_INT basePtrAddr = 0;
+#endif
+        POINTER_SIZE_INT baseAddr = 0;
         for (uint32 j=0; j<n; j++) {
             GCSafePointOpnd* tmpOpnd = gcOpnds[j];   
             if (tmpOpnd->isObject()) {
@@ -377,7 +380,9 @@
                 if (tmpBaseAddr <= mptrAddr) {
                     if (baseOpnd == NULL || tmpBaseAddr > baseAddr) {
                         baseOpnd = tmpOpnd;
+#ifdef ENABLE_GC_RT_CHECKS
                         basePtrAddr = tmpPtrAddr;
+#endif
                         baseAddr = tmpBaseAddr;
                     } 
                 }



Mime
View raw message