Skip to content

Asphalt 5 Native v2.0.3 - Repeated-race heap fix

Choose a tag to compare

@mrbaazzman mrbaazzman released this 31 Oct 11:55
· 17 commits to main since this release

Asphalt 5 Native 2.0.3

Final fix for the crash after repeated races.

The crash was guest heap exhaustion:

[guest] heap exhausted (n=1024012 top=3ffab940 total=000fa020)

The shared JNI/host heap layer leaked local strings and resource byte arrays each race. The fix:

  • DeleteLocalRef releases guest strings and byte arrays.
  • The heap coalesces adjacent free blocks and drops trailing free space.
  • A lightweight compaction runs every 600 frames so the free lists stay reusable.
  • Verified by the maintainer through 12 consecutive quick races on 3.3.7 without a crash.
  • Shared by 3.2.4, 3.3.7 and 3.4.1.

The v2.0.1 packaging fix is included: the embedded builder payload is obfuscated and Microsoft Defender reports the setup clean.

Installed folders still contain only Asphalt5.exe and gamefiles\.

Checksum

Asphalt5-Setup.exe SHA-256:

e97beead9f4a47860310b19cdd85fa4b40f470acea4c4c12c4fd7b4b332bef8b