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. …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…
  2. …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
  3. ▲ 2
    JDK-8180450: secondary_super_cache does not scale well
    story by mfiguiere · 2024-03-14 · 0 comments
  4. 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
  5. ▲ 2
    AVX2 intrinsics for Arrays.sort methods (int, float arrays)
    story by mfiguiere · 2023-12-17 · 2 comments
  6. …internally, it just supports various bit-related operations as-if it were two's complement. https://github.com/openjdk/jdk/blob/28026434f74726d72857e781...
  7. …expose their users to bugs on account of this implementation. EDIT: … ha, sure looks like it https://github.com/openjdk/jdk/blob/a2c0fa6f9ccefd3d1b088c51...
  8. 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
  9. …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…
  10. ▲ 1
    Make Immutable Maps ValueBased
    story by mfiguiere · 2023-10-19 · 0 comments
  11. …details. Check out this function which helps determine if instance fields are trusted: https://github.com/openjdk/jdk/blob/edd454b502b9bacde5549282...
  12. ▲ 2
    Prototype of a Panamization of the NetworkInterface Class
    story by mfiguiere · 2023-09-20 · 1 comment
  13. …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
  14. …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...
  15. …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
  16. …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.
  17. PR for this commit: https://github.com/openjdk/jdk/pull/14224
  18. ▲ 2
    Add intrinsic for float/double modulo for x86 AVX2 and AVX512 in OpenJDK
    story by mfiguiere · 2023-06-15 · 1 comment
  19. FWIW, there's an open PR and discussion around the code for this: https://github.com/openjdk/jdk/pull/9779
  20. …...) 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…
  21. 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
  22. ▲ 158
    AVX512 intrinsics for JDK’s Arrays.sort methods
    story by mfiguiere · 2023-05-31 · 152 comments
  23. 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
  24. …((long) upTo) - from + last; I would think it just takes less than 1 ms on first execution. https://github.com/openjdk/jdk/blob/caa841d9a52352a975394e55...
  25. …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
  26. …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
  27. …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
  28. …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
  29. …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
  30. 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
  31. …[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...
  32. https://github.com/openjdk/jdk/blob/master/LICENSE
  33. …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
  34. …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
  35. 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…
  36. …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…
  37. …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
  38. …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
  39. …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
  40. …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
  41. …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_-_
  42. …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
  43. …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…
  44. …- 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…
  45. …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...
  46. 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
  47. 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
  48. …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
  49. …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...
  50. …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