summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipc/ipc_hash.c5
-rw-r--r--ipc/ipc_hash.h2
-rw-r--r--ipc/ipc_marequest.c5
-rw-r--r--ipc/ipc_marequest.h1
4 files changed, 7 insertions, 6 deletions
diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c
index a1ca225..ad05016 100644
--- a/ipc/ipc_hash.c
+++ b/ipc/ipc_hash.c
@@ -535,10 +535,9 @@ ipc_hash_init(void)
{
ipc_hash_index_t i;
- /* if not configured, initialize ipc_hash_global_size */
+ /* initialize ipc_hash_global_size */
- if (ipc_hash_global_size == 0)
- ipc_hash_global_size = 256;
+ ipc_hash_global_size = IPC_HASH_GLOBAL_SIZE;
/* make sure it is a power of two */
diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h
index 58c56ca..929ba77 100644
--- a/ipc/ipc_hash.h
+++ b/ipc/ipc_hash.h
@@ -67,6 +67,8 @@ ipc_hash_delete(ipc_space_t space, ipc_object_t obj,
* and the local primitives, for table entries.
*/
+#define IPC_HASH_GLOBAL_SIZE 256
+
extern boolean_t
ipc_hash_global_lookup(ipc_space_t space, ipc_object_t obj,
mach_port_t *namep, ipc_tree_entry_t *entryp);
diff --git a/ipc/ipc_marequest.c b/ipc/ipc_marequest.c
index 6036967..06c53eb 100644
--- a/ipc/ipc_marequest.c
+++ b/ipc/ipc_marequest.c
@@ -98,10 +98,9 @@ ipc_marequest_init(void)
{
ipc_marequest_index_t i;
- /* if not configured, initialize ipc_marequest_size */
+ /* initialize ipc_marequest_size */
- if (ipc_marequest_size == 0)
- ipc_marequest_size = 16;
+ ipc_marequest_size = IPC_MAREQUEST_SIZE;
/* make sure it is a power of two */
diff --git a/ipc/ipc_marequest.h b/ipc/ipc_marequest.h
index eb3746d..4f6f758 100644
--- a/ipc/ipc_marequest.h
+++ b/ipc/ipc_marequest.h
@@ -70,6 +70,7 @@ typedef struct ipc_marequest {
#define IMAR_NULL ((ipc_marequest_t) 0)
+#define IPC_MAREQUEST_SIZE 16
extern void
ipc_marequest_init(void);