Don't resume/suspend vars containing pointers.

This commit is contained in:
Nigel Tao committed 2017-09-23 15:16:43 +10:00
1 parent d5c8e20268
commit 10b7d5a031
7 files changed
+78 -38

No files matched your search

+3
View File
@@ -151,6 +151,9 @@ pri func decoder.decode_id?(dst writer1, src reader1)() {
if block_size == 0 {
break
}
// TODO: how should this reader1-typed variable (which is implemented
// by containing pointers) work across resume/suspend? We don't want to
// have a dangling pointer to an earlier src buffer.
var lzw_src reader1 = limit (block_size as u64) in.src
this.lzw.decode?(dst:in.dst, src:lzw_src)
}