Commit 92091bde authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Prevent ArtMethod clearing race

There was race condition where the GC would be visiting the methods
of a class while the class linker overwrote the contents with 0xFE
when copying to a new array.

Since the GC is holding the class table lock at this time, we can
use this lock in the class linker to prevent the race.

Bug: 28699001

(cherry picked from commit 10c5f564)

Change-Id: I5ddca93106cb8e48962cf44e5ce434c45e05cd0c
parent ab249381
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment