Skip to content

Commit 766c27a

Browse files
committed
Replacement of ConcurrentHashMap without Unsafe
1 parent ce8b227 commit 766c27a

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2021 Volker Berlin (i-net software)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package de.inetsoftware.jwebassembly.api.java.util.concurrent;
17+
18+
import java.util.HashMap;
19+
import java.util.concurrent.ConcurrentMap;
20+
21+
import de.inetsoftware.jwebassembly.api.annotation.Replace;
22+
23+
/**
24+
* Replacement java.util.concurrent.ConcurrentHashMap.
25+
* This implementation work without Unsafe an WebAssembly is single thread currently.
26+
*
27+
* @author Volker Berlin
28+
*/
29+
@Replace( "java/util/concurrent/ConcurrentHashMap" )
30+
public class ReplacementForConcurrentHashMap<K,V> extends HashMap<K, V> implements ConcurrentMap<K,V> {
31+
32+
}

0 commit comments

Comments
 (0)