ARTEMIS-3033 - fix early visibility on cached simple string parts array
This commit is contained in:
parent
751ac9d86e
commit
c384776d6f
|
@ -307,8 +307,7 @@ public final class SimpleString implements CharSequence, Serializable, Comparabl
|
|||
}
|
||||
pathsList.add(pathAccumulator.toString());
|
||||
|
||||
paths = new String[pathsList.size()];
|
||||
pathsList.toArray(paths);
|
||||
paths = pathsList.toArray(new String[0]);
|
||||
return paths;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ public class AddressMapPerfTest {
|
|||
keys = new SimpleString[entries];
|
||||
for (int i = 0; i < entries; i++) {
|
||||
keys[i] = SimpleString.toSimpleString("topic." + i % entriesLog2 + "." + i);
|
||||
keys[i].getPaths(WILDCARD_CONFIGURATION.getDelimiter()); // getPaths is not thread safe
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue