Hello,
 Recently there was a piece of code that I was looking at, which involved
trying to sort the VMtable entries, and while I was trying to do that I
came across an observation
When I commented this line
<https://github.com/kushalsingh007/chapel/blob/master/compiler/resolution/functionResolution.cpp#L8550>
(the line with virtualMethodTable.v[i].value->reverse())
 the behaviour that I observed seemed to be strange .

After doing a quick make

On running make check for the first time, it passed successfully.
On running make check for the second time I encountered this error```
/Users/kushal/work/chapel/util/test/checkChplInstall:
line 227: 31551 Segmentation fault: 11  ./${TEST_JOB} -nl${NUMLOCALES}
${EXEC_OPTS} -v ```

On running make check for the third time I encountered this error
``` $CHPL_HOME/modules/internal/localeModels/flat/LocaleModel.chpl:140:
error: halt reached - requesting a child from a LocaleModel locale ```

And the fourth time it passed successfully again

The order of these steps does change sometimes

So I wasn't exactly sure about what was going on there.
Firstly , why are we trying to reverse the entries
<https://github.com/kushalsingh007/chapel/blob/master/compiler/resolution/functionResolution.cpp#L8546>
 in the VMtable ? And even so why is reversing causing all this problem.

When I tried to look back to the commit where these changes were introduced
I found this commit https://github.com/chapel-lang/chapel/commit/e318a5d7fe .
But there wasn't much description about why that was being done in that
commit. So, I would be glad if someone could explain me the reason for this
behaviour or would give me some insight into the reason for reversing the
vmtable entires.

Thanks for the help
-Kushal
------------------------------------------------------------------------------
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers

Reply via email to