Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add memory stress tests for JSObject and JSClosure#399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@kateinoigakukun
Copy link
Member

Motivation

Memory management bugs in JavaScript interop often only surface under extreme allocation pressure (see PR#393 which required 10-30 million allocations to reproduce). Current tests only validate normal usage patterns and don't catch memory leaks or reference counting issues that appear at system boundaries.

Summary

Adds comprehensive stress tests that push memory allocation to limits and test system behavior under extreme pressure to catch real memory management bugs.

Test Coverage

  • Memory exhaustion: Allocates 25k+ objects until limits are reached
  • Heap fragmentation: Tests recovery from fragmented allocation patterns
  • Boundary conditions: Mixed allocation with exponentially increasing pressure
  • Non-FinalizationRegistry scenarios: Focuses on manual memory management paths

Implementation

Tests use aggressive garbage collection and expect/handle memory exhaustion failures to validate reference counting mechanisms under stress.

Tests memory exhaustion, heap fragmentation, and boundary conditionswithout FinalizationRegistry to validate reference counting underextreme allocation pressure.
@kateinoigakukunkateinoigakukunforce-pushed theadd-stress-tests-for-jsobject-jsclosure branch fromf8f5291 to42e879fCompareAugust 9, 2025 06:32
@kateinoigakukunkateinoigakukun deleted the add-stress-tests-for-jsobject-jsclosure branchAugust 17, 2025 05:40
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kateinoigakukun

[8]ページ先頭

©2009-2025 Movatter.jp