harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r724034 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp
Date Sat, 06 Dec 2008 20:15:15 GMT
Author: ndbeyer
Date: Sat Dec  6 12:15:14 2008
New Revision: 724034

URL: http://svn.apache.org/viewvc?rev=724034&view=rev
Log:
reorder parameters to use memset correctly

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp?rev=724034&r1=724033&r2=724034&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/optimizer.cpp Sat Dec  6 12:15:14
2008
@@ -177,22 +177,22 @@
     optimizerFlags.dump_abcd_stats = getBoolArg("dump_abcd_stats", false);
 
     optimizerFlags.abcdFlags = new (mm) AbcdFlags;
-    memset(optimizerFlags.abcdFlags, sizeof(AbcdFlags), 0);
+    memset(optimizerFlags.abcdFlags, 0, sizeof(AbcdFlags));
 
     optimizerFlags.gcmFlags = new (mm) GcmFlags;
-    memset(optimizerFlags.gcmFlags, sizeof(GcmFlags), 0);
+    memset(optimizerFlags.gcmFlags, 0, sizeof(GcmFlags));
     
     optimizerFlags.memOptFlags = new (mm) MemoptFlags;
-    memset(optimizerFlags.memOptFlags, sizeof(MemoptFlags), 0);
+    memset(optimizerFlags.memOptFlags, 0, sizeof(MemoptFlags));
 
     optimizerFlags.syncOptFlags = new (mm) SyncOptFlags;
-    memset(optimizerFlags.syncOptFlags, sizeof(SyncOptFlags), 0);
+    memset(optimizerFlags.syncOptFlags, 0, sizeof(SyncOptFlags));
 
     optimizerFlags.loopBuilderFlags = new (mm) LoopBuilderFlags;
-    memset(optimizerFlags.loopBuilderFlags, sizeof(LoopBuilderFlags), 0);
+    memset(optimizerFlags.loopBuilderFlags, 0, sizeof(LoopBuilderFlags));
 
     optimizerFlags.dabceFlags = new (mm) DynamicABCEFlags;
-    memset(optimizerFlags.dabceFlags, sizeof(DynamicABCEFlags), 0);
+    memset(optimizerFlags.dabceFlags, 0, sizeof(DynamicABCEFlags));
 
     Abcd::readFlags(this, optimizerFlags.abcdFlags);
     GlobalCodeMotion::readFlags(this, optimizerFlags.gcmFlags);



Mime
View raw message