inline_native_setCurrentThread was added for loom. It should have been the first IN_NATIVE oop store in C2. Instead of interfacing this properly, a raw store was used. For Shenandoah, this is not enough. Shenandoah scans OopStorage concurrently, and therefore, SATB barriers are required, so the root snapshot is kept consistent.