RFR: 8347396: Efficient TypeFunc creations [v6]
Dean Long
dlong at openjdk.org
Tue Feb 3 23:20:07 UTC 2026
On Tue, 3 Feb 2026 09:01:19 GMT, Harshit470250 <duke at openjdk.org> wrote:
>> This PR do similar changes done by [JDK-8330851](https://bugs.openjdk.org/browse/JDK-8330851) on the GC TypeFunc creation as suggested by [JDK-8347396](https://bugs.openjdk.org/browse/JDK-8347396). As discussed in [https://github.com/openjdk/jdk/pull/21782#discussion_r1906535686,](https://github.com/openjdk/jdk/pull/21782#discussion_r1906535686) I have put guard on the shenandoah gc specific part of the code.
>
> Harshit470250 has updated the pull request incrementally with four additional commits since the last revision:
>
> - remove import of barrierSetC2 from runtime
> - make shenandoah types private
> - move _clone_type_Type to BarrierSetC2
> - remove whitespace
src/hotspot/share/opto/type.cpp line 737:
> 735:
> 736: #if INCLUDE_SHENANDOAHGC
> 737: ShenandoahBarrierSetC2::make_write_barrier_pre_Type();
How about replacing these 3 calls with a single call, something like ShenandoahBarrierSetC2::init()? Can these functions then be made private?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27279#discussion_r2761458562
More information about the hotspot-dev
mailing list