Skip to content

Commit

Permalink
fix: fix hashmap thread unsafe (#299)
Browse files Browse the repository at this point in the history
Signed-off-by: imp2002 <imp07@qq.com>

Signed-off-by: imp2002 <imp07@qq.com>
  • Loading branch information
imp2002 committed Sep 16, 2022
1 parent f43e679 commit 9fd266f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -345,7 +345,7 @@ public static class GenerateGFunctionClass {
* @return the function.
*/
public static AviatorFunction generateGFunction(String name, RoleManager rm) {
memorizedMap.put(name, new HashMap<>());
memorizedMap.put(name, new ConcurrentHashMap<>());

return new AbstractVariadicFunction() {
@Override
Expand Down

0 comments on commit 9fd266f

Please sign in to comment.