Files
huncode 12562baeb5
Build and deploy / deploy (push) Successful in 2m39s
Implement ProgCode identity and real shared reading UI kit
2026-10-27 15:19:49 +03:00

1 line
6.7 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="640" height="1250" viewBox="0 0 640 1250" role="img" aria-labelledby="title desc"><title id="title">Малые и большие пулы GC D</title><desc id="desc">В описании GC 2017 года малые объекты округляются до класса размера и размещаются блоками на странице. Большой объект занимает ряд страниц; таблица хранит страницу его начала.</desc><defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0 0 8 4 0 8" fill="none" stroke="#b64d26" stroke-width="1.6"/></marker><pattern id="hatch" width="9" height="9" patternUnits="userSpaceOnUse"><path d="M-2 2 2-2 M0 9 9 0 M7 11 11 7" stroke="#d8d0c0" stroke-width="2"/></pattern></defs><rect width="640" height="1250" rx="4" fill="#fbf8f1"/><g font-family="Arial,Helvetica,sans-serif" fill="#242824"><text x="32" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start" font-family="monospace">07 / D GC</text><text x="32" y="87" font-size="33" font-weight="bold" fill="#242824" text-anchor="start">Как пул раскладывает объекты</text><text x="32" y="122" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Две структуры из разбора реализации 2017 года.</text><path d="M32 148 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="32" y="198" font-size="22" font-weight="bold" fill="#b64d26" text-anchor="start">МАЛЫЕ ОБЪЕКТЫ: ДО 2048 БАЙТ</text><text x="32" y="240" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">Запрос 40 байт → класс 64 байта</text><text x="32" y="277" font-size="25" font-weight="normal" fill="#676961" text-anchor="start">Классы: 16, 32, 64, …, 2048</text><rect x="32" y="306" width="576" height="209" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="54" y="342" font-size="21" font-weight="bold" fill="#b64d26" text-anchor="start">ФРАГМЕНТ СТРАНИЦЫ</text><rect x="54" y="365" width="59" height="66" rx="3" fill="#fbf8f1" stroke="#b64d26" stroke-width="2"/><text x="83" y="405" font-size="22" font-weight="normal" fill="#242824" text-anchor="middle">40</text><path d="M92 368 V429" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><rect x="121" y="365" width="59" height="66" rx="3" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><rect x="188" y="365" width="59" height="66" rx="3" fill="#fbf8f1" stroke="#d8d0c0" stroke-width="2"/><rect x="255" y="365" width="59" height="66" rx="3" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><rect x="322" y="365" width="59" height="66" rx="3" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><rect x="389" y="365" width="59" height="66" rx="3" fill="#fbf8f1" stroke="#d8d0c0" stroke-width="2"/><rect x="456" y="365" width="59" height="66" rx="3" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><rect x="523" y="365" width="59" height="66" rx="3" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="473" font-size="23" font-weight="normal" fill="#242824" text-anchor="start">64 байта / блок · штриховка — свободно</text><text x="54" y="505" font-size="23" font-weight="normal" fill="#676961" text-anchor="start">В первом занято 40; остаток — резерв.</text><path d="M320 517 V554" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="32" y="577" width="576" height="101" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="615" font-size="26" font-weight="bold" fill="#242824" text-anchor="start">Таблица страниц → класс размера</text><text x="54" y="653" font-size="23" font-weight="normal" fill="#676961" text-anchor="start">Битовые карты: отметки / свободные блоки</text><path d="M32 711 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="32" y="756" font-size="21" font-weight="bold" fill="#b64d26" text-anchor="start">БОЛЬШИЕ ОБЪЕКТЫ: СВЫШЕ 2048 БАЙТ</text><text x="32" y="799" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">Запрос 9000 байт → 3 страницы</text><text x="32" y="837" font-size="25" font-weight="normal" fill="#676961" text-anchor="start">Шаг выделения — страница 4 КиБ</text><rect x="32" y="866" width="576" height="169" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="102" y="902" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">0</text><rect x="54" y="920" width="98" height="78" rx="2" fill="#f1d3c1" stroke="#b64d26" stroke-width="2"/><text x="209" y="902" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">1</text><rect x="161" y="920" width="98" height="78" rx="2" fill="#f1d3c1" stroke="#b64d26" stroke-width="2"/><text x="316" y="902" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">2</text><rect x="268" y="920" width="98" height="78" rx="2" fill="#f1d3c1" stroke="#b64d26" stroke-width="2"/><text x="423" y="902" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">3</text><rect x="375" y="920" width="98" height="78" rx="2" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><text x="530" y="902" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">4</text><rect x="482" y="920" width="98" height="78" rx="2" fill="url(#hatch)" stroke="#d8d0c0" stroke-width="2"/><text x="213" y="968" font-size="25" font-weight="bold" fill="#242824" text-anchor="middle">один объект</text><text x="481" y="968" font-size="22" font-weight="normal" fill="#676961" text-anchor="middle">свободно</text><path d="M320 1037 V1071" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><rect x="32" y="1094" width="576" height="102" rx="10" fill="white" stroke="#d8d0c0" stroke-width="2"/><text x="54" y="1133" font-size="26" font-weight="bold" fill="#242824" text-anchor="start">Таблица → страница начала объекта</text><text x="54" y="1173" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Для страниц 0, 1 и 2 начало — страница 0.</text><text x="32" y="1231" font-size="23" font-weight="normal" fill="#b64d26" text-anchor="start">Схема не задаёт текущую реализацию druntime.</text></g></svg>