Liblor / advanced_operating_systems_2020

Advanced Operating System Course at ETHZ
MIT License
19 stars 4 forks source link

Make threads great again #170

Closed Liblor closed 4 years ago

Liblor commented 4 years ago

Fix the mess we have with the malloc dynamic split. @leopoldsedev threading tests seem to run great :) The hashtable and list use a backed malloc called static_malloc same goes for paging code. Gone be the days of enable_static and deadlocks.

~Current issue: Some stuff now use the static_malloc is freed using free instead of static_free.~ I hope this allows us to go back to the threading version of the nameserver. That way spawning can be implemented nicer.

Liblor commented 4 years ago

Just saw that 4832e7d is removed in #169 as well.

Liblor commented 4 years ago

Doesn't really fix the issue. Seems to be a problem with dynamic memory. We probably try to map memory during free or something... I tried writing to some parts of the to be freed chunk outside of the lock to have it mapped... didn't work