Bug 707675 - Change OOM log level from error to warning. r=blassey a=java-only
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 13 Dec 2011 16:42:51 -0500
changeset 84164 57d355d65a64eaefa5e0182adc43a7579722c2be
parent 84163 6bb5ecf566001f8864cb7afebf09deafbd17c9fd
child 84165 21e55816051dbbeb70a9e5ce58c1660c18cd6189
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, java-only
bugs707675
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 707675 - Change OOM log level from error to warning. r=blassey a=java-only
mobile/android/base/gfx/GeckoSoftwareLayerClient.java
--- a/mobile/android/base/gfx/GeckoSoftwareLayerClient.java
+++ b/mobile/android/base/gfx/GeckoSoftwareLayerClient.java
@@ -204,17 +204,17 @@ public class GeckoSoftwareLayerClient ex
 
     public Bitmap getBitmap() {
         try {
             Bitmap b = Bitmap.createBitmap(mWidth, mHeight,
                                            CairoUtils.cairoFormatTobitmapConfig(mFormat));
             b.copyPixelsFromBuffer(mBuffer.asIntBuffer());
             return b;
         } catch (OutOfMemoryError oom) {
-            Log.e(LOGTAG, "Unable to create bitmap", oom);
+            Log.w(LOGTAG, "Unable to create bitmap", oom);
             return null;
         }
     }
 
     /** Returns the back buffer. This function is for Gecko to use. */
     public ByteBuffer lockBuffer() {
         return mBuffer;
     }