<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-23T15:05:46Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/13507" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/13507</identifier><datestamp>2025-03-26T23:33:20Z</datestamp><setSpec>com_10012_9900</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9908</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Lam, Patrick</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="44999634-3100-4d45-8955-7f75af927f84" confidence="600">Eyolfson, Jonathan</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2018-08-01T16:33:52Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2018-08-01T16:33:52Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2018-08-01</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2018-07-19</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/13507</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">Researchers have recently proposed a number of systems for expressing,&#xd;
verifying, and inferring immutability declarations. These systems are&#xd;
often rigid, and do not support &amp;quot;abstract immutability&amp;quot;. An abstractly&#xd;
immutable object is an object o which is immutable from the point of&#xd;
view of any external methods. The C++ programming language is not&#xd;
rigid–it allows developers to express intent by adding immutability&#xd;
declarations to methods. Abstract immutability allows for performance&#xd;
improvements such as caching, even in the presence of writes to object&#xd;
fields. This dissertation presents a system to enforce abstract&#xd;
immutability.&#xd;
&#xd;
First, we explore abstract immutability in real-world systems. We&#xd;
found that developers often incorrectly use abstract immutability,&#xd;
perhaps because no programming language helps developers correctly&#xd;
implement abstract immutability. We believe that this omission leads&#xd;
to incorrect usages. Specifically, we wrote a dynamic analysis that&#xd;
reports any writes through immutability declarations. To our knowledge,&#xd;
this work was the first to explore how objects implement abstract&#xd;
immutability (or fail to implement it). Our novel study found three&#xd;
uses of abstract immutability: caching, delayed initialization, and&#xd;
unit testing. Unit testing was a surprising application of abstract&#xd;
immutability, and we believe that the ability to modify state is&#xd;
needed for proper unit testing.&#xd;
&#xd;
Next, we explore developers&amp;apos; revealed needs for immutability in the&#xd;
source code. We found that the majority of classes contain a mix of&#xd;
immutable and mutable methods, with a majority of the overall methods&#xd;
being immutable. Immutability systems with only immutable or&#xd;
all-mutating classes are insufficient: developers need immutability&#xd;
declarations at method granularity. Our study then combined developer&#xd;
immutability declarations with results from a static analysis to&#xd;
estimate the true number of immutable methods. The static analysis&#xd;
checked that no transitive writes to a receiver object occurred. Our&#xd;
results indicated the need for a sophisticated analysis to check that&#xd;
these apparently abstractly immutable methods were indeed abstractly&#xd;
immutable.&#xd;
&#xd;
Finally, we created a novel static analysis which checks that&#xd;
developers follow abstract immutability. Specifically, we define&#xd;
abstract immutability to mean that a class&amp;apos;s set of immutable methods&#xd;
is collectively free of writes to exposed fields. Our analysis found&#xd;
incorrect usages of abstract immutability, such as incorrect caching.&#xd;
This analysis is particularly valuable in the context of code&#xd;
evolution, whereby subsequent programmers may make changes that break&#xd;
previously-correct cache implementations, for instance. Our work&#xd;
allows developers to trust that their code is abstractly immutable.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">immutability</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">static analysis</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">dynamic analysis</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">Enforcing Abstract Immutability</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Doctoral Thesis</dim:field>
   <dim:field mdschema="dc" element="pending">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">Electrical and Computer Engineering</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="discipline" lang="en">Electrical and Computer Engineering</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="grantor" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Doctor of Philosophy</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Lam, Patrick</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="affiliation1" lang="en">Faculty of Engineering</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="city" lang="en">Waterloo</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="country" lang="en">Canada</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="province" lang="en">Ontario</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>