harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r936766 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c
Date Thu, 22 Apr 2010 10:43:22 GMT
Author: odeakin
Date: Thu Apr 22 10:43:22 2010
New Revision: 936766

URL: http://svn.apache.org/viewvc?rev=936766&view=rev
Log:
Remove error printf() - loadImpl is only called (indirectly) from MappedByteBuffer.load().
Since that method is a "best effort" to load into physical memory, we should not print an
error when that load fails. Just return an error value (this matches the behaviour on Unix).

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c?rev=936766&r1=936765&r2=936766&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/main/native/luni/windows/OSMemoryWin32.c
Thu Apr 22 10:43:22 2010
@@ -80,7 +80,6 @@ JNIEXPORT jint JNICALL Java_org_apache_h
         VirtualUnlock((void *)addr, (SIZE_T)size);
         return 0;
     }else{
-        printf("lock error: %d\n", GetLastError());
         return -1;
     }
   }



Mime
View raw message