RFR: 8277573: VmObjectAlloc is not generated by intrinsics methods which allocate objects

Serguei Spitsyn sspitsyn at openjdk.org
Tue Apr 11 00:00:39 UTC 2023


On Mon, 3 Apr 2023 22:20:43 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Updated VM internal object allocation C2 intrinsic to post jvmti events when needed.

src/hotspot/share/prims/jvmtiExport.cpp line 1050:

> 1048: 
> 1049: // This flag is read by C2 during VM internal objects allocation
> 1050: bool JvmtiExport::_should_post_allocation_notifications = true;

Needs to be initialized with `false`.

src/hotspot/share/prims/jvmtiExport.hpp line 400:

> 398: 
> 399:   // Used by C2 to post vm_object_alloc
> 400:   static bool _should_post_allocation_notifications;

As we privately discussed, consider replacing it with something like: `_should_notify_vm_object_alloc`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13312#discussion_r1162176341
PR Review Comment: https://git.openjdk.org/jdk/pull/13312#discussion_r1162177316


More information about the serviceability-dev mailing list