Skip to content

Commit

Permalink
remove un-necessary lock #1558
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrthomas committed Jun 21, 2021
1 parent 4ae8d61 commit 28e84df
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1173,9 +1173,7 @@ private Object recurseAndAttachAndDeepClone(Object o, Set<Object> seen) {
// only for callonce and callSingle
protected Object recurseAndDetachAndDeepClone(Object o) {
Set<Object> seen = Collections.newSetFromMap(new IdentityHashMap());
synchronized (runtime.featureRuntime.suite) {
return recurseAndDetachAndDeepClone(o, seen);
}
return recurseAndDetachAndDeepClone(o, seen);
}

private Object recurseAndDetachAndDeepClone(Object o, Set<Object> seen) {
Expand Down

0 comments on commit 28e84df

Please sign in to comment.