summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2016-02-07 12:56:42 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2016-02-07 12:56:42 +0100
commitef62b420194e5cd5c5957a672061c18bcedb4b49 (patch)
treebae9aeaf60a45582840f9a317e13a456ee294477
parent48f34366eb90ce0fe1f4237f6e3aaa09256ed354 (diff)
vm: allocate a large map for all objects larger than SMALL_SIZE
* vm/vm_external.c (vm_external_create): Allocate a large map for all objects larger than SMALL_SIZE. 'vm_external_state_{g,s}et' can deal with offsets larger than 'LARGE_SIZE', so currently objects larger than 'LARGE_SIZE' are missing out on the optimization.
-rw-r--r--vm/vm_external.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_external.c b/vm/vm_external.c
index 097a9b1..7584a2b 100644
--- a/vm/vm_external.c
+++ b/vm/vm_external.c
@@ -69,7 +69,7 @@ vm_external_t vm_external_create(vm_offset_t size)
result->existence_map =
(char *) kmem_cache_alloc(&vm_object_small_existence_map_cache);
result->existence_size = SMALL_SIZE;
- } else if (bytes <= LARGE_SIZE) {
+ } else {
result->existence_map =
(char *) kmem_cache_alloc(&vm_object_large_existence_map_cache);
result->existence_size = LARGE_SIZE;