https://hg.openjdk.org/jdk/jdk/rev/3c12f0c0a68c
8212754: Build failure: undefined JvmtiSampledObjectAllocEventCollector::object_alloc_is_safe_to_sample
Reviewed-by: jcbeyler, zgu, coleenp
line diff
--- a/src/hotspot/share/prims/jvmtiExport.hpp Wed Oct 17 10:19:13 2018 +0200
+++ b/src/hotspot/share/prims/jvmtiExport.hpp Tue Oct 23 10:55:59 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);
};
// Marker class to disable the posting of VMObjectAlloc events
bash configure --with-debug-level=slowdebug --disable-warnings-as-errors --with-native-debug-symbols=internal
该变更集修复了JvmtiSampledObjectAllocEventCollector类在hotspot源码中的一个构建失败问题,新增了一个静态方法object_alloc_is_safe_to_sample,并更新了配置选项以支持特定的调试级别。

被折叠的 条评论
为什么被折叠?



