File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1326,9 +1326,9 @@ declare namespace heap {
1326
1326
export function alloc ( size : usize ) : usize ;
1327
1327
/** Reallocates a chunk of memory to have at least the specified size. */
1328
1328
export function realloc ( ptr : usize , size : usize ) : usize ;
1329
- /** Frees a chunk of memory. */
1329
+ /** Frees a chunk of memory. Does hardly anything (most recent block only) with the stub/none runtime. */
1330
1330
export function free ( ptr : usize ) : void ;
1331
- /** Resets the heap. Stub /none runtime only . */
1331
+ /** Dangerously resets the entire heap. Specific to the stub /none runtime. */
1332
1332
export function reset ( ) : void ;
1333
1333
}
1334
1334
Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ export namespace heap {
86
86
return __realloc ( ptr , size ) ;
87
87
}
88
88
89
- /** Frees a chunk of memory. */
89
+ /** Frees a chunk of memory. Does hardly anything (most recent block only) with the stub/none runtime. */
90
90
// @ts -ignore: decorator
91
91
@unsafe export function free ( ptr : usize ) : void {
92
92
__free ( ptr ) ;
93
93
}
94
94
95
- /** Resets the heap. Stub /none runtime only . */
95
+ /** Dangerously resets the entire heap. Specific to the stub /none runtime. */
96
96
// @ts -ignore: decorator
97
97
@unsafe export function reset ( ) : void {
98
98
__reset ( ) ;
You can’t perform that action at this time.
0 commit comments