< prev index next >

src/hotspot/share/gc/g1/g1HeapRegionAttr.hpp

Print this page
rev 60633 : 8248787: G1: Workaround MSVC bug
Reviewed-by:
Contributed-by: mbeckwit, luhenry, burban

@@ -30,11 +30,17 @@
 
 // Per-region attributes often used during garbage collection to avoid costly
 // lookups for that information all over the place.
 struct G1HeapRegionAttr {
 public:
+#if defined(_M_ARM64)&& defined(_MSC_VER) && _MSC_VER <= 1927
+  // workaround for MSCV ARM64 bug
+  // https://developercommunity.visualstudio.com/content/problem/1079221/arm64-bad-code-generation-around-signed-char-arith.html
+  typedef int32_t region_type_t;
+#else
   typedef int8_t region_type_t;
+#endif
   typedef uint8_t needs_remset_update_t;
 
 private:
   needs_remset_update_t _needs_remset_update;
   region_type_t _type;
< prev index next >