Merge "Change RRO enforcement logic"

This commit is contained in:
Yo Chiang
2019-10-02 02:34:35 +00:00
committed by Gerrit Code Review

View File

@@ -800,7 +800,7 @@ func (c *config) ArtUseReadBarrier() bool {
func (c *config) EnforceRROForModule(name string) bool {
enforceList := c.productVariables.EnforceRROTargets
if enforceList != nil {
if len(enforceList) == 1 && (enforceList)[0] == "*" {
if InList("*", enforceList) {
return true
}
return InList(name, enforceList)