8173278: [JVMCI] query_update_method_data might write outside _trap_hist array
Reviewed-by: kvn
--- a/hotspot/src/share/vm/oops/methodData.hpp Sun Jan 22 16:33:54 2017 +0800
+++ b/hotspot/src/share/vm/oops/methodData.hpp Thu Jan 26 05:53:14 2017 -0800
@@ -2183,7 +2183,7 @@
uint _nof_overflow_traps; // trap count, excluding _trap_hist
union {
intptr_t _align;
- u1 _array[_trap_hist_limit];
+ u1 _array[JVMCI_ONLY(2 *) _trap_hist_limit];
} _trap_hist;
// Support for interprocedural escape analysis, from Thomas Kotzmann.