diff options
| author | 2021-10-06 08:34:40 +0100 | |
|---|---|---|
| committer | 2022-03-09 16:53:47 +0000 | |
| commit | d86dd8b03225cdfa85fbc1e835cc8eb1653c4787 (patch) | |
| tree | 9d11aa9e6b246d34a3e1d358e2874185fb91fffc /compiler/optimizing/codegen_test.cc | |
| parent | 2c4b444bdb09f1761eca440de614e783f4094c8d (diff) | |
Loosen class status check after resolving.
If `ClassLinker::LinkClass()` creates a new `Class` object,
it takes an `ObjectLock` on that object but releases that
lock when it returns to the `ClassLinker::DefineClass()`.
Therefore another thread can try and fail to verify the
class and mark it as resolved erroneous. The `CHECK()` that
the class is not resolved erroneous was therefore wrong
and we remove that part.
Also dump the class status if the remaining `CHECK()` fails.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 202091046
(cherry picked from commit f9e82e5cae2c31f439ecbc505c2dcac81356405e)
Merged-In: Ida9c0d45478fbae913fcaabcc237048d28a4dd3d
Change-Id: I22f5fe458fb0f6f44ed6947725ac20b973af5ad7
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
0 files changed, 0 insertions, 0 deletions