Discovering a JDK Race Condition, and Debugging It in 30 Minutes with Fray

https://aoli.al/blogs/jdk-bug/

#HackerNews #JDKRaceCondition #FrayDebugging #SoftwareDevelopment #TechBlog #JavaDevelopment

Discovering a JDK Race Condition, and Debugging it in 30 Minutes with Fray

Discovering a JDK Race Condition, and Debugging it in 30 Minutes with Fray I’ve been adding more integration tests for Fray recently. To ensure Fray can handle different scenarios, I wrote many creative test cases. Many of them passed as expected, while some failures led to epic fixes in Fray. Then something unexpected happened: Fray threw a deadlock exception while testing the following seemingly innocent code: 1private void test() { 2 ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1); 3 // Shutdown thread. 4 new Thread(() -> { 5 executor.shutdown(); 6 }).start(); 7 try { 8 ScheduledFuture<?> future = executor.schedule(() -> { 9 Thread.yield(); 10 }, 10, TimeUnit.MILLISECONDS); 11 try { 12 future.get(); 13 Thread.yield(); 14 } catch (Throwable e) {} 15 } catch (RejectedExecutionException e) {} 16} This code creates a ScheduledThreadPoolExecutor, schedules a task, and shuts down the executor in another thread. Initially, I suspected a bug in Fray, but after investigation, I discovered that the deadlock was actually caused by a bug in the JDK itself.

Ao Li
πŸš€πŸ™„ Oh joy, another JEP! Because what #Java really needed was a *smaller* object headerβ€”*finally*! Newest fad: turning "compact" from experimental to product feature. πŸ₯³ Next up: "compact" blog posts, because brevity is key. πŸ˜‚
https://openjdk.org/jeps/519 #JEP #JavaDevelopment #CompactObjects #TechHumor #HackerNews #ngated
JEP 519: Compact Object Headers

JEP 515: Ahead-of-Time Method Profiling

Empower your tech teams with hands-on training in ReactJS, NodeJS, and Spring Bootβ€”build scalable, modern apps with confidence.

πŸš€ Start your journey with Overture Rede!
πŸ“© resumes@overturerede.zohorecruitmail.in
πŸ“± WhatsApp: +91-9582224661
πŸ”— Apply: https://zurl.co/sIqwb

#SoftwareDevelopment #ReactJS #NodeJS #SpringBoot #TechTraining #ITTraining #WebDevelopment #DevTraining #EnterpriseTech #UpskillYourTeam #NextJS #JavaDevelopment #BackendDevelopment

Jobs at Overture Rede

Everyone at Overture Rede is free to explore and work the way you want. Come join us!

Overture Rede

πŸš€ Java devs: Is your toolkit missing Data Frames?

At #InfoQDevSummit Boston (June 9-10), Vladimir Zakharov shows how Data Frames bring flexibility, readability & real-world power to Java, rivaling Python/Pandas.

πŸ”— https://bit.ly/3Ykx3Ts

#JavaDevelopment

InfoQ Dev Summit Boston 2025 | Are You Missing a Data Frame? The Power of Data Frames in Java

There is a missing tool in your Java data structure toolkit – Data Frames!

InfoQ Dev Summit Boston 2025

TIL that it is possible to create something like a "Brain Method", at least that's how SonarCube is naming it.

That specific method does have 330 LOC a complexity of 64 and a nesting level of 6. Also there are 60 variables declared.

Whoever wrote this should properly rethink there code quality guidelines.

#Development #JavaDevelopment #Java #Coding #SonarCube #RefactorRequired

🌟 Accelerate Your Business with a Smart Team of Java Developers! 🌟

Ready to take your projects to the next level? Our Java experts are here to bring your ideas to life with efficiency and creativity. Connect with us to see how we can help your business flourish! https://www.weblineglobal.com/hire-java-developers.html

#HireDevelopers #JavaDevelopers #JavaDevelopment #BusinessSuccess #InnovateWithUs

Hire Java Developers to Build Modern & High-Performance Apps

Don't just fill a role, find your perfect fit. Hire dedicated Java developers for your project. Scale your team seamlessly, get started now!

weblineglobal

Which is the Right Tech in 2025? Node.js or Java?

https://zekond.com/read-blog/141068

Choosing between Node.js and Java in 2025 depends on your project needs. While Node.js excels in scalability and real-time applications, Java remains a strong choice for enterprise-grade solutions and security.

#NodeJSvsJava
#TechComparison2025
#WebDevelopment
#JavaDevelopment
#NodeJSTech
#ProgrammingTrends
#BackendDevelopment
#SoftwareEngineering
#TechStack
#FutureOfCoding

Which is the Right Tech in 2025? Node.js or Java?

Node.js vs Java: Which to choose in 2025?

OpenJDK JDK 24.0.1 GA Release

:
πŸ”΄ Advanced JAVA Training in KPHB πŸ”΄

πŸ“… Date: 13th - 15th Feb 2025 | ⏰ Time: 5:30 PM - 07:00 PM

πŸ“ Mode: Classroom / Online

βœ… Master: Core Java, OOP, Multithreading, Java I/O & more!
πŸ‘‰ Register: https://t.ly/ydnzN
πŸ“ž Contact: 9642769999

#AdvancedJava #JavaTraining #JavaProgramming #FullStackJava #JavaDevelopment #Coding #CareerGrowth #NareshIT