期刊文献+
共找到1篇文章
< 1 >
每页显示 20 50 100
Automatic recovery from resource exhaustion exceptions by collecting leaked resources 被引量:1
1
作者 Zi-ying DAI xiao-guang mao +1 位作者 Li-qian CHEN Yan LEI 《Journal of Zhejiang University-Science C(Computers and Electronics)》 SCIE EI 2014年第8期622-635,共14页
Despite the availability of garbage collectors, programmers must manually manage non-memory finite system resources such as file descriptors. Resource leaks can gradually consume all available resources and cause prog... Despite the availability of garbage collectors, programmers must manually manage non-memory finite system resources such as file descriptors. Resource leaks can gradually consume all available resources and cause programs to raise resource exhaustion exceptions. However, programmers commonly provide no effective recovery approach for resource exhaustion exceptions, which often causes programs to halt without completing their tasks. In this paper, we propose to automatically recover programs from resource exhaustion exceptions caused by resource leaks. We transform programs to catch resource exhaustion exceptions, collect leaked resources, and then retry the failure code. A resource collector is designed to identify leaked resources and safely release them. We implement our approach for Java programs. Experimental results show that our approach can successfully handle resource exhaustion exceptions caused by reported resource leaks and allow programs to complete their tasks with an average execution time increase of 2.52% and negligible bytecode size increase. 展开更多
关键词 Failure avoidance Resource leaks Resource collection Exception handling RELIABILITY
原文传递
上一页 1 下一页 到第
使用帮助 返回顶部