<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Timothy,</div><div class="gmail_default" style="font-size:small">I'm surely not an expert of this area and others can probably explain better how it works, but I think that you are looking for `rgc.register_custom_trace_hook`; for an example of usage, see e.g. pypy/module/micronumpy/concrete.py</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">ciao,</div><div class="gmail_default" style="font-size:small">Anto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 10:52 PM, Timothy Baldridge <span dir="ltr"><<a href="mailto:tbaldridge@gmail.com" target="_blank">tbaldridge@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a rather complicated structure I'd like to create in RPython. The structure consists of a heterogeneous array of RPython classes laid out in a single "byte array". The problem is these structures will contain GC'd pointers.<br><br>Is there a way (and can someone point me to the place) to tell the GC to use a special scanning method when looking for pointers in a specific object type? I've read the docs on rstrategies, but that seems to be dealing mostly with swapping out primitive arrays for object arrays, which isn't exactly what I'm looking for. <br><br>Can anyone help?<br><br>Thanks!<div><br></div></div>
<br>______________________________<wbr>_________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pypy-dev" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/pypy-dev</a><br>
<br></blockquote></div><br></div>