Reverts bb4382f0bce074ab081e1e02871e32ba331d1d46

PiperOrigin-RevId: 569292433
This commit is contained in:
Junwhan Ahn 2023-09-28 14:31:40 -07:00 committed by jax authors
parent 4b107f8f7d
commit 8bfe3b92bc

View File

@ -742,7 +742,8 @@ class CPPJitTest(jtu.BufferDonationTestCase):
assert x() is not None # x is still around
g() # g still runs
del g # no more references to x
gc.collect() # garbage collect the executable.
if jax._src.lib.xla_extension_version < 200:
gc.collect() # garbage collect the executable.
assert x() is None # x is gone
def test_jit_of_nonweakreferenceable_function(self):