Merge: Make the `do catch` great again
authorJean Privat <jean@pryen.org>
Thu, 29 Mar 2018 00:11:33 +0000 (20:11 -0400)
committerJean Privat <jean@pryen.org>
Thu, 29 Mar 2018 00:11:33 +0000 (20:11 -0400)
commit1bbfcd50ebb19cba511b55922f0b585f9a0b0582
treed384eb44345272443667d68af69201b01c4b60de
parentd6aee768af7ae3afbaf6619d9f5a3322843c7f1a
parent9aa34cca35095e128e8270d18542ee75497ab063
Merge: Make the `do catch` great again

This PR removes some of the limitations of the `do catch` :
* Hard-coded limit of 100 jumping environments is gone, the array is now dynamic
* The structure for managing jump environments is now lazy initialized
* Now using gcc's `__thread` specifier so that each thread has it's own jumping stack

Pull-Request: #2612
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
src/compiler/abstract_compiler.nit