Merge "No longer call registerNativeAllocation"

This commit is contained in:
Hans Boehm
2021-03-08 20:48:11 +00:00
committed by Gerrit Code Review

View File

@@ -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);
}
}
/**