Hacker GitHub

← All repos

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

Mentions per year 129 mentions · busiest year 2023 (28)
20082026
  1. …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
  2. …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.
  3. PR for this commit: https://github.com/openjdk/jdk/pull/14224
  4. FWIW, there's an open PR and discussion around the code for this: https://github.com/openjdk/jdk/pull/9779
  5. …...) 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…
  6. 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
  7. 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
  8. …((long) upTo) - from + last; I would think it just takes less than 1 ms on first execution. https://github.com/openjdk/jdk/blob/caa841d9a52352a975394e55...
  9. …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
  10. …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
  11. …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
  12. …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
  13. …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
  14. 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
  15. …[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...
  16. https://github.com/openjdk/jdk/blob/master/LICENSE
  17. …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
  18. …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
  19. 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…
  20. …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…
  21. …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
  22. …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
  23. …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
  24. …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
  25. …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_-_
  26. …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
  27. …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…
  28. …- 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…
  29. …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...
  30. 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
  31. 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
  32. …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
  33. …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...
  34. …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
  35. …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,…
  36. …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
  37. …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...
  38. …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
  39. …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
  40. …performance improvement by switching from the single-branch implementation to the branchless one: https://github.com/openjdk/jdk/pull/4711
  41. …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...
  42. …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...
  43. …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…
  44. …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
  45. 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)
  46. …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)
  47. …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
  48. 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
  49. …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
  50. …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