For JIT at first use, compile the method directly. There is no risk of racing with the JIT thread, which shouldn't be operating. Test: test.py Bug: 218263452 Change-Id: Iec63c723681865792fa5a95e966b43f33d5b2ccb