Loading core/java/android/os/SharedMemory.java +5 −3 Original line number Diff line number Diff line Loading @@ -381,10 +381,12 @@ public final class SharedMemory implements Parcelable, Closeable { private MemoryRegistration(int size) { // Round up to the nearest page size final int PAGE_SIZE = OsConstants._SC_PAGE_SIZE; if (PAGE_SIZE > 0) { final int remainder = size % PAGE_SIZE; if (remainder != 0) { size += PAGE_SIZE - remainder; } } mSize = size; mReferenceCount = 1; VMRuntime.getRuntime().registerNativeAllocation(mSize); Loading Loading
core/java/android/os/SharedMemory.java +5 −3 Original line number Diff line number Diff line Loading @@ -381,10 +381,12 @@ public final class SharedMemory implements Parcelable, Closeable { private MemoryRegistration(int size) { // Round up to the nearest page size final int PAGE_SIZE = OsConstants._SC_PAGE_SIZE; if (PAGE_SIZE > 0) { final int remainder = size % PAGE_SIZE; if (remainder != 0) { size += PAGE_SIZE - remainder; } } mSize = size; mReferenceCount = 1; VMRuntime.getRuntime().registerNativeAllocation(mSize); Loading