summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-03-18 10:28:24 -0700
committerElliott Hughes <enh@google.com>2011-03-18 10:28:24 -0700
commit6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4 (patch)
tree17b48e4e935a2d4e6da799e980d6d9770b290c97 /dalvik
parent2f75ad8e64570c7adfb3e95de91ef64d3e4b1806 (diff)
downloadlibcore-6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4.zip
libcore-6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4.tar.gz
libcore-6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4.tar.bz2
Add sysconf(3).
This gives us a getpagesize(3) replacement right now, and will let us implement Runtime.availableProcessors here rather than in the VM in a later change. Bug: 3107501 Change-Id: I6fc1f83d36b026fbe8d37eca525550479677f2de
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/BlockGuard.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java
index 5befaed..65cb301 100644
--- a/dalvik/src/main/java/dalvik/system/BlockGuard.java
+++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java
@@ -220,10 +220,6 @@ public final class BlockGuard {
mFileSystem.truncate(fileDescriptor, size);
}
- public int getAllocGranularity() {
- return mFileSystem.getAllocGranularity();
- }
-
public int open(String path, int mode) throws FileNotFoundException {
BlockGuard.getThreadPolicy().onReadFromDisk();
if (mode != 0) { // 0 is read-only