机构地区:[1]College of Computer, National University of Defense Technology [2]Laboratory of Science and Technology on Integrated Logistics Support,National University of Defense Technology [3]Department of Computer Science, University of California
出 处:《Journal of Zhejiang University-Science C(Computers and Electronics)》2014年第8期622-635,共14页浙江大学学报C辑(计算机与电子(英文版)
基 金:supported by the National Natural Science Foundation of China(Nos.61379054 and 91318301);the National High-Tech R&D Program(863)of China(No.2012AA011201)
摘 要: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.Despite the availability of garbage collectors, programmers must manually manage non-memory finitesystem 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
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...