qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 08/10] qht: QEMU's fast, resizable and scalable


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 08/10] qht: QEMU's fast, resizable and scalable Hash Table
Date: Tue, 5 Apr 2016 08:50:24 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1

On 04/04/2016 10:30 PM, Emilio G. Cota wrote:
+struct qht_map {
+    struct qht_bucket *buckets;
+    uint64_t n;
+    uint64_t n_items;
+    uint64_t n_items_threshold;
+    struct rcu_head rcu;
+};

There's no point in using 64-bit data for a 32-bit host.
You should be using e.g. size_t for the counts.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]