[drlvm][intel64][lil]race condition and buffer overruns in LIL codegen
----------------------------------------------------------------------
Key: HARMONY-3129
URL: https://issues.apache.org/jira/browse/HARMONY-3129
Project: Harmony
Issue Type: Bug
Components: DRLVM
Reporter: Alex Astapchuk
Attachments: 0001-drlvm-intel64-lil-race-condition-and-buffer-overruns-in-LIL-codegen.txt
There were 2 problems in LIL codegen for Intel64:
1. A code for temporary register usage had a static variable shared across all threads.
This lead to a race condition during compilations, and might lead to crash or unpredictable
behavior.
Now, the code uses per-compilation variables.
2. A fixed size for temporary buffer was used which sometimes lead to buffer overruns for
huge stubs (e.g. for JNI stub with a really huge number of args).
Now, the buffer size is estimated basing on the stub size.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|