1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59

base / allocator / partition_allocator / src / partition_alloc / dot / bucket.dot [blame]

digraph {
  node[shape=plaintext]
  edge[style=dashed, color=crimson]

  page1[label=<
    <table border="0" cellborder="1" cellspacing="0"><tr>
      <!-- head partition page -->
      <td port="head" bgcolor="darkgrey" width="40" height="52"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="160"></td>
      <!-- a slot span in this bucket -->
   <td port="slotspan" bgcolor="crimson" width="80"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="320"></td>
      <!-- tail partition page -->
      <td bgcolor="darkgrey" width="40"></td>
    </tr></table>
  >]
  page2[label=<
    <table border="0" cellborder="1" cellspacing="0"><tr>
      <!-- head partition page -->
      <td port="head" bgcolor="darkgrey" width="40" height="52"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="280"></td>
      <!-- a slot span in this bucket -->
      <td port="slotspan" bgcolor="crimson" width="80"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="200"></td>
      <!-- tail partition page -->
      <td bgcolor="darkgrey" width="40"></td>
    </tr></table>
  >]
  page3[label=<
    <table border="0" cellborder="1" cellspacing="0"><tr>
      <!-- head partition page -->
      <td port="head" bgcolor="darkgrey" width="40" height="52"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="40"></td>
      <!-- a slot span in this bucket -->
      <td port="slotspan1" bgcolor="crimson" width="80"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="120"></td>
      <!-- a slot span in this bucket -->
      <td port="slotspan2" bgcolor="crimson" width="80"></td>
      <!-- bucket-external memory - not depicted -->
      <td width="240"></td>
      <!-- tail partition page -->
      <td bgcolor="darkgrey" width="40"></td>
    </tr></table>
  >]

  // Invisibly link the head partition pages to force alignment.
  page1:head->page2:head->page3:head[style=invis]

  // Inter-super-page links disable constraints so to let the above
  // fully control alignment.
  page1:slotspan->page2:slotspan->page3:slotspan1[constraint=false]
  page3:slotspan1:s->page3:slotspan2:sw
}