senninha 最近的时间轴更新
senninha

senninha

V2EX 第 375485 号会员,加入于 2019-01-05 22:01:34 +08:00
根据 senninha 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
senninha 最近回复了
@nnegier 这种用法叫 postfix ,在 Idea 设置里搜 postfix ,还有挺多像 var 这样的 postfix 。
128 天前
回复了 moxiaowei 创建的主题 Java Java agent 入门遇到点问题
@jiakme 看 op 的需求,更像是直接注册一个 Transformer 拦截增强就行。
128 天前
回复了 moxiaowei 创建的主题 Java Java agent 入门遇到点问题
SpringBoot jar in jar 打包方式是这样的。
你可以直接在探针里拿到 Instrumentation 对象,用 Instrumentation#getAllLoadedClasses 获取所有虚拟机加载的类,直接过滤出需要的,或者从以上加载的类中遍历拿到 springboot 的加载器也行。
应该是并行读取,内核有文件缓存机制。
生日快乐
@FerrisChan 最近降价了么?之前听同事说网易搬过来后都涨了一波
@ngduncent 刚看了一下 29 在 1.8 下的情况,虽然用了 stringbuilder 拼接,但是还是会产生大量的 stringbuilder 临时对象,我想当然了。
29. 1.5 开始编译器会自动转换成 stringbuilder
290 天前
回复了 yusheng88 创建的主题 程序员 线程安全问题,求大佬解惑
@yusheng88 楼下有说到 spuriously (that is, for no reason) returns 。看 unlock 的说明也是需要 re-check condition 的。
Callers should re-check the conditions which caused the thread to park in the first place.
290 天前
回复了 yusheng88 创建的主题 程序员 线程安全问题,求大佬解惑
可能的原因:
LockSupport 的 permit 提前被设置了,这时候调用 park 会直接返回,resp 肯定就是 null 了,也就是 park 与 unpark 调用不对称?难道是 LinkedBlockingQueue 有问题?
看文档还有这三种情况 park 会直接返回:
Some other thread invokes unpark with the current thread as the target; or
Some other thread interrupts the current thread; or
The call spuriously (that is, for no reason) returns.
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1579 人在线   最高记录 6067   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 00:33 · PVG 08:33 · LAX 17:33 · JFK 20:33
Developed with CodeLauncher
♥ Do have faith in what you're doing.