openjdk/jdk
View on GitHub ↗ ★ 23,492 Java
JDK main-line development https://openjdk.org/projects/jdk
129 mentions on Hacker News by 93 people: 17 stories, 112 comments · first 2019-04-25 · latest 2026-10-25
20082026
-
▲ 1
OpenJDK randomly(?) removes all eMudhra root CAsstory by ktkaufman · 2026-10-25 · 3 comments
-
▲ 3
JEP 401: Value Objects and JEP 539: Strict Field Initialization Merged into JDKstory by matt2000 · 2026-07-31 · 0 comments
-
https://github.com/openjdk/jdk/pull/31120#issuecomment-51378...
comment by moritzwarhier · 2026-07-31 · in JEP 401: Value Objects (Preview) merged to OpenJDK master -
…<-> 127 The cache can be extended on startup with env var `java.lang.Integer.IntegerCache.high ` https://github.com/openjdk/jdk/blob/cc278dbb8a1ca0754d584270...
comment by agilob · 2026-07-31 · in JEP 401: Value Objects (Preview) merged to OpenJDK master -
…and commits work in the OpenJDK repository -- a bot squashes each pull request into one commit: https://github.com/openjdk/jdk/pull/31120#issuecomment-51378... The final singular commit is cc278db (8389219: Implement JEP 401: Value Objects…
comment by andrybak · 2026-07-31 · in JEP 401: Value Objects (Preview) merged to OpenJDK master -
The MR is closed This is it https://github.com/openjdk/jdk/commit/cc278dbb8a1ca0754d5842...
comment by ligarota · 2026-07-31 · in JEP 401: Value Objects (Preview) merged to OpenJDK master -
▲ 237
JEP 401: Value Objects (Preview) merged to OpenJDK masterstory by mfiguiere · 2026-07-31 · 175 comments
-
…virtual machine has 12: https://www.erlang.org/docs/25/man/erts_alloc.html jvm has at least 5: https://github.com/openjdk/jdk/blob/master/src/hotspot/share... postgres has at least 8: https://github.com/postgres/postgres/blob/master/src/bac…
comment by dnautics · 2026-06-30 · in Zig – SPIR-V Backend Progress -
…object reference.) By default the cached values where -127 to 127, but that is tuneable at runtime. https://github.com/openjdk/jdk/blob/jdk-27%2B27/src/java.bas...
comment by papercrane · 2026-06-19 · in Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28 -
…but the results weren't what I expected, so I took it out) BTW, here's a list of our intrinsics: https://github.com/openjdk/jdk/blob/master/src/hotspot/share... As you might notice, they include SIMD intrinsics offered through…
comment by pron · 2026-06-06 · in Every Byte Matters -
▲ 3
Valhalla when? "Now"? Java 27 or 28?story by lichtenberger · 2026-05-29 · 0 comments
-
…started transferring to the main line, but will require many tests to know if they have any issues. https://github.com/openjdk/jdk/pull/31120
comment by joe_mwangi · 2026-05-12 · in Library for fast mapping of Java records to native memory -
▲ 4
Pull Request: Java language implementation of value classes and objectsstory by munksbeer · 2026-05-11 · 0 comments
-
…a bug from day one." [2] [1] https://www.linux.com/news/preventing-supply-chain-attacks-l... [2] https://github.com/openjdk/jdk/pull/9152#issue-1270543997
comment by jgneff · 2026-05-10 · in Debian must ship reproducible packages -
…be set manually, but if there's some unusual environment or condition, they can be helpful. [1]: https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
comment by pron · 2026-04-12 · in JVM Options Explorer -
…nel.org/pub/scm/linux/kernel/git/torvalds/lin... [2] https://git.ffmpeg.org/gitweb/ffmpeg.git/log [3] https://github.com/openjdk/jdk/commits/master/src/hotspot [4] https://github.com/openssl/openssl/commits/master/ [5]…
comment by alt_422568 · 2026-04-09 · in Git commands I run before reading any code -
Lazy Constants looked interesting. The impl uses unsafe: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by winrid · 2026-03-18 · in Java 26 is here -
…cost to accessing class fields, as exampled by this (now-replaced) code in the JDK itself - https://github.com/openjdk/jdk/blob/jdk8-b120/jdk/src/share/...
comment by dekelpilli · 2026-03-18 · in Python 3.15's JIT is now back on track -
Follow-up questions: Do you test manually? Why? Do you debug manually? Why? You wanted examples: https://github.com/openjdk/jdk/tree/master/test/jdk/java/uti...
comment by PinkSheep · 2026-02-02 · in Kernighan on Programming -
Java chooses to use the cycle method mostly. They also reference Bentley. https://github.com/openjdk/jdk/blob/f1e0e0c25ec62a543b9cbfab...
comment by jnellis · 2026-01-06 · in Swapping two blocks of memory inside a larger block, in constant memory -
…special for Floats" code. [0] https://docs.oracle.com/en/java/javase/17/docs/api/java.base... [1] https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by Terr_ · 2025-12-09 · in Using floating point numbers as hash keys (2017) -
…it's mostly software written in C++ and that software allocates "its own heap" using uh... malloc https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
comment by tialaramex · 2025-12-02 · in Help, My Java Object Vanished (and the GC Is Not at Fault) -
▲ 5
Support for UUID Version 7 (UUIDv7) added to Java 26story by mfiguiere · 2025-11-04 · 1 comment
-
▲ 1
Improvements to Java primitive array sotringstory by spullara · 2025-09-23 · 0 comments
-
I believe, Oracle JVM uses polling? This is the class responsible for safepoints: https://github.com/openjdk/jdk/blob/4b544f93ad0e2beae4c80e06... And this is one of the implementations: https://github.com/openjdk/jdk/blob/4b544f93ad0e2beae4…
comment by cyberax · 2025-09-20 · in Safepoints and Fil-C -
…bunch of code which looks like it's trying to do the right kind of escaping for msvcrt vs cmd.exe: https://github.com/openjdk/jdk/blob/jdk-26%2B1/src/java.base... But i would be lying if i said i understood what was going on there. Some…
comment by twic · 2025-06-12 · in The curious case of shell commands, or how "this bug is required by POSIX" (2021) -
…specific bin is converted into a RB tree. This is detailed in implementation notes comment here: https://github.com/openjdk/jdk/blob/56468c42bef8524e53a929dc...
comment by 77 · 2025-05-02 · in Strings Just Got Faster -
…How it tells the JVM this? It uses the internal annotation @jdk.internal.ValueBased https://github.com/openjdk/jdk/blob/jdk-17-ga/src/java.base/...
comment by amiga386 · 2025-05-02 · in Strings Just Got Faster -
Define mostly, https://github.com/openjdk/jdk - Java 74.1% - C++ 14.0% - C 7.9% - Assembly 2.7% And those values have been increasing for Java with each OpenJDK release.
comment by pjmlp · 2025-03-17 · in Zlib-rs is faster than C -
> if javac involves IR, SSA based analysis and transformation (which I assume it does) https://github.com/openjdk/jdk/blob/master/src/jdk.compiler/... I am fairly certain that it does not. The JVM is a stack-machine. I wrote a compiler for…
comment by sieve · 2025-02-21 · in TinyCompiler: A compiler in a week-end -
This is similar to how java.util.concurrent.atomic.LongAdder works: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by oftenwrong · 2025-02-04 · in The Slotted Counter Pattern (2020) -
Java https://github.com/openjdk/jdk/blob/master/Makefile Rust https://github.com/rust-lang/rust/blob/master/tests/run-make... Go https://github.com/golang/go/blob/master/src/runtime/Makefil... NodeJS https://github.com/nodejs/node/blob/main…
comment by dumah · 2025-01-31 · in A better build system for OCaml -
▲ 3
OpenJDK: x86_64 AVX512 intrinsics for Arrays.sort methods (2023)story by throwaway2037 · 2024-12-26 · 0 comments
-
…bullshit themselves. (At which point it's just of dubious value instead of an outright negative) 0. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by pdpi · 2024-12-22 · in Ideas from "A Philosophy of Software Design" -
▲ 14
Compact Object Headers in Java 24story by lichtenberger · 2024-11-09 · 0 comments
-
…note: the JDK deliberately randomizes iteration order of certain immutable sets and maps ( https://github.com/openjdk/jdk/blob/jdk-23%2B37/src/java.bas... ).
comment by ljnelson · 2024-10-02 · in Hash Ordering and Hyrum's Law -
…÷ 6 doesn’t stand for π ÷ 6 , and could have been computed in another way. By the way, reading https://github.com/openjdk/jdk/blob/bd4160cea8b6b0fcf0507199... , these results may vary between Java implementations, possibly even between…
comment by Someone · 2024-08-16 · in Why is Math.sin(Math.PI/2) returning an exact value but not Math.sin(Math.PI*2)? -
…is something that languages/runtimes with more effort put into portability already handle for you: https://github.com/openjdk/jdk/blob/master/src/java.base/win... If Python doesn't do this it's just because the sort of people who write…
comment by mike_hearn · 2024-06-26 · in Microsoft breached antitrust rules by bundling Teams and Office, EU says -
…for equals call and they were keys to a HashMap - you'd only be able to put one of them in there. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by shagie · 2024-06-18 · in Pitfalls of comparing BigDecimals in Java -
▲ 3
Intel submitted OpenJDK PRs for supporting new 64 bit general purpose registersstory by luckyou · 2024-05-02 · 1 comment
-
…> to < https://sources.debian.org/src/openjdk-22/22.0.1%2B8-1/debia... > lead me to https://github.com/openjdk/jdk/tree/jdk-22-ga/src/hotspot/cp... It seems that it's a specific CPU target for the Hotspot JIT for non-mainstream…
comment by mdaniel · 2024-04-30 · in Show HN: I Built a Java IDE for iPad -
The list is here: https://github.com/openjdk/jdk/blob/6d5699617ff0985104a8bb5f...
comment by mike_hearn · 2024-04-21 · in JEP draft: Exception handling in switch -
Completely gutted from the OpenJDK, last I checked. See here for the culprit PR: https://github.com/openjdk/jdk/pull/18688
comment by SpaghettiCthulu · 2024-04-19 · in Java 23: The New Features Are Officially Announced -
…13.7%, on the OpenJDK, other JVM implementations differ, e.g. GraalVM is mostly Java 91.8%, C 3.6%. https://github.com/openjdk/jdk https://github.com/oracle/graal Two examples from many others, https://en.wikipedia.org/wiki/List_of_Java_vir…
comment by pjmlp · 2024-04-17 · in Java 23: The New Features Are Officially Announced -
…use of signal handlers in general. Hotspot continues to use signals for efficiency in general. See https://github.com/openjdk/jdk/blob/9059727df135dc90311bd476 ... This whole thread is about SIGSEGV, and specifically their SIGSEGV…
comment by arghwhat · 2024-03-20 · in macOS Sonoma 14.4 might break Java on your machine -
…code in question takes into account that the value read might be garbage. See the big comment here: https://github.com/openjdk/jdk/commit/29397d29baac3b29083b1b... > On current CPUs and operating systems, this is not an optimization, so…
comment by shagie · 2024-03-19 · in USB hubs, printers, Java, and more seemingly broken by macOS 14.4 update -
…use of signal handlers in general . Hotspot continues to use signals for efficiency in general. See https://github.com/openjdk/jdk/blob/9059727df135dc90311bd476... > Be careful with fallacies suggesting only one side of an argument is…
comment by quotemstr · 2024-03-19 · in macOS Sonoma 14.4 might break Java on your machine -
The "safe fetch" code relies on a signal handler (either here https://github.com/openjdk/jdk/blob/48717d63cc58f693f0917e61... or here https://github.com/openjdk/jdk/blob/3c70f26b2f3fa9bc143e2506... ), which is considered asynchronous…
comment by arghwhat · 2024-03-18 · in macOS Sonoma 14.4 might break Java on your machine