[GH] Set max metaspace to 512m
[GH] Set max metaspace to 512m

Hoping to fix OOM issues with the metaspace.

Test: GH workflows

This is an imported pull request from https://github.com/androidx/androidx/pull/217.

Resolves #217
Github-Pr-Head-Sha: fae0dd47a3ccf9d044fb2e399ebe820871ade851
GitOrigin-RevId: 16e8f36d24b30f2d6ad7f6a180beaca84985bfba
Change-Id: Iba6e72b8a958981e8de08eccd5a92c86988877aa

AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx