Debloating Software Through Enhanced Static Analysis and Constraint Rules

计算机科学 约束(计算机辅助设计) 程序设计语言 软件 软件工程 工程类 机械工程
作者
Xiaohu Song,Hai Yu,Ying Wang,Zhiliang Zhu
出处
期刊:Software - Practice and Experience [Wiley]
卷期号:55 (10): 1696-1710
标识
DOI:10.1002/spe.70003
摘要

ABSTRACT Introduction Java applications often bloat, consuming more resources than necessary. Existing bytecode debloating techniques have several limitations, such as compromised correctness caused by incomplete code collection, which leads to false positives. The debloating process is resource‐intensive because it relies significantly on the test coverage to identify unnecessary code. This method is particularly problematic for large‐enterprise applications, where executing a single test case can take hours or days. In addition, most available debloating tools are standalone utilities that require manual configuration to be integrated with the project‐building process. Methods In this study, we introduce an automated approach known as Trimming. Trimming achieves three main improvements: (1) it collects the necessary code using enhanced static analysis, improves the modeling of reflective calls, and infers instantiation objects. It also uses constraint rules to identify and process reference codes that contribute to bloating but cannot be removed without causing errors. (2) It is not based on test coverage. (3) It allows for direct debloating from the project build by implementing a Maven plugin that is configured within the POM.xml file of the bloated project. Results Our evaluation results show that when Java reflection analysis or constraint rules in TRIMMING were disabled, the effectiveness of debloating analysis dropped to 88.25% with a 95% confidence interval (CI) of [85.3%, 91.2%], and 35.0% with a 95% CI of [30.5%, 39.5%], respectively. Moreover, inferring instantiation objects reduced the program size by 4.9%. Trimming achieved a bytecode reduction rate of 24.1%, with all the debloated projects successfully compiling and passing test suites.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
刚刚
刚刚
传奇3应助senli2018采纳,获得10
1秒前
1秒前
1秒前
无极微光应助lnmxl采纳,获得20
1秒前
Charlie发布了新的文献求助10
2秒前
ma发布了新的文献求助10
2秒前
Akim应助jli1856采纳,获得10
2秒前
简单海露应助a1423072381采纳,获得10
3秒前
淡然寒云发布了新的文献求助10
3秒前
大黑牛发布了新的文献求助10
3秒前
Daaz发布了新的文献求助10
3秒前
shadow发布了新的文献求助10
3秒前
4秒前
有灵魅发布了新的文献求助10
4秒前
坚强的凡双完成签到,获得积分10
4秒前
小二郎应助Sledge采纳,获得10
4秒前
5秒前
鱼鱼鱼发布了新的文献求助10
5秒前
5秒前
6秒前
6秒前
情怀应助sssssss采纳,获得10
6秒前
qwerty123456发布了新的文献求助10
6秒前
科研通AI6.2应助BZPL采纳,获得10
6秒前
所所应助yuxuan采纳,获得10
6秒前
7秒前
ll应助denisewang采纳,获得10
7秒前
可爱的函函应助小林采纳,获得10
7秒前
Krismile发布了新的文献求助10
7秒前
土豆大王完成签到,获得积分10
8秒前
8秒前
勤劳盼易发布了新的文献求助10
8秒前
8秒前
丘比特应助mumu采纳,获得10
8秒前
Liu发布了新的文献求助30
8秒前
有灵魅完成签到,获得积分10
9秒前
jm发布了新的文献求助10
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
A Case Study on Hotels as Noncongregate Emergency Living Accommodations for Returning Citizens 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7757054
求助须知:如何正确求助?哪些是违规求助? 9303518
关于积分的说明 20274828
捐赠科研通 7340592
什么是DOI,文献DOI怎么找? 3311725
关于科研通互助平台的介绍 2462591
邀请新用户注册赠送积分活动 2325427