• Y
    [Coroutine] Bug fixes for JKU coroutine · 7796cbc3
    yunyao.zxl 提交于
    Summary: Bug fixes for JKU coroutine
    The JKU patch has several flaws:
    1. When using JDI to debug coroutine, it may crash because the _switchTo intrinsic entry will change to the interpreter one, which is a SHOULD_NOT_REACH_HERE().
    2. Change miscellaneous thread-local data structures to coroutine-local level during _switchTo phase.
    3. Disable making zombies of _switchTo alike intrinsic things.
    4. Fix multiple mem leak problems for coroutine data structures.
    5. Create an empty JNIHandleBlock for the first Java call.
    6. The stack layout of Coroutine doesn't align with 16 bytes on x86_64 which will cause some float point instructions to throw an sig fault.
    7. etc.
    
    Test Plan: Coroutine tests
    
    Reviewed-by: yuleil, shiyuexw, sanhong
    
    Issue: https://github.com/alibaba/dragonwell8/issues/113
    7796cbc3
interp_masm_x86_64.cpp 54.5 KB