Skip to content

Conversation

pavel-kirienko
Copy link
Owner

No description provided.

@pavel-kirienko pavel-kirienko requested a review from Copilot May 10, 2025 22:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds tests for validating the minimum arena size and maximum allocation size of the heap, as well as exposing a new API for retrieving the maximum allocation size from a heap instance.

  • Adds new test cases in tests/test_general.cpp to verify arena sizing.
  • Adds a getter method in tests/internal.hpp for the maximum allocation size.
  • Updates o1heap.h and o1heap.c to define o1heapMinArenaSize and implement o1heapGetMaxAllocationSize.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
tests/test_general.cpp Adds new test cases for verifying arena size boundaries and allocations.
tests/internal.hpp Introduces an inline getter for max allocation size using the public API.
o1heap/o1heap.h Documents and declares the new constant and API for max allocation size.
o1heap/o1heap.c Implements the new constant and API, and refines inline comments.

This was linked to issues May 10, 2025
@pavel-kirienko pavel-kirienko merged commit de0b94f into master May 12, 2025
9 checks passed
@pavel-kirienko pavel-kirienko deleted the dev branch May 12, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add o1HeapMaxSize provide an error code out argument for o1heapInit
1 participant