RFR: 8349146: [REDO] Implement a better allocator for downcalls [v6]
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu May 1 09:11:46 UTC 2025
On Thu, 1 May 2025 09:05:58 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> src/java.base/share/classes/jdk/internal/foreign/BufferStack.java line 81:
>>
>>> 79: @Override
>>> 80: public int hashCode() {
>>> 81: return System.identityHashCode(this);
>>
>> What's the value in these overloads? Isn't this implementation the same we'd get if there were no overrides?
>
> Ugh - it's a record, I see. Which brings up the question -- should it be a record? Should it advertize its `size and `tl` components (they seem rather implementation specific?).
Was this done so that the final field could be trusted? (I believe all final fields are implicitly trusted in jdk/internal/foreign):
holder->is_in_package("jdk/internal/foreign/layout") || holder->is_in_package("jdk/internal/foreign") ||
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24829#discussion_r2070024350
More information about the core-libs-dev
mailing list