Skip to content

Commit 7d1290e

Browse files
committed
remove unnecessary synchronization (esp. on BN#initialize)
1 parent bb85661 commit 7d1290e

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/org/jruby/ext/openssl

1 file changed

+2
-2
lines changed

src/main/java/org/jruby/ext/openssl/BN.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public final BigInteger getValue() {
119119
}
120120

121121
@JRubyMethod(name="initialize", required=1, optional=1, visibility = Visibility.PRIVATE)
122-
public synchronized IRubyObject initialize(final ThreadContext context,
122+
public IRubyObject initialize(final ThreadContext context,
123123
final IRubyObject[] args) {
124124
final Ruby runtime = context.runtime;
125125
if (this.value != BigInteger.ZERO) { // already initialized
@@ -171,7 +171,7 @@ public synchronized IRubyObject initialize_copy(final IRubyObject that) {
171171
}
172172

173173
@JRubyMethod(name = "copy")
174-
public synchronized IRubyObject copy(IRubyObject other) {
174+
public IRubyObject copy(IRubyObject other) {
175175
if (this != other) {
176176
this.value = getBigInteger(other);
177177
}

0 commit comments

Comments
 (0)