Files
nunuhara_xsystem4/include
kichikuou f0e25e53d7 ffi: Make HLL calls safe against heap reallocation
In hll_call(), pointers to heap data passed by reference could become
invalid if the heap was reallocated during the call.

The previous implementation attempted to prevent this by calling
heap_guarantee() to pre-allocate heap space. However, this approach
does not work for certain functions in PastelChime2 HLL, which can
perform an unbounded number of heap allocations.

This commit removes heap_guarantee() and replaces it with a more robust
copy-in/copy-out strategy:

- Before the call (Copy-in): For reference arguments, the pointer value
  is copied from the heap to a local variable on the stack. A pointer to
  this local variable is then passed to the HLL function.
- After the call (Copy-out): The pointer value, which may have been
  modified by the HLL function, is written back from the local variable
  to its original slot in the heap.
2025-09-06 07:34:29 +09:00
..
2023-06-11 15:06:44 +09:00
2024-08-11 07:18:19 +09:00
2023-05-26 08:44:36 -07:00
2025-03-23 08:22:16 +09:00
2024-05-31 13:36:29 +09:00
2025-08-23 07:08:40 +09:00
2023-05-26 08:44:36 -07:00
2024-08-11 07:18:19 +09:00
2023-04-29 10:32:50 -07:00
2019-12-31 17:50:40 -08:00
2025-06-21 16:55:24 +09:00
2025-08-23 07:08:40 +09:00
2023-05-26 08:44:36 -07:00
2023-07-09 17:05:25 +09:00