Add details to MTLSurfaceData' OutOfMemoryError

Bug: 412486300
Test: n/a
Change-Id: Ica807350be291c0fa9736c25878cc0c6f76c41d3
diff --git a/src/java.desktop/macosx/classes/sun/java2d/metal/MTLSurfaceData.java b/src/java.desktop/macosx/classes/sun/java2d/metal/MTLSurfaceData.java
index 24f8cd7..f9a91fa 100644
--- a/src/java.desktop/macosx/classes/sun/java2d/metal/MTLSurfaceData.java
+++ b/src/java.desktop/macosx/classes/sun/java2d/metal/MTLSurfaceData.java
@@ -262,7 +262,10 @@
         }
 
         if (!success) {
-            throw new OutOfMemoryError("can't create offscreen surface");
+            throw new OutOfMemoryError("can't create offscreen surface. type=" + type
+            + ", nativeOps=" + getNativeOps() + ", isOpaque=" + isOpaque + ", width=" + width
+            + ", height=" + height + ", scale=" + scale + ", nativeWidth=" + nativeWidth
+            + ", nativeHeight=" + nativeHeight + ", graphicsConfig=" + graphicsConfig);
         }
     }