Relates :
|
JvmtiTagHashmapEntry has a bare oop member. These are weak references. Any place that allows that oop to "escape" needs the G1 pre-barrier. GetObjectsWithTags provides such an escape path. All other accesses to that oop appear to be "peek" operations, where the oop is locally examined without any possibility of a safepoint while it's being used. Without that barrier, use of this JVMTI function with G1 can lead to crashes.
|