Merge "Fixed incorrect usage of native fences" into pi-dev