summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-10-10 13:12:17 +0200
committerJean Boussier <jean.boussier@gmail.com>2023-10-10 14:47:54 +0200
commit5cc44f48c51974a84a40480477a4afd8901ae7e4 (patch)
tree9c252adf59e2e0b932a74a7d0cf000969039e97d /shape.h
parentfd21460898d2d5044c1bcc140927142921424791 (diff)
Refactor rb_shape_transition_shape_capa to not accept capacity
This way the groth factor is encapsulated, which allows rb_shape_transition_shape_capa to be smarter about ideal sizes.
Diffstat (limited to 'shape.h')
-rw-r--r--shape.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.h b/shape.h
index 025dfb4dd8..5689b48067 100644
--- a/shape.h
+++ b/shape.h
@@ -152,7 +152,7 @@ rb_shape_t* rb_shape_get_shape(VALUE obj);
int rb_shape_frozen_shape_p(rb_shape_t* shape);
void rb_shape_transition_shape_frozen(VALUE obj);
void rb_shape_transition_shape_remove_ivar(VALUE obj, ID id, rb_shape_t *shape, VALUE * removed);
-rb_shape_t * rb_shape_transition_shape_capa(rb_shape_t * shape, uint32_t new_capacity);
+rb_shape_t * rb_shape_transition_shape_capa(rb_shape_t * shape);
rb_shape_t* rb_shape_get_next(rb_shape_t* shape, VALUE obj, ID id);
rb_shape_t * rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape);