当前位置:网站首页>Simple prohibition of garbage collection in d
Simple prohibition of garbage collection in d
2022-08-09 20:16:00 【fqbqrr】
{import core.memory: GC;GC.disable();scope(exit) GC.enable();foreach (...)// Hot code.}void load_assets(){import core.memory: GC;// Assign, load, etc.GC.collect();}
Now, new attribute
is added to the core.attribute
module instead of being available globally, so if you want to add @GC(...)
syntax, also need to be imported.
边栏推荐
猜你喜欢
随机推荐
史上最全架构师知识图谱
Engaged in software testing for a year, only basic functional testing, how to further study?
Ark Standalone/Administrator Special Item Command Codes
mysql生成随机姓名、手机号、日期
【燃】是时候展现真正的实力了!一文看懂2022华为开发者大赛技术亮点
SSM框架练手项目,高企必备的管理系统—CRM管理系统
openEuler Xiong Wei: How do you view the SIG organization model in the open source community?
Prometheus full installation
Discuz! Forum program installation + template configuration tutorial
Volatile: JVM I warn you, my people don't move
Substrate 源码更新导读八月第1周: 新版事务化存储层启用默认模式, Polkadot v0.9.27发布
安装搭建私有仓库 Harbor
Jenkins使用pipeline部署服务到远程服务器
InfluxDB语法
毕昇编译器优化:Lazy Code Motion
mysql双主备份失败?
最新!2022版新员工基础安全知识教育培训PPT,企业拿去直接用
自学软件测试,学到什么程度可以出去找工作啊?
ref的使用
loadrunner脚本--参数化