diff options
author | Ayke van Laethem <[email protected]> | 2021-07-09 14:01:37 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-11-02 22:16:15 +0100 |
commit | f24a93c51d8b565aedfa6edebd3c638c9125f468 (patch) | |
tree | e465b75aaf7877e84f635959f5f43bfc406ea237 /src/runtime/gc_leaking.go | |
parent | c454568688b1d31c36b8805da47e5ae8d4617707 (diff) | |
download | tinygo-f24a93c51d8b565aedfa6edebd3c638c9125f468.tar.gz tinygo-f24a93c51d8b565aedfa6edebd3c638c9125f468.zip |
compiler, runtime: add layout parameter to runtime.alloc
This layout parameter is currently always nil and ignored, but will
eventually contain a pointer to a memory layout.
This commit also adds module verification to the transform tests, as I
found out that it didn't (and therefore didn't initially catch all
bugs).
Diffstat (limited to 'src/runtime/gc_leaking.go')
-rw-r--r-- | src/runtime/gc_leaking.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/gc_leaking.go b/src/runtime/gc_leaking.go index 60340c645..345539d68 100644 --- a/src/runtime/gc_leaking.go +++ b/src/runtime/gc_leaking.go @@ -13,7 +13,7 @@ import ( // Ever-incrementing pointer: no memory is freed. var heapptr = heapStart -func alloc(size uintptr) unsafe.Pointer { +func alloc(size uintptr, layout unsafe.Pointer) unsafe.Pointer { // TODO: this can be optimized by not casting between pointers and ints so // much. And by using platform-native data types (e.g. *uint8 for 8-bit // systems). |