首页 > 其他分享 >ConcurrentHashMap一直卡住bug

ConcurrentHashMap一直卡住bug

时间:2023-12-21 20:44:21浏览次数:24  
标签:ConcurrentHashMap java frame 卡住 util concurrent line bug

目录

    jdk11 ConcurrentHashMap bug,会一直卡在这里:

    "main" #1 prio=5 tid=0x00007f4bd8029800 nid=0xbd75 runnable [0x00007f4bde485000]
       java.lang.Thread.State: RUNNABLE
       JavaThread state: _thread_in_vm_trans
     - java.util.concurrent.ConcurrentHashMap.transfer(java.util.concurrent.ConcurrentHashMap$Node[], java.util.concurrent.ConcurrentHashMap$Node[]) @bci=338, line=2477 (Compiled frame)
            - locked <0x000000011bc70b38> (a java.util.concurrent.ConcurrentHashMap$ReservationNode)
     - java.util.concurrent.ConcurrentHashMap.addCount(long, int) @bci=276, line=2348 (Compiled frame)
     - java.util.concurrent.ConcurrentHashMap.computeIfAbsent(java.lang.Object, java.util.function.Function) @bci=570, line=1773 (Compiled frame)
     - org.springframework.cache.concurrent.ConcurrentMapCache.get(java.lang.Object, java.util.concurrent.Callable) @bci=14, line=142 (Compiled frame)
    
    

    jdk17中该方法修复:

     else if (f instanceof ReservationNode)
                                throw new IllegalStateException("Recursive update");
    

    标签:ConcurrentHashMap,java,frame,卡住,util,concurrent,line,bug
    From: https://www.cnblogs.com/bingmous/p/17920083.html

    相关文章

    • 今日bug之配置项值为中文逗号报错
      启动报错org.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'slymUrlController':Unsatisfieddependencyexpressedthroughfield'qlrlxZjzlDzMap';nestedexceptionisorg.springframework.beans.......
    • 通杀无限 debugger,目前只有 1% 的人知道!
      前言相信很多小伙伴在进行web逆向的时候,都遇到过无限debugger。最简单的方法,在debugger位置,点击行号,右键Neverpausehere,永远不在此处断下即可。但是这种方法就妄想通杀,显然是不大可能的,不然这种防护岂不是弄出来骗自己的。现在很多网站,这样处理是无法绕过的。例如常规......
    • Windows phpstudy vscode Xdebug调试无效,无法监听,没有什么效果
      Windows phpstudy vscodeXdebug调试无效,无法监听,没有什么效果vscode正常,能启动,能标记,就是无法监听打印phpinfo(); Xdebug版本3打印的信息输入这里,找出对应PHPXdebug的dll文件Xdebug:Support—TailoredInstallationInstructions会出给检查结果,下面是我的再看看VSCODE插......
    • 记录--一行代码修复100vh bug
      这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助你知道奇怪的移动视口错误(也称为100vhbug)吗?或者如何以正确的方式创建全屏块?一、100vhbug什么是移动视口错误?你是否曾经在网页上创建过全屏元素?只需添加一行CSS并不难:.my-page{height:100vh}1v......
    • gdb Reverse Debugging
      参考:https://sourceware.org/gdb/current/onlinedocs/gdb.html/Reverse-Execution.html#Reverse-Executionhttps://www.cnblogs.com/liuhanxu/p/17011772.htmlhttps://blog.csdn.net/xungjhj/article/details/73727477?spm=1001.2101.3001.6650.1&utm_medium=distribute......
    • 一行代码修复100vh bug | 京东云技术团队
      你知道奇怪的移动视口错误(也称为100vhbug)吗?或者如何以正确的方式创建全屏块?一、100vhbug什么是移动视口错误?你是否曾经在网页上创建过全屏元素?只需添加一行CSS并不难:.my-page{height:100vh}1vh是视口高度的1%,正是我们所需要的。但当我们在移动设备上测试时,就......
    • Zulip: Debugging Zulip-Mobile: Server + Android + IOS
      https://github.com/abaelhe/zuliphttps://github.com/abaelhe/zulip-mobileDebuggingSeeingwhattheappisdoingisanessentialpartofdevelopment.Avarietyoftoolsareavailabletohelpusdothat.Index:OfficialadvicefromReactNativeupstreamDeb......
    • springcloudalibabada搭建过程中springboot启动卡住起不来 (Started MoonceProviderApp
      如下图一样springcloudAlibaba在创建新模块之后启动新模块没有注册到nacos上,而是直接卡住起不来原因 原因是:引入了错误的web包: 解决办法:引入相应的 spring-boot-starter-web包:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot......
    • FirebirdSql.Data.FirebirdClient.FbDataAdapter的bug吗
      在连接Firebird4数据库时,使用以下: FbDataAdapterda=newFbDataAdapter(sql,this.cnstring); DataTabledt=newDataTable(); da.Fill(dt); returndt;在一直的相像中,FbDataAdapter在接收到连接字符串时,会自动创建一个Connection并Open使用,用完再Close,即不需......
    • shell补-特殊玩法-shell编程debug
      shell补-特殊玩法-shell编程debugdebug思想debug测试单步执行脚本自个调试,用注释,或者echo自个打印输出啥的,就这么搞bash-x整个脚本调试set与开关debug(适用于脚本或者命令行都可以)set-x开始debugset+x结束debug##在脚本启用set;set-x开始,set+x结尾......