apoch / epoch-language

Home of the Epoch Programming Language Project
Other
72 stars 3 forks source link

Structure and buffer allocation/access is not thread safe #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Structure allocation and copying as well as buffer allocation and cloning are 
all non-safe operations in the current implementation. Add locking to ensure at 
least minimal security such that running structure or buffer reliant code on 
multiple threads won't bork the VM state.

Original issue reported on code.google.com by don.ap...@gmail.com on 20 Dec 2010 at 6:36

GoogleCodeExporter commented 9 years ago
Don't forget that structures and buffers are NOT immutable, so we'll need to 
either enforce that no references can traverse thread boundaries, or generally 
add a metric boat load of locking to anything that mutates structures/buffers. 
The first option is probably preferable.

Original comment by don.ap...@gmail.com on 24 Dec 2010 at 4:29

GoogleCodeExporter commented 9 years ago

Original comment by don.ap...@gmail.com on 28 Dec 2010 at 4:58