src/hotspot/share/prims/jvmtiManageCapabilities.cpp
changeset 49379 2d1d0c66966b
parent 48877 e4d80042ff19
child 50578 e2a7f431f65c
--- a/src/hotspot/share/prims/jvmtiManageCapabilities.cpp	Mon Mar 12 13:54:55 2018 -0700
+++ b/src/hotspot/share/prims/jvmtiManageCapabilities.cpp	Mon Mar 12 14:11:54 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -312,7 +312,10 @@
   }
 #endif // ZERO
 
-  if (avail.can_generate_breakpoint_events) {
+  if (avail.can_generate_breakpoint_events
+       || avail.can_generate_field_access_events
+       || avail.can_generate_field_modification_events)
+  {
     RewriteFrequentPairs = false;
   }