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
-
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 -
…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 -
…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 -
…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) -
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 -
…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" -
…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 -
…> 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 -
…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 the…
comment by fweimer · 2024-03-18 · in macOS Sonoma 14.4 might break Java on your machine -
…for the JVM, because it prevents a fast path being taken for stack thawing for virtual threads: https://github.com/openjdk/jdk/blob/d32ce65781c1d7815a69ceac...
comment by BinaryRage · 2024-03-17 · in The return of the frame pointers -
https://github.com/openjdk/jdk/tree/master/src/jdk.compiler/... , Wiki citation for good measures https://en.wikipedia.org/wiki/Javac . Maybe you're thinking of Hotspot, which is written in C++.
comment by hyperpape · 2024-01-04 · in The One Billion Row Challenge -
…internally, it just supports various bit-related operations as-if it were two's complement. https://github.com/openjdk/jdk/blob/28026434f74726d72857e781...
comment by o11c · 2023-11-23 · in A gentle introduction to two's complement -
…expose their users to bugs on account of this implementation. EDIT: … ha, sure looks like it https://github.com/openjdk/jdk/blob/a2c0fa6f9ccefd3d1b088c51...
comment by leoh · 2023-11-20 · in Setenv Is Not Thread Safe and C Doesn't Want to Fix It -
Map doesn't implement the Collection interface. https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by vips7L · 2023-11-14 · in Java JEP 461: Stream Gatherers -
…in or have parts of their implementations in C++. See JS ( https://github.com/v8/v8)and Java GC ( https://github.com/openjdk/jdk/tree/36de19d4622e38b6c00644b0... ) I am not an expert on Java (or C++), so if someone knows better or can add…
comment by gp · 2023-11-01 · in C++23: Removing garbage collection support -
…details. Check out this function which helps determine if instance fields are trusted: https://github.com/openjdk/jdk/blob/edd454b502b9bacde5549282...
comment by vips7L · 2023-10-07 · in Java 21 VirtualThreads vs. Clojure Lazy Seqs -
…such questions. A small aside: The README uses `Paths/get`, which might be deprecated eventually: https://github.com/openjdk/jdk/blob/b16e5584abcae18fdcc4494f... Should just use `Path/of` directly. BTW, I thought I would give it a try, but…
comment by onetom · 2023-09-19 · in Show HN: Pile Programming Language -
…semantics on different platforms is so annoying and why C standard left itself a nice shortcut. [0] https://github.com/openjdk/jdk/blob/d27daf01d6361513a815e783... [1] https://github.com/openjdk/jdk/blob/d27daf01d6361513a815e783...
comment by Joker_vD · 2023-08-17 · in A Guide to Undefined Behavior in C and C++ (2010)