Don't check class-loader's liveness when sweeping interpreter/jit cache

Given the strong reference to the class-loader from class, it's
guaranteed that a live class will have its class-loader alive.
Therefore, there is no reason to check for class-loader's liveness when
sweeping interpreter/jit caches. Simply checking class' liveness
suffices.

Bug: 268689218
Bug: 160737021
Test: art/test/testrunner/testrunner.py --host
Change-Id: Ic845c0fc730bf4eb2c6b79e1b2cb10b53d22cac8
8 files changed