<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 3/6/2020 4:29 AM, Phil B via Cuis-dev wrote:
    <blockquote
cite="mid:CAMJMOegSA7NqM1v2LX7v1cTpM13GAbho8uFR4K4A=v1x2cM+Gg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Oops... bad version of the code.  Try this one...</div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Mar 5, 2020 at 11:44
          PM Phil B <<a moz-do-not-send="true"
            href="mailto:pbpublist@gmail.com">pbpublist@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin: 0px 0px 0px
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div dir="ltr">I created a minor extension to ReferenceFinder
            called, cleverly enough, CustomReferenceFinder.  The idea is
            that you want to scan the image for references not based on
            identity, but some other criteria.  My immediate use case
            was for things that are equal, but not identical, to the
            target object.  So for example: CustomReferenceFinder
            openExplorerOn: `0@0`.  (i.e. to clean up existing long
            lived instances)
            <div><br>
            </div>
            <div>So now my question is: does anyone have any clever
              ideas on how to best replace all the found references with
              `0@0`?  I don't think #become: is the answer because I
              want to keep all the existing references to the object in
              question, not swap pointers around.</div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
    Hi Phil,<br>
    <br>
    I tried your code, and the references I see to objects equal to
    `0@0` are from CompiledMethods. Do you want to change those? Why?
    What object do you want to make the methods point to? Isn't it
    enough to just recompile the methods?<br>
    <br>
    Or you are referring to objects other than CompiledMethods? Which,
    then?<br>
    <br>
    Thanks,<br>
    <pre class="moz-signature" cols="72">-- 
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
  </body>
</html>