Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Many of the WAN DUnit tests are run with both off-heap disabled and enabled. However, there is an optimization in the off-heap implementation where if the entry value is less than 8-bytes, off-heap is bypassed and the value is put on the heap. This is due to the value being equal to or less than the size of the off-heap address that would have been used. It is therefore pointless to use off-heap if the value itself is less than the size of the address.
In many WAN tests we are using longs as values, which will bypass off-heap in this way. However, it is expected that off-heap is being exercised. We should instead use another data type (strings) as values to be sure that the off-heap feature is actually being exercised.
Attachments
Issue Links
- links to