Lune

FSE2020Top-tier venue

JShrink: in-depth investigation into debloating modern Java applications

Bobby R. Bruce, Tianyi Zhang, Jaspreet Arora, Guoqing Harry Xu, Miryung Kim

Abstract

Modern software is bloated. Demand for new functionality has led developers to include more and more features, many of which become unneeded or unused as software evolves. This phenomenon, known as software bloat, results in software consuming more resources than it otherwise needs to. How to effectively and automatically debloat software is a long-standing problem in software engineering. Various debloating techniques have been proposed since the late 1990s. However, many of these techniques are built upon pure static analysis and have yet to be extended and evaluated in the context of modern Java applications where dynamic language features are prevalent.

To this end, we develop an end-to-end bytecode debloating framework called JShrink. It augments traditional static reachability analysis with dynamic profiling and type dependency analysis and renovates existing bytecode transformations to account for new language features in modern Java. We highlight several nuanced technical challenges that must be handled properly and examine behavior preservation of debloated software via regression testing. We find that (1) JShrink is able to debloat our real-world Java benchmark suite by up to 47% (14% on average); (2) accounting for dynamic language features is indeed crucial to ensure behavior preservation-reducing 98% of test failures incurred by a purely static equivalent, Jax, and 84% for ProGuard; and (3) compared with purely dynamic approaches, integrating static analysis with dynamic profiling makes the debloated software more robust to unseen test executions-in 22 out of 26 projects, the debloated software ran successfully under new tests.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Logical bytecode reduction cites Effective Program Debloating via Reinforcement Learning
  • A longitudinal analysis of bloated Java dependencies cites Debloating Software through Piece-Wise Compilation and Loading
  • A longitudinal analysis of bloated Java dependencies cites RAZOR: A Framework for Post-deployment Software Debloating
  • BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework Abstraction cites Debloating Software through Piece-Wise Compilation and Loading
  • BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework Abstraction cites RAZOR: A Framework for Post-deployment Software Debloating
  • RAZOR: A Framework for Post-deployment Software Debloating cites Debloating Software through Piece-Wise Compilation and Loading
  • RAZOR: A Framework for Post-deployment Software Debloating cites Effective Program Debloating via Reinforcement Learning
  • Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating cites A longitudinal analysis of bloated Java dependencies
  • Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating cites Debloating Software through Piece-Wise Compilation and Loading
  • Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating cites RAZOR: A Framework for Post-deployment Software Debloating
  • Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating cites Effective Program Debloating via Reinforcement Learning
  • A Broad Comparative Evaluation of Software Debloating Tools cites Debloating Software through Piece-Wise Compilation and Loading
  • A Broad Comparative Evaluation of Software Debloating Tools cites RAZOR: A Framework for Post-deployment Software Debloating
  • A Broad Comparative Evaluation of Software Debloating Tools cites Studying and Understanding the Tradeoffs Between Generality and Reduction in Software Debloating
  • A Broad Comparative Evaluation of Software Debloating Tools cites Effective Program Debloating via Reinforcement Learning
  • Effective Program Debloating via Reinforcement Learning cites Debloating Software through Piece-Wise Compilation and Loading
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. A longitudinal analysis of bloated Java dependenciesCésar Soto-Valero, Thomas Durieux, Benoit BaudryFSE 2021 · 47 citations
  2. BigFuzz: Efficient Fuzz Testing for Data Analytics Using Framework AbstractionQian Zhang, Jiyuan Wang, Muhammad Ali Gulzar, Rohan Padhye et al.ASE 2020 · 27 citations
  3. Logical bytecode reductionChristian Gram Kalhauge, Jens PalsbergPLDI 2021 · 16 citations
  4. A Broad Comparative Evaluation of Software Debloating ToolsMichael D. Brown, Adam Meily, Brian Fairservice, Akshay Sood et al.USENIX Security 2024 · 16 citations
  5. Studying and Understanding the Tradeoffs Between Generality and Reduction in Software DebloatingQi Xin, Qirun Zhang, Alessandro OrsoASE 2022 · 15 citations

Builds on4

  1. Effective Program Debloating via Reinforcement LearningKihong Heo, Woosuk Lee, Pardis Pashakhanloo, Mayur NaikCCS 2018 · 175 citations
  2. Debloating Software through Piece-Wise Compilation and LoadingAnh Quach, Aravind Prakash, Lok-Kwong YanUSENIX Security 2018 · 153 citations
  3. RAZOR: A Framework for Post-deployment Software DebloatingChenxiong Qian, Hong Hu, Mansour Alharthi, Simon Pak Ho Chung et al.USENIX Security 2019 · 132 citations
  4. VMHunt: A Verifiable Approach to Partially-Virtualized Binary Code SimplificationDongpeng Xu, Jiang Ming, Yu Fu, Dinghao WuCCS 2018 · 60 citations

Related papers

  1. Subdomain-Based Generality-Aware DebloatingQi Xin, Myeongsoo Kim, Qirun Zhang, Alessandro OrsoASE 2020 · 8 citations
  2. Minimalist: Semi-automated Debloating of PHP Web Applications through Static AnalysisRasoul Jahanshahi, Babak Amin Azad, Nick Nikiforakis, Manuel EgeleUSENIX Security 2023
  3. One Size Does Fit All: Kernel-Assisted Fine-Grained Debloating and Layout Randomization for Shared LibrariesZiyi Lin, Haoyu Ma, Kexin Liu, Bowen Li et al.ICSE 2026
  4. MiniMon: Minimizing Android Applications with Intelligent Monitoring-Based DebloatingJiakun Liu, Zicheng Zhang, Xing Hu, Ferdian Thung et al.ICSE 2024 · 2 citations
  5. Bloat beneath Python's Scales: A Fine-Grained Inter-Project Dependency AnalysisGeorgios-Petros Drosos, Thodoris Sotiropoulos, Diomidis Spinellis, Dimitris MitropoulosFSE 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines