How to reproduce:
1. Open the attached “webgl-gc-bug,zip” project
2. Open the “SampleScene”
3. Build and Run the project using the WebGL/Web platform
4. In the built project, click the “Allocate” button 5 times
5. Click the “Clear” button
6. Click the “GC” button
7. Observe the result
Expected result: “monoUsedHeapSize” shows a value of 2 (same as the starting value)
Actual result: “monoUsedHeapSize” shows a higher value, such as 32 or 62
Reproducible in: 2021.3.45f1, 2022.3.51f1, 6000.0.25f1, 6000.1.0a2
Not Reproducible in: 2023.3.0b10 (52ddac442a2c)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Last known good version: 2023.3.0b10 (52ddac442a2c)
First known bad version: 6000.0.0f1 (4ff56b3ea44c)
Note: Only reproducible in WebGL/Web build