Add extra logging when compilationHeapLimitExceeded occurs - #22639
Conversation
d0c62fd to
a7fb344
Compare
a7fb344 to
9ecd835
Compare
9ecd835 to
4c9b728
Compare
aec0e3d to
63491ae
Compare
|
Tested on prestoDB, error messages correctly print when scratch memory is limited to 128KB |
mpirvu
left a comment
There was a problem hiding this comment.
LGTM. As discussed, please post a message sample.
|
jenkins compile all jdk8,jdk21 |
|
jenkins test sanity.functional xlinux jdk21 |
63491ae to
de76203
Compare
|
Examples of error messages java/lang/invoke/ConstantObjectHandle.invokeExact_thunkArchetype_L()Ljava/lang/Object; Q_SZ=4 Q_SZI=2 QW=10 j9m=00007FD44416E1D8 time=740us compilationHeapLimitExceeded VmState=0x0005ffff memLimit=128 KB compThreadID=0 |
de76203 to
6cb7e9a
Compare
|
jenkins compile all jdk8,jdk25 |
|
jenkins test sanity.functional all jdk21 |
|
Requirements have changed slightly. The failure line should also include the name of the optimization. |
6cb7e9a to
73c4933
Compare
|
jenkins compile all jdk25 |
|
jenkins test sanity.functional zlinux jdk21 |
|
Tests have passed. Ready to merge. |
43c2d68 to
c509afb
Compare
|
Current version of the code always shows the vmState as 0x50080 which is ILgen (instead of an optimization). This happens because on this line: https://github.com/eclipse-omr/omr/blob/master/compiler/optimizer/OMROptimizer.cpp#L1012 we create an object of type Note that there are other |
|
I'm not aware of that |
c509afb to
5180bef
Compare
|
jenkins compile xlinux jdk25 |
I wasn't sure of the reason for
and
The associated work item says this:
So it seems like the first point was the primary reason for being able to push and pop the vmState. |
|
What is the next step for this PR? |
During testing we discovered that the reported compilation phases were wrong due to stack unwinding as explained in omr PR eclipse-omr/omr#7959 After that omr PR is delivered, this will be delivered as well. |
|
This fix in eclipse-omr/omr#7959 has been promoted, so this PR can be merged. |
Fixes #22627