RFR 8212754 (XS): Build failure: undefined JvmtiSampledObjectAllocEventCollector::object_alloc_is_safe_to_sample
coleen.phillimore at oracle.com
coleen.phillimore at oracle.com
Mon Oct 22 20:43:34 UTC 2018
Yes, this is trivial and looks good.
Coleen
On 10/22/18 2:43 PM, Aleksey Shipilev wrote:
> Thanks! No need for additional help, but I would appreciate another reviewer (and maybe accepting
> this is trivial).
>
> -Aleksey
>
> On 10/22/2018 06:26 PM, JC Beyler wrote:
>> Hi Aleksey,
>>
>> Looks good to me; let me know if I can do anything to help, though it seems like an easy push once
>> reviews are in,
>>
>> Thanks for the fix,
>> Jc
>>
>> On Mon, Oct 22, 2018 at 4:36 AM Aleksey Shipilev <shade at redhat.com <mailto:shade at redhat.com>> wrote:
>>
>> Bug:
>> https://bugs.openjdk.java.net/browse/JDK-8212754
>>
>> When JVMTI is disabled (e.g. with Minimal VM), jvmtiExport.cpp is not compiled, and so definition is
>> not present during linkage. This actually manifests in jdk-updates/jdk11u, because memAllocator.cpp
>> calls this method only there. jdk/jdk has no problematic call from memAllocator.cpp. Still, I
>> believe the code should not deviate between jdk and jdk11u, so let's push to to development head,
>> and then backport.
>>
>> Fix:
>>
>> # User shade
>> 8212754: Build failure: undefined
>> JvmtiSampledObjectAllocEventCollector::object_alloc_is_safe_to_sample
>> Reviewed-by: XXX
>>
>> diff -r d5a96cafdd4a -r f9c30b92d0dc src/hotspot/share/prims/jvmtiExport.hpp
>> --- a/src/hotspot/share/prims/jvmtiExport.hpp Wed Oct 17 22:47:59 2018 +0200
>> +++ b/src/hotspot/share/prims/jvmtiExport.hpp Mon Oct 22 13:20:21 2018 +0200
>> @@ -538,7 +538,7 @@
>> JvmtiSampledObjectAllocEventCollector() NOT_JVMTI_RETURN;
>> ~JvmtiSampledObjectAllocEventCollector() NOT_JVMTI_RETURN;
>> bool is_sampled_object_alloc_event() { return true; }
>> - static bool object_alloc_is_safe_to_sample();
>> + static bool object_alloc_is_safe_to_sample() NOT_JVMTI_RETURN_(false);
>> };
>>
>>
>> Testing: jdk-updates/jdk11u minimal+slowdebug; jdk/jdk {server,minimal}+slowdebug
>>
>> Thanks,
>> -Aleksey
>>
>>
>>
>> --
>>
>> Thanks,
>> Jc
>
More information about the hotspot-dev
mailing list