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
-
…wasn't the correct word. The feature was implemented in OpenJDK by a Microsoft employee. [0] https://github.com/openjdk/jdk/pull/9073 [1] https://github.com/openjdk/jdk/pull/12897
comment by vips7L · 2023-08-06 · in MS Build of OpenJDK now with enhanced escape analysis enabled by default -
…source Java distro" ? You mean "open source build for Java", because OpenJDK is open source, here: https://github.com/openjdk/jdk One can build JDK themselves, it is not that hard.
comment by krzyk · 2023-07-05 · in Let's have a chat about Java licensing, says unsolicited Oracle email -
PR for this commit: https://github.com/openjdk/jdk/pull/14224
comment by mfiguiere · 2023-06-15 · in Add intrinsic for float/double modulo for x86 AVX2 and AVX512 in OpenJDK -
FWIW, there's an open PR and discussion around the code for this: https://github.com/openjdk/jdk/pull/9779
comment by gavinray · 2023-06-11 · in A compact overview of JDK 21’s “frozen” feature list -
…...) The concrete implementation in doTypeSwitch currently says “Dumbest possible strategy”: https://github.com/openjdk/jdk/blob/master/src/java.base/sha... There is no @IntrinsicCandidate, so I don't expect Hotspot to special-case any of…
comment by fweimer · 2023-06-11 · in A compact overview of JDK 21’s “frozen” feature list -
Glorious. Check out the implementation here: https://github.com/openjdk/jdk/blob/6d140d5b8bc4d6b3daa16f72...
comment by throwaway2037 · 2023-05-31 · in AVX512 intrinsics for JDK’s Arrays.sort methods -
Their is a detailed description of the new stack locking scheme in the PR here https://github.com/openjdk/jdk/pull/10907
comment by zorgmonkey · 2023-05-04 · in JEP 450: Compact Object Headers -
…((long) upTo) - from + last; I would think it just takes less than 1 ms on first execution. https://github.com/openjdk/jdk/blob/caa841d9a52352a975394e55...
comment by alfu · 2023-04-15 · in How many floating-point numbers are in the interval [0,1]? (2017) -
…be dispelled. OpenJDK is Java, and is open source under GPL. https://en.wikipedia.org/wiki/OpenJDK https://github.com/openjdk/jdk/blob/master/LICENSE
comment by jjav · 2023-04-12 · in Virtual Threads Arrive in JDK 21, Ushering a New Era of Concurrency -
…have occurred before `ApplicationShutdownHooks.add` has been called so there is no publish problem. https://github.com/openjdk/jdk/blob/2fa09333ef0ac2dc1e44292f8d45d4571cb22cca/src/java.base/share/classes/java/lang/Runtime.java#L69…
comment by benmmurphy · 2023-03-29 · in Writing a Profiler in 240 lines of pure Java -
…are these "interrupts" just the underlying syscall returning EINTR or something Java-specific? [1]: https://github.com/openjdk/jdk/blame/c313e1ac7b3305b1c012755... [2]: https://stackoverflow.com/questions/1161297/ --- Edit: marginalia_nu's…
comment by Arnavion · 2023-03-12 · in Don't Share Java FileChannels -
…I don't agree it would create more boiler plate To get concrete again, I consider this boilerplate: https://github.com/openjdk/jdk/blob/9fc518ff8cadbbb731a016d8... https://github.com/openjdk/jdk/blob/9fc518ff8cadbbb731a016d8... And this is…
comment by MaulingMonkey · 2023-03-01 · in Make JDK source code UTF-8 -
…and all sorts of edge cases That can be done in code too. Let's take something concrete like https://github.com/openjdk/jdk/blob/master/test/jdk/java/uti... : {JPY, Locale.forLanguageTag("ja-JP-u-rg-uszzzz"), "\uffe5"}, {JPY,…
comment by MaulingMonkey · 2023-03-01 · in Make JDK source code UTF-8 -
GPLv2 specifically https://github.com/openjdk/jdk/blob/jdk-21%2B9/LICENSE#L3 although Java is the most famous software I know of with the "CLASSPATH exception" https://github.com/openjdk/jdk/blob/jdk-21%2B9/LICENSE#L326 to avoid "linking"…
comment by mdaniel · 2023-02-13 · in Re-License Vaultwarden to AGPLv3 -
…[1] and his PR's [2]. [1] https://mail.openjdk.org/pipermail/amber-dev/2023-January/th... [2] https://github.com/openjdk/jdk/pulls?q=is%3Apr+is%3Aopen+arc...
comment by carimura · 2023-01-23 · in JEP draft: No longer require super() and this() to appear first in a constructor -
https://github.com/openjdk/jdk/blob/master/LICENSE
comment by jbellis · 2023-01-01 · in Java is in decline, and there's data to prove it -
…library as part of the JVM (but part of the JDK), then the JVM is written mostly in C++. [0]: https://github.com/openjdk/jdk/tree/master/src/hotspot
comment by fathyb · 2022-12-21 · in OpenJDK Proposes Project Galahad to Merge GraalVM Native Compilation -
…the whole JDK, not just the VM): Java 75.1% C++ 13.4% C 7.4% Assembly 2.3% Objective-C 0.4% [1] https://github.com/openjdk/jdk
comment by kasperni · 2022-12-21 · in OpenJDK Proposes Project Galahad to Merge GraalVM Native Compilation -
To add to your question, assuming the tooling at github is ok, it has ~20% as c/c++ for https://github.com/openjdk/jdk . I would think most of that would be concentrated in the hotspot code, but I don't know. Would be delighted to know…
comment by taeric · 2022-12-21 · in OpenJDK Proposes Project Galahad to Merge GraalVM Native Compilation -
…bit hacking to convert between fp16 and Java floats. This API along with the intrinsification ( https://github.com/openjdk/jdk/pull/10500 ) will mean I can throw away that code and replace it with something that performs correctly and is…
comment by craigacp · 2022-10-13 · in JDK 20 will introduce float16 conversion methods -
…keep them in an indexable array anyway. [1] in HotSpot they are instances of InstanceKlass: https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
comment by twic · 2022-10-11 · in JEP draft: 64 bit object headers -
…to be any for that issue.) [0] https://bugs.openjdk.org/browse/JDK-8277131?jql=issuetype%20... [1] https://github.com/openjdk/jdk/pull/8787
comment by Nzen · 2022-09-29 · in Virtual Threads: New Foundations for High-Scale Java Applications -
…have to forget about jpackage and redo it all with something like Packr [2] and Wix# [3]... [1] https://github.com/openjdk/jdk/blob/fe45835f7cebfccd4544ae19... [2] https://github.com/libgdx/packr [3] https://github.com/oleg-shilo/wixsharp
comment by ptx · 2022-09-29 · in Paving the on-ramp to Java -
…seriously, if you want to learn about this, one place is to look at OpenJDK's sources. E.g. here: https://github.com/openjdk/jdk/blob/master/src/java.base/sha... which calls: https://github.com/openjdk/jdk/blob/17283cfe4c697e2118f19992...…
comment by amenghra · 2022-09-01 · in Falsehoods programmers believe about email -
…For Java, https://docs.oracle.com/en/java/javase/18/docs/specs/jni/des... https://github.com/openjdk/jdk/blob/master/src/java.base/sha... And as bonus since you didn't ask for it, Eiffel https://www.eiffel.org/doc/solutions/CECIL_-_
comment by pjmlp · 2022-07-26 · in Treadmill garbage collector by H. Baker -
…that wasn't done, and using the built in logger was slow enough to have measurable impact . See https://github.com/openjdk/jdk/blob/6765f902505fbdd02f25b599... at the bottom.
comment by hyperman1 · 2022-07-20 · in Log4j: The pain just keeps going -
…of but you don't "just" implement virtual threads. The PR to do it in HotSpot is notoriously huge: https://github.com/openjdk/jdk/pull/8166 1,140 files, (+98,553 −9,862 LOC) and those lines of code are mostly horribly fiddly low level…
comment by mike_hearn · 2022-05-03 · in JEP proposed to target JDK 19: 425: Virtual Threads (Preview) -
…- we never delete them. * Events are associated with a thread for the lifetime of the thread. */ https://github.com/openjdk/jdk/blob/c4c76e2f34f7e709f8b3c960... // ParkEvents are type-stable and immortal. // // Lifecycle: Once a ParkEvent…
comment by xxs · 2022-04-25 · in Chris Lattner on garbage collection vs. Automatic Reference Counting (2017) -
…mechanism, however relying on the GC to perform resource management is a terrible practice. [0]: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by xxs · 2022-04-24 · in Chris Lattner on garbage collection vs. Automatic Reference Counting (2017) -
The fix for OpenJDK (authored on Jan. 4th 22): https://github.com/openjdk/jdk/blob/e2f8ce9c3ff4518e070960ba...
comment by bertman · 2022-04-20 · in Psychic Signatures in Java -
It's easy to make this mistake, still: https://github.com/openjdk/jdk/blob/722d639fad2e4fc6eb2aabd4...
comment by __float · 2022-03-22 · in Java 18 / JDK 18: General Availability -
…it happens in core Java libraries themselves: https://bugs.openjdk.java.net/browse/JDK-8274779 https://github.com/openjdk/jdk/blob/722d639fad2e4fc6eb2aabd4...
comment by __float · 2022-03-22 · in Java 18 / JDK 18: General Availability -
…co. are great reads, and very well commented. See the source of `ConcurrentHashMap` for example: https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by ibraheemdev · 2022-03-22 · in Ask HN: Codebases with great, easy to read code? -
…class from the Java standard library. Looking at the implementation here: https://github.com/openjdk/jdk/blob/4f607f2adac3798c16a62e90... If the requested directory name has certain "inappropriate" characters in it, it'll encode it
comment by rianmcguire · 2021-12-28 · in Ask HN: Is this weird folder name indication of attempted log4shell attack? -
…several modules because JCA is pluggable. But for example a lot of the crypto code is found here: https://github.com/openjdk/jdk/tree/master/src/java.base/sha... 5. Oracle maintains it but other companies contribute, like Amazon,…
comment by native_samples · 2021-12-02 · in This shouldn't have happened: A vulnerability postmortem -
…JITs do execution an icache flush, and Rosetta does catch it to invalidate their code. For example https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/x... Otherwise, how do you think it works?
comment by chrisseaton · 2021-11-30 · in Asmrepl: REPL for x86 Assembly Language -
…is why [1] exists. Update: found the JDK code [2] [1] https://tools.suckless.org/x/wmname/ [2] https://github.com/openjdk/jdk/blob/9759fcb17b62d76d75b89348...
comment by IiydAbITMvJkqKf · 2021-11-03 · in How X Window Managers Work, and How to Write One (2014) -
…having to provide the source to your own code (see '"CLASSPATH" EXCEPTION TO THE GPL' at the end): https://github.com/openjdk/jdk/blob/master/LICENSE This is substantially the same as the GCC Runtime Library Exception, which lets you…
comment by twic · 2021-09-19 · in Revisiting Java in 2021 – Part II -
…To me, this sounds like one of those Apache grand ideas that won't go anywhere, but we'll see. [1] https://github.com/openjdk/jdk/blob/master/LICENSE [2] https://opensource.stackexchange.com/questions/1410/what-is-... [3]…
comment by twic · 2021-09-19 · in Revisiting Java in 2021 – Part II -
…performance improvement by switching from the single-branch implementation to the branchless one: https://github.com/openjdk/jdk/pull/4711
comment by jonas21 · 2021-08-23 · in One does not simply calculate the absolute value -
…of this edge case. So it would work, but a lot slower than the version given in the article. 0: https://github.com/openjdk/jdk/blob/36e2ddad4d2ef3ce27475af6...
comment by kmm · 2021-08-22 · in One does not simply calculate the absolute value -
…like bad developers might do an awful in job in whatever language they used? Can't be true... [1] https://github.com/openjdk/jdk/blob/master/src/java.base/sha...
comment by NovaX · 2021-08-10 · in Growing object-oriented software vs. what I would do -
…to associate with an Object in the backing Map private static final Object PRESENT = new Object(); https://github.com/openjdk/jdk/blob/master/src/java.base/sha... A thread-safe implementation is available with…
comment by cmckn · 2021-07-26 · in Map[string]interface{} in Go: a user's manual -
…rng period but I see the linked code [1] uses an implementation [2] with a period of 2^128-1 [1] https://github.com/openjdk/jdk/blob/4927ee426aedbeea0f4119ba... [2] https://en.wikipedia.org/wiki/Xorshift
comment by jffry · 2021-07-22 · in JVM Anatomy Quark #26: Identity Hash Code -
Yes, and it's available on GitHub now! Here's the heap implementation, for example: https://github.com/openjdk/jdk/blob/master/src/hotspot/share... The GraalVM is a Java implementation of the Java compiler and VM and it's also on GitHub:…
comment by brabel · 2021-05-15 · in Java JDK 1.0 (1996) -
…to be 1,1,2 bytes instead. [1] https://blog.polybdenum.com/2021/05/05/how-i-hacked-google-a... [2] https://github.com/openjdk/jdk/commit/eedc99c9ab2647f0233e48...
comment by gzer0 · 2021-05-15 · in Java JDK 1.0 (1996) -
…yourself! They removed the sharing between string values when you created a substring a while ago. https://github.com/openjdk/jdk/commit/f55750d05a04484b719220...
comment by chrisseaton · 2021-04-11 · in The Kitten Programming Language -
Since ZGC is in OpenJDK it should already be available in Zulu as well https://github.com/openjdk/jdk/tree/master/src/hotspot/share...
comment by novium · 2021-03-23 · in ZGC – What's new in JDK 16 -
…compiler'. Its lowest tier, C1, has a basic IR. OpenJDK does use a 'template interpreter'. https://github.com/openjdk/jdk/blob/master/src/hotspot/share...
comment by chrisseaton · 2021-02-08 · in Inline Caching: Quickening -
…is based on HotSpot's C2 compiler [2][3]. [1] https://www.infoq.com/news/2020/05/java-leyden/ [2] https://github.com/openjdk/jdk/pull/960#issuecomment-7220230... [3] https://cl4es.github.io/2020/12/06/Towards-OpenJDK-17.html
comment by kasperni · 2020-12-19 · in Why Java Is Dying