On Wed, 6 May 2026 21:25:38 GMT, Serguei Spitsyn <[email protected]> wrote:
>> This PR implements two JVMTI enhancements: >> [8382702](https://bugs.openjdk.org/browse/JDK-8382702) and >> [8381063](https://bugs.openjdk.org/browse/JDK-8381063) >> >> The update includes the following changes: >> - add spec clarifications for `VMObjectAlloc` and `SampledObjectAlloc` >> related to value object allocations >> - pass `nullptr` for `jobject` parameter of `VMObjectAlloc` and >> `SampledObjectAlloc` event callbacks >> - add test coverage with value object allocations for both event callbacks >> >> Testing: >> - Test locally with newly added tests >> - Run mach5 tiers 1-6 >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Serguei Spitsyn has updated the pull request incrementally with one > additional commit since the last revision: > > review: minor tweaks in spec and comments src/hotspot/share/prims/jvmti.xml line 13996: > 13994: Virtual machines which are incapable of bytecode instrumentation > 13995: for some or all of their methods can send this event. > 13996: When preview features are enabled and the allocated object has > no identity, I would consider saying "is a value object" here. (Depending on what's more relevant: this operation depends on identity, and there's none here; or value objects are a corner case where this operation behaves differently?) (Similar throughout.) ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2386#discussion_r3203401883
