Skip to content

Commit 59983ac

Browse files
gmorphemeclaude
andauthored
Fix object alignment for double-word boundaries (Issue #57) (#203)
* Implement proper object alignment for double-word boundaries This commit implements Issue #57: Object alignment fixes by updating the memory allocator to ensure all objects are aligned to 16-byte boundaries for improved performance on modern architectures. Key changes: - Updated alloc_size_of() to align total allocation size to 16 bytes - Since AllocHeader is exactly 16 bytes, objects are naturally aligned - Added comprehensive alignment test coverage - Fixed fragmentation test expectations for alignment impact - Updated .gitignore to properly exclude GC test results Performance impact: ~8% regression in allocation benchmarks due to increased memory usage, but provides better cache alignment and prepares for future SIMD optimizations. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix rustfmt formatting issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 75b8798 commit 59983ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+96
-3057
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
**/*.rs.bk
33
/.idea
44
/harness/test/.result/
5+
/harness/test/**/.result/
56
/src/syntax/grammar.rs
67
/src/syntax/string_pattern.rs
78

harness/test/gc/.result/0721c73b-f86c-4c06-ad62-d4561cc981fe/gc_005_collection_cycles.evidence.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

harness/test/gc/.result/0721c73b-f86c-4c06-ad62-d4561cc981fe/gc_005_collection_cycles.report.yaml

Lines changed: 0 additions & 66 deletions
This file was deleted.

harness/test/gc/.result/0721c73b-f86c-4c06-ad62-d4561cc981fe/report.html

Lines changed: 0 additions & 125 deletions
This file was deleted.

harness/test/gc/.result/0721c73b-f86c-4c06-ad62-d4561cc981fe/results.yaml

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)