region-id-in-value · research · also RIV pointer

Region ID in Value (RIV)

Region ID in Value encodes a persistent pointer's target region identifier and within-region offset in one word.

Related Observatory article: Read on hesela.com

Resolution: The runtime translates a stable region ID to its current base address and adds the stored offset. RIV supports independently mapped regions; its 2017 design also uses a reverse mapping for address-to-ID conversion. [1]

Example: Region 7 at base 0x5000 with offset 0x80 names address 0x5080. Remapping that region to 0x9000 changes the decoded address to 0x9080 without changing the encoded ID or offset. The holder can move separately. [2]

Identity: Moving the target inside its region still requires an updated offset. Reusing a region ID for different contents can resolve an old reference to the wrong object even when arithmetic and bounds checks succeed. The example's ID is not a generation counter or authorization token. [2]

Evaluation: The paper used PMEP emulation, four 10000-element data structures and ten measurements per timing result. Those averages are not present-day persistent-memory hardware benchmarks. [1]

Locality: The paper's ten-region experiment distributes elements round-robin. A last-region cache then rarely reuses the preceding region; its single-region experiment benefits from that cache. These access patterns matter when interpreting comparisons of region-ID lookup costs. [1]

Relations

related
Self-relative pointer, Ralloc, Persistent memory, NV-Heaps

Citations

  1. Chen et al. Efficient Support of Position Independence on Non-Volatile Memory. MICRO 2017, sections 4-6. DOI: 10.1145/3123939.3124543. (accessed 2026-12-05)
  2. Hesela. Relative-pointer relocation: executable integer model and worked cases. (accessed 2026-12-05)
Sources & caveats
  • The complete 13-page MICRO 2017 paper was reviewed. Its compiler extensions and reserved virtual-address layout are research designs, not portable standard-C++ features.
  • The executable example uses a declared 32/32-bit ID/offset split and ordinary lookup map, not the paper's specialized address tables or an implementation of its compiler.

JSON: /data/terms/region-id-in-value.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Region ID in Value (RIV). Hesela. 2026-12-05. https://hesela.dev/terms/region-id-in-value/