{"id":{"repo_id":"rice","oai_identifier":"oai:repository.rice.edu:1911/105972"},"canonical_url":"https://search.ndltd.org/etd/rice/oai:repository.rice.edu:1911/105972","repository":{"repo_id":"rice","name":"Rice University","base_url":"https://repository.rice.edu/server/oai/request"},"display":{"title":"ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation","abstract":"Just-in-time (JIT) compilation coupled with code caching are widely used to improve performance in dynamic programming language implementations. Code caches and the associated profiling data for the hot code consume significant amounts of memory. Furthermore, cache generation incurs extra JIT compilation time. On Android, the current standard JIT compiler and its code caches are not shared among processes---that is, the runtime system maintains a private code cache, and its associated data, for each runtime process. However, applications running on the same platform tend to share multiple libraries. Sharing cached code across multiple applications and multiple processes can lead to a reduction in memory use. It can directly reduce compile time. It can also reduce the cumulative amount of time spent interpreting code. All three of these effects can improve actual runtime performance. This thesis presents ShareJIT, a global code cache for JITs that shares code across multiple applications and multiple processes. We implemented ShareJIT in the context of the Android Runtime (ART), a widely used, state-of-the-art system. To increase sharing, our implementation constrains the amount of context that the JIT compiler can use to optimize the code. This exposes a fundamental tradeoff: increased specialization to a single process' context decreases the extent to which the compiled code can be shared. In ShareJIT, we limit some optimization to increase shareability. We also discuss policies to update and garbage-collect the global shared code cache and analyze the performance-critical parameters in sharing compiled code among inter-process methods. To evaluate ShareJIT, we tested 8 popular Android apps in a total of 30 experiments. ShareJIT improved overall performance by 9.24% on average, while decreasing memory consumption by 16.43% on average and JIT compilation time by 36.24% on average. At the system level, ShareJIT also reduced the number of retired instructions by an average of 7.64% and the number of CPU cache misses by an average of 10.39%.","abstract_html":"Just-in-time (JIT) compilation coupled with code caching are widely used to improve performance in dynamic programming language implementations. Code caches and the associated profiling data for the hot code consume significant amounts of memory. Furthermore, cache generation incurs extra JIT compilation time. On Android, the current standard JIT compiler and its code caches are not shared among processes---that is, the runtime system maintains a private code cache, and its associated data, for each runtime process. However, applications running on the same platform tend to share multiple libraries. Sharing cached code across multiple applications and multiple processes can lead to a reduction in memory use. It can directly reduce compile time. It can also reduce the cumulative amount of time spent interpreting code. All three of these effects can improve actual runtime performance. This thesis presents ShareJIT, a global code cache for JITs that shares code across multiple applications and multiple processes. We implemented ShareJIT in the context of the Android Runtime (ART), a widely used, state-of-the-art system. To increase sharing, our implementation constrains the amount of context that the JIT compiler can use to optimize the code. This exposes a fundamental tradeoff: increased specialization to a single process&#x27; context decreases the extent to which the compiled code can be shared. In ShareJIT, we limit some optimization to increase shareability. We also discuss policies to update and garbage-collect the global shared code cache and analyze the performance-critical parameters in sharing compiled code among inter-process methods. To evaluate ShareJIT, we tested 8 popular Android apps in a total of 30 experiments. ShareJIT improved overall performance by 9.24% on average, while decreasing memory consumption by 16.43% on average and JIT compilation time by 36.24% on average. At the system level, ShareJIT also reduced the number of retired instructions by an average of 7.64% and the number of CPU cache misses by an average of 10.39%.","abstract_has_math":false,"creators":["Xu, Xiaoran"],"institution":"Rice University","degree_name":"Doctor of Philosophy","degree_level":"Doctoral","degree_discipline":"Engineering","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Cooper, Keith D"],"committee_chairs":[],"committee_members":[],"year":2019,"date_issued":"2019-04-09","date_published":"2019-04-09","updated_at":"2026-11-19T09:21:08Z","subjects":["JIT compilation","Code Cache Sharing","Android Runtime System"],"languages":["eng"],"rights":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Xu, Xiaoran. \"ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation.\" (2019) Diss., Rice University. <a href=\"https://hdl.handle.net/1911/105972\">https://hdl.handle.net/1911/105972</a>."],"render_values":[{"text":"Xu, Xiaoran. \"ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation.\" (2019) Diss., Rice University. <a href=\"https://hdl.handle.net/1911/105972\">https://hdl.handle.net/1911/105972</a>.","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1911/105972","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1911/105972","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Arice%3Aoai%3Arepository.rice.edu%3A1911%2F105972","prefix":"oai_dc"},"source_record":{"url":"https://repository.rice.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepository.rice.edu%3A1911%2F105972","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Cooper, Keith D"]},{"key":"dc:creator","label":"Author","values":["Xu, Xiaoran"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2019-05-17T18:56:42Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2019-05-17T18:56:42Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2019-05"]},{"key":"dc:date.issued","label":"Date","values":["2019-04-09"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["May 2019"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2019-05-17T18:56:42Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","Text"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Rice University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["JIT compilation","Code Cache Sharing","Android Runtime System"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Xu, Xiaoran. \"ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation.\" (2019) Diss., Rice University. <a href=\"https://hdl.handle.net/1911/105972\">https://hdl.handle.net/1911/105972</a>."]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1911/105972"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Just-in-time (JIT) compilation coupled with code caching are widely used to improve performance in dynamic programming language implementations. Code caches and the associated profiling data for the hot code consume significant amounts of memory. Furthermore, cache generation incurs extra JIT compilation time. On Android, the current standard JIT compiler and its code caches are not shared among processes---that is, the runtime system maintains a private code cache, and its associated data, for each runtime process. However, applications running on the same platform tend to share multiple libraries. Sharing cached code across multiple applications and multiple processes can lead to a reduction in memory use. It can directly reduce compile time. It can also reduce the cumulative amount of time spent interpreting code. All three of these effects can improve actual runtime performance. This thesis presents ShareJIT, a global code cache for JITs that shares code across multiple applications and multiple processes. We implemented ShareJIT in the context of the Android Runtime (ART), a widely used, state-of-the-art system. To increase sharing, our implementation constrains the amount of context that the JIT compiler can use to optimize the code. This exposes a fundamental tradeoff: increased specialization to a single process' context decreases the extent to which the compiled code can be shared. In ShareJIT, we limit some optimization to increase shareability. We also discuss policies to update and garbage-collect the global shared code cache and analyze the performance-critical parameters in sharing compiled code among inter-process methods. To evaluate ShareJIT, we tested 8 popular Android apps in a total of 30 experiments. ShareJIT improved overall performance by 9.24% on average, while decreasing memory consumption by 16.43% on average and JIT compilation time by 36.24% on average. At the system level, ShareJIT also reduced the number of retired instructions by an average of 7.64% and the number of CPU cache misses by an average of 10.39%."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Cooper, Keith D"],"dc:creator":["Xu, Xiaoran"],"dc:date.accessioned":["2019-05-17T18:56:42Z"],"dc:date.available":["2019-05-17T18:56:42Z"],"dc:date.created":["2019-05"],"dc:date.issued":["2019-04-09"],"dc:date.submitted":["May 2019"],"dc:date.updated":["2019-05-17T18:56:42Z"],"dc:description.abstract":["Just-in-time (JIT) compilation coupled with code caching are widely used to improve performance in dynamic programming language implementations. Code caches and the associated profiling data for the hot code consume significant amounts of memory. Furthermore, cache generation incurs extra JIT compilation time. On Android, the current standard JIT compiler and its code caches are not shared among processes---that is, the runtime system maintains a private code cache, and its associated data, for each runtime process. However, applications running on the same platform tend to share multiple libraries. Sharing cached code across multiple applications and multiple processes can lead to a reduction in memory use. It can directly reduce compile time. It can also reduce the cumulative amount of time spent interpreting code. All three of these effects can improve actual runtime performance. This thesis presents ShareJIT, a global code cache for JITs that shares code across multiple applications and multiple processes. We implemented ShareJIT in the context of the Android Runtime (ART), a widely used, state-of-the-art system. To increase sharing, our implementation constrains the amount of context that the JIT compiler can use to optimize the code. This exposes a fundamental tradeoff: increased specialization to a single process' context decreases the extent to which the compiled code can be shared. In ShareJIT, we limit some optimization to increase shareability. We also discuss policies to update and garbage-collect the global shared code cache and analyze the performance-critical parameters in sharing compiled code among inter-process methods. To evaluate ShareJIT, we tested 8 popular Android apps in a total of 30 experiments. ShareJIT improved overall performance by 9.24% on average, while decreasing memory consumption by 16.43% on average and JIT compilation time by 36.24% on average. At the system level, ShareJIT also reduced the number of retired instructions by an average of 7.64% and the number of CPU cache misses by an average of 10.39%."],"dc:format.mimetype":["application/pdf"],"dc:identifier.citation":["Xu, Xiaoran. \"ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation.\" (2019) Diss., Rice University. <a href=\"https://hdl.handle.net/1911/105972\">https://hdl.handle.net/1911/105972</a>."],"dc:identifier.uri":["https://hdl.handle.net/1911/105972"],"dc:language.iso":["eng"],"dc:rights":["Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder."],"dc:subject":["JIT compilation","Code Cache Sharing","Android Runtime System"],"dc:title":["ShareJIT: JIT Code Cache Sharing across Processes and Its Practical Implementation"],"dc:type":["Thesis","Text"],"others:access_status":["open.access"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Engineering"],"thesis:degree_level":["Doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["Rice University"]},"updated_at":"2026-11-19T09:21:08Z"}