--- a/hotspot/src/share/vm/prims/jvmtiExport.cpp Thu Mar 24 23:07:06 2016 -0700
+++ b/hotspot/src/share/vm/prims/jvmtiExport.cpp Fri Mar 25 12:54:16 2016 +0300
@@ -2315,6 +2315,8 @@
}
////////////////////////////////////////////////////////////////////////////////////////////////
+#if INCLUDE_SERVICES
+// Attach is disabled if SERVICES is not included
// type for the Agent_OnAttach entry point
extern "C" {
@@ -2416,6 +2418,7 @@
return result;
}
+#endif // INCLUDE_SERVICES
////////////////////////////////////////////////////////////////////////////////////////////////
// Setup current current thread for event collection.