Closed TPGamesNL closed 3 years ago
https://pastebin.com/RMkCavTU
Only occurs on > Java 8 (see J8 computeIfAbsent vs J9 computeIfAbsent)
computeIfAbsent
do something with synchronized keyword (+ find out what it even is)
synchronized
or replace HashMap with something thread-safe: getCallSite() can be called on init()
getCallSite()
init()
LRUCache#computeIfAbsent LRUCache extends LinkedHashMap LinkedHashMap extends HashMap
LRUCache#computeIfAbsent
LRUCache
LinkedHashMap
HashMap
LRUCache only used in ExprJavaCall
ExprJavaCall
alternatives: HashTable?
HashTable
making getCallSite synchronized worked, but new issue: https://pastebin.com/ZSLMXLah
Fixed in next commit
https://pastebin.com/RMkCavTU
Only occurs on > Java 8 (see J8
computeIfAbsent
vs J9computeIfAbsent
)do something with
synchronized
keyword (+ find out what it even is)or replace HashMap with something thread-safe:
getCallSite()
can be called oninit()
LRUCache#computeIfAbsent
LRUCache
extendsLinkedHashMap
LinkedHashMap
extendsHashMap
LRUCache
only used inExprJavaCall
alternatives:
HashTable
?