Skip to content

Commit 191a5a3

Browse files
authored
add CIRCUITPY-CHANGE annotations
1 parent eb1b274 commit 191a5a3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

py/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ bool gc_is_locked(void) {
363363
return MP_STATE_THREAD(gc_lock_depth) != 0;
364364
}
365365

366+
// CIRCUITPY-CHANGE
366367
bool gc_ptr_on_heap(void *ptr) {
367368
for (mp_state_mem_area_t *area = &MP_STATE_MEM(area); area != NULL; area = NEXT_AREA(area)) {
368369
if (ptr >= (void *)area->gc_pool_start // must be above start of pool

py/gc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void *gc_realloc(void *ptr, size_t n_bytes, bool allow_move);
8585
// very sparingly because it can leak memory.
8686
bool gc_never_free(void *ptr);
8787

88+
// CIRCUITPY-CHANGE
8889
// True if the pointer is on the MP heap. Doesn't require that it is the start
8990
// of a block.
9091
bool gc_ptr_on_heap(void *ptr);

0 commit comments

Comments
 (0)