On Mon, 22 Jun 2026 10:24:54 GMT, Per Minborg <[email protected]> wrote:
>> Also, could `trySlice` be `static`? > >> Also, could `trySlice` be `static`? > > `trySlice()` needs to be able to update the `poolSp` variable. > I think you could potentially still implement Muarizio's suggestion to delay > the creation of the segment instance. We could e.g. have an out-of-line > allocation path that returns `long`, and then some code that wraps the result > into a memory segment instance. Since no objects are passed over the inlining > boundary, this should still be fast, but saves the inlining budget for other > things in the enclosing code. Fixed now, together with some additional simplifications. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31365#discussion_r3452842286
