The Virtual Garbage Collector (VGC) introduces a novel memory management framework designed to optimize performance across diverse systems, ranging from resource constrained embedded devices to high performance parallel architectures. Unlike conventional garbage collectors, VGC employs a dual layer architecture consisting of Active VGC and Passive VGC to enable efficient, low overhead memory management. Active VGC dynamically manages runtime objects using a concurrent mark and sweep strategy tailored for parallel workloads, reducing pause times by up to 30 percent compared to generational collectors in multithreaded benchmarks. Passive VGC operates at compile time and optimizes static object allocation through predictive memory mapping, minimizing fragmentation by aligning objects to cache boundaries. This separation of responsibilities ensures predictable memory access patterns, reduces total memory usage by up to 25 percent, and improves scalability for modern parallel applications. By integrating compile time and runtime optimizations, VGC provides a robust and adaptable solution for memory intensive systems across both low level and high level programming environments.
翻译:虚拟垃圾回收器(VGC)提出了一种新颖的内存管理框架,旨在优化从资源受限的嵌入式设备到高性能并行架构等多样化系统的性能。与传统垃圾回收器不同,VGC采用由主动VGC与被动VGC构成的双层架构,以实现高效、低开销的内存管理。主动VGC通过为并行工作负载定制的并发标记-清除策略动态管理运行时对象,在多线程基准测试中,相较于分代回收器可将暂停时间减少高达30%。被动VGC在编译时运行,通过预测性内存映射优化静态对象分配,并通过将对象对齐至缓存边界来最小化内存碎片。这种职责分离机制确保了可预测的内存访问模式,将总内存使用量降低最高达25%,并提升了现代并行应用的可扩展性。通过整合编译时与运行时优化,VGC为从底层到高层的编程环境中的内存密集型系统提供了鲁棒且适应性强的解决方案。