Files
progcode/web/fsd/widgets/mechanism-map/index.jsx
T
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

3 lines
1.1 KiB
React
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import {TextLink} from '../../shared/ui';
export default function MechanismMap({href}){return <aside className="mechanism" aria-labelledby="mechanism-title"><p className="mono" id="mechanism-title">ПАМЯТЬ / УПРОЩЁННАЯ МОДЕЛЬ MARK–SWEEP</p><div className="memory-map" role="img" aria-label="От корней есть путь к A, затем к B. К C пути нет."><span className="memory-root">Корни</span><span className="memory-arrow" aria-hidden="true">→</span><span className="memory-reachable">A</span><span className="memory-arrow" aria-hidden="true">→</span><span className="memory-reachable">B</span><span className="memory-unreachable">C <small>нет пути</small></span></div><p><strong>MARK</strong> отмечает A и B.<br/><strong>SWEEP</strong> освобождает блок C.</p><p className="mechanism-note">Корни — стек, регистры и данные. Финализаторы и ложные указатели усложняют реализацию; это схема из разбора 2017 года.</p><TextLink href={href}>Как устроен сбор →</TextLink></aside>}