Fix memory leak in JIT cache

When adding code to the JIT cache it is possible for CHA assumptions
to be invalidated and for the generated code to be invalid. The path
for handling this should release the JIT cache memory holding the
code.

Test: for i in {1..100} ; do art/test.py --host --jit -r -t 044 ; done
Change-Id: Ia6213647064a3db0c4d11bf1181c325375282528
1 file changed