Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0272e963 authored by Hans Boehm's avatar Hans Boehm Committed by Gerrit Code Review
Browse files

Merge "No longer call registerNativeAllocation"

parents 055977a3 5dc6b621
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1363,13 +1363,6 @@ public class RenderScript {
            mApplicationContext = ctx.getApplicationContext();
        }
        mRWLock = new ReentrantReadWriteLock();
        try {
            registerNativeAllocation.invoke(sRuntime, 4 * 1024 * 1024); // 4MB for GC sake
        } catch (Exception e) {
            Log.e(RenderScript.LOG_TAG, "Couldn't invoke registerNativeAllocation:" + e);
            throw new RSRuntimeException("Couldn't invoke registerNativeAllocation:" + e);
        }

    }

    /**