Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbc8b64d authored by Shai Barack's avatar Shai Barack
Browse files

Slightly optimize same thread check

Checking equality to Thread.currentThread() is fast because ART keeps this instance
in a fixed offset from the value of the thread register.

ldr w0, [tr, #224]; Load Thread.currentThread() into w0

Flag: EXEMPT refactor
Change-Id: I8ad50a2ac63e68ea312b7ca6340aba20caa3480f
parent 2de609df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment