@@ -108,7 +108,7 @@ public synchronized void addToBlockMap(HandleBlock block, RubyLanguage language)
108
108
int blockIndex = block .getIndex ();
109
109
long blockBase = block .getBase ();
110
110
HandleBlockAllocator allocator = language .handleBlockAllocator ;
111
- HandleBlockWeakReference [] map = growMapIfRequired (blockMap , allocator , blockIndex );
111
+ HandleBlockWeakReference [] map = growMapIfRequired (blockMap , blockIndex );
112
112
blockMap = map ;
113
113
map [blockIndex ] = new HandleBlockWeakReference (block );
114
114
@@ -124,10 +124,7 @@ public void addToSharedBlockMap(HandleBlock block, RubyLanguage language) {
124
124
int blockIndex = block .getIndex ();
125
125
long blockBase = block .getBase ();
126
126
HandleBlockAllocator allocator = language .handleBlockAllocator ;
127
- HandleBlockWeakReference [] map = growMapIfRequired (
128
- language .handleBlockSharedMap ,
129
- allocator ,
130
- blockIndex );
127
+ HandleBlockWeakReference [] map = growMapIfRequired (language .handleBlockSharedMap , blockIndex );
131
128
language .handleBlockSharedMap = map ;
132
129
map [blockIndex ] = new HandleBlockWeakReference (block );
133
130
@@ -138,8 +135,7 @@ public void addToSharedBlockMap(HandleBlock block, RubyLanguage language) {
138
135
}
139
136
}
140
137
141
- private static HandleBlockWeakReference [] growMapIfRequired (HandleBlockWeakReference [] map ,
142
- HandleBlockAllocator allocator , int blockIndex ) {
138
+ private static HandleBlockWeakReference [] growMapIfRequired (HandleBlockWeakReference [] map , int blockIndex ) {
143
139
if (blockIndex + 1 > map .length ) {
144
140
final HandleBlockWeakReference [] copy = new HandleBlockWeakReference [blockIndex + 1 ];
145
141
System .arraycopy (map , 0 , copy , 0 , map .length );
0 commit comments