oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.03k stars 1.6k forks source link

Weak handle oop storage #7503

Open galderz opened 9 months ago

galderz commented 9 months ago

HotSpot implementation of JFR old object sample event (#5145) relies on an oop storage for efficiently managing weak handles to sampled object, without having to explicitly allocated weak reference instances.

For #5145 we will rely on weak reference instances but if these become a problem we will need to implement similar oop storage.

Also, once this is in place, optimizations related that allow events for recently allocated objects not to be emitted can be implemented properly.

kassifar commented 7 months ago

Hi @galderz, Thank you for your feature suggestion. We will be taking a look at it.

kassifar commented 7 months ago

@fniephaus, should I create an internal ticket for this issue ?

fniephaus commented 7 months ago

@galderz is this something you want to work on or is this just something you'd like to see in the future?

galderz commented 7 months ago

@fniephaus It's something we'll need in the future but it's not strictly right now, at least for my JFR old object event feature.

galderz commented 7 months ago

There might be other use cases for this though.